All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rethinkdb.gen.ast.Distinct Maven / Gradle / Ivy

The newest version!
// Autogenerated by metajava.py.
// Do not edit this file directly.
// The template for this file is located at:
// ../../../../../../../../templates/AstSubclass.java

package com.rethinkdb.gen.ast;

import com.rethinkdb.gen.proto.TermType;
import com.rethinkdb.gen.exc.ReqlDriverError;
import com.rethinkdb.model.Arguments;
import com.rethinkdb.model.OptArgs;
import com.rethinkdb.ast.ReqlAst;

public class Distinct extends ReqlExpr {

    public Distinct(Object arg) {
        this(new Arguments(arg), null);
    }
    public Distinct(Arguments args) {
        this(args, null);
    }
    public Distinct(Arguments args, OptArgs optargs) {
        super(TermType.DISTINCT, args, optargs);
    }
    public Distinct optArg(String optname, Object value) {
        OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
        return new Distinct(args, newOptargs);
    }
    public Distinct optArg(String optname, ReqlFunction0 value) {
        OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
        return new Distinct(args, newOptargs);
    }
    public Distinct optArg(String optname, ReqlFunction1 value) {
        OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
        return new Distinct(args, newOptargs);
    }
    public Distinct optArg(String optname, ReqlFunction2 value) {
        OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
        return new Distinct(args, newOptargs);
    }
    public Distinct optArg(String optname, ReqlFunction3 value) {
        OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
        return new Distinct(args, newOptargs);
    }
    public Distinct optArg(String optname, ReqlFunction4 value) {
        OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
        return new Distinct(args, newOptargs);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy