com.rethinkdb.model.OptArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qj-rethinkdb-driver Show documentation
Show all versions of qj-rethinkdb-driver Show documentation
Java driver for RethinkDB (Modified from Official version)
package com.rethinkdb.model;
import com.rethinkdb.ast.ReqlAst;
import com.rethinkdb.ast.Util;
import org.json.simple.JSONObject;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class OptArgs extends HashMap {
public OptArgs with(String key, Object value) {
if (key != null) {
put(key, Util.toReqlAst(value));
}
return this;
}
public OptArgs with(String key, List