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

com.rethinkdb.ast.query.gen.IndexDrop Maven / Gradle / Ivy

The newest version!
package com.rethinkdb.ast.query.gen;

import com.rethinkdb.RethinkDBConnection;
import com.rethinkdb.ast.query.RqlQuery;
import com.rethinkdb.proto.Q2L;
import com.rethinkdb.response.DBResponseMapper;
import com.rethinkdb.response.model.DDLResult;

import java.util.List;
import java.util.Map;

// extends RqlMethodQuery
public class IndexDrop extends RqlQuery {

    public IndexDrop(List args, java.util.Map optionalArgs) {
        this(null, args, optionalArgs);
    }

    public IndexDrop(RqlQuery prev, List args, Map optionalArgs) {
        super(prev, Q2L.Term.TermType.INDEX_DROP, args, optionalArgs);
    }

    @Override
    public DDLResult run(RethinkDBConnection connection) {
        return DBResponseMapper.populateObject(new DDLResult(), (Map) super.run(connection));
    }
}