Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.snappydata.thrift.SnappyDataService Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package io.snappydata.thrift;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-08-09")
public class SnappyDataService {
public interface Iface {
public HostAddress getPreferredServer(Set serverTypes, Set serverGroups, Set failedServers) throws SnappyException, org.apache.thrift.TException;
public List getAllServersWithPreferredServer(Set serverTypes, Set serverGroups, Set failedServers) throws SnappyException, org.apache.thrift.TException;
public ConnectionProperties openConnection(OpenConnectionArgs arguments) throws SnappyException, org.apache.thrift.TException;
public StatementResult execute(long connId, String sql, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public UpdateResult executeUpdate(long connId, List sqls, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public RowSet executeQuery(long connId, String sql, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public PrepareResult prepareStatement(long connId, String sql, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public StatementResult executePrepared(long stmtId, Row params, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public UpdateResult executePreparedUpdate(long stmtId, Row params, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public RowSet executePreparedQuery(long stmtId, Row params, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public UpdateResult executePreparedBatch(long stmtId, List paramsBatch, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public StatementResult prepareAndExecute(long connId, String sql, List paramsBatch, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public byte beginTransaction(long connId, byte isolationLevel, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void setTransactionAttributes(long connId, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public Map getTransactionAttributes(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void commitTransaction(long connId, boolean startNewTransaction, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void rollbackTransaction(long connId, boolean startNewTransaction, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public RowSet getNextResultSet(long cursorId, byte otherResultSetBehaviour, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public BlobChunk getBlobChunk(long connId, long lobId, long offset, int size, boolean freeLobAtEnd, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public ClobChunk getClobChunk(long connId, long lobId, long offset, int size, boolean freeLobAtEnd, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public long sendBlobChunk(BlobChunk chunk, long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public long sendClobChunk(ClobChunk chunk, long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void freeLob(long connId, long lobId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public RowSet scrollCursor(long cursorId, int offset, boolean offsetIsAbsolute, boolean fetchReverse, int fetchSize, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void executeCursorUpdate(long cursorId, List operations, List changedRows, List> changedColumnsList, List changedRowIndexes, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void startXATransaction(long connId, TransactionXid xid, int timeoutInSeconds, int flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public int prepareXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void commitXATransaction(long connId, TransactionXid xid, boolean onePhase, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void rollbackXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void forgetXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void endXATransaction(long connId, TransactionXid xid, int flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public List recoverXATransaction(long connId, int flag, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public ServiceMetaData getServiceMetaData(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public RowSet getSchemaMetaData(ServiceMetaDataCall schemaCall, ServiceMetaDataArgs metadataArgs) throws SnappyException, org.apache.thrift.TException;
public RowSet getIndexInfo(ServiceMetaDataArgs metadataArgs, boolean unique, boolean approximate) throws SnappyException, org.apache.thrift.TException;
public RowSet getUDTs(ServiceMetaDataArgs metadataArgs, List types) throws SnappyException, org.apache.thrift.TException;
public RowSet getBestRowIdentifier(ServiceMetaDataArgs metadataArgs, int scope, boolean nullable) throws SnappyException, org.apache.thrift.TException;
public List fetchActiveConnections(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public Map fetchActiveStatements(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void cancelStatement(long stmtId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void cancelCurrentStatement(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void closeResultSet(long cursorId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void closeStatement(long stmtId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException;
public void closeConnection(long connId, boolean closeSocket, ByteBuffer token) throws org.apache.thrift.TException;
public void bulkClose(List entities) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public HostAddress getPreferredServer(Set serverTypes, Set serverGroups, Set failedServers) throws SnappyException, org.apache.thrift.TException
{
send_getPreferredServer(serverTypes, serverGroups, failedServers);
return recv_getPreferredServer();
}
public void send_getPreferredServer(Set serverTypes, Set serverGroups, Set failedServers) throws org.apache.thrift.TException
{
getPreferredServer_args args = new getPreferredServer_args();
args.setServerTypes(serverTypes);
args.setServerGroups(serverGroups);
args.setFailedServers(failedServers);
sendBase("getPreferredServer", args);
}
public HostAddress recv_getPreferredServer() throws SnappyException, org.apache.thrift.TException
{
getPreferredServer_result result = new getPreferredServer_result();
receiveBase(result, "getPreferredServer");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreferredServer failed: unknown result");
}
public List getAllServersWithPreferredServer(Set serverTypes, Set serverGroups, Set failedServers) throws SnappyException, org.apache.thrift.TException
{
send_getAllServersWithPreferredServer(serverTypes, serverGroups, failedServers);
return recv_getAllServersWithPreferredServer();
}
public void send_getAllServersWithPreferredServer(Set serverTypes, Set serverGroups, Set failedServers) throws org.apache.thrift.TException
{
getAllServersWithPreferredServer_args args = new getAllServersWithPreferredServer_args();
args.setServerTypes(serverTypes);
args.setServerGroups(serverGroups);
args.setFailedServers(failedServers);
sendBase("getAllServersWithPreferredServer", args);
}
public List recv_getAllServersWithPreferredServer() throws SnappyException, org.apache.thrift.TException
{
getAllServersWithPreferredServer_result result = new getAllServersWithPreferredServer_result();
receiveBase(result, "getAllServersWithPreferredServer");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllServersWithPreferredServer failed: unknown result");
}
public ConnectionProperties openConnection(OpenConnectionArgs arguments) throws SnappyException, org.apache.thrift.TException
{
send_openConnection(arguments);
return recv_openConnection();
}
public void send_openConnection(OpenConnectionArgs arguments) throws org.apache.thrift.TException
{
openConnection_args args = new openConnection_args();
args.setArguments(arguments);
sendBase("openConnection", args);
}
public ConnectionProperties recv_openConnection() throws SnappyException, org.apache.thrift.TException
{
openConnection_result result = new openConnection_result();
receiveBase(result, "openConnection");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openConnection failed: unknown result");
}
public StatementResult execute(long connId, String sql, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_execute(connId, sql, outputParams, attrs, token);
return recv_execute();
}
public void send_execute(long connId, String sql, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
execute_args args = new execute_args();
args.setConnId(connId);
args.setSql(sql);
args.setOutputParams(outputParams);
args.setAttrs(attrs);
args.setToken(token);
sendBase("execute", args);
}
public StatementResult recv_execute() throws SnappyException, org.apache.thrift.TException
{
execute_result result = new execute_result();
receiveBase(result, "execute");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "execute failed: unknown result");
}
public UpdateResult executeUpdate(long connId, List sqls, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executeUpdate(connId, sqls, attrs, token);
return recv_executeUpdate();
}
public void send_executeUpdate(long connId, List sqls, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
executeUpdate_args args = new executeUpdate_args();
args.setConnId(connId);
args.setSqls(sqls);
args.setAttrs(attrs);
args.setToken(token);
sendBase("executeUpdate", args);
}
public UpdateResult recv_executeUpdate() throws SnappyException, org.apache.thrift.TException
{
executeUpdate_result result = new executeUpdate_result();
receiveBase(result, "executeUpdate");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executeUpdate failed: unknown result");
}
public RowSet executeQuery(long connId, String sql, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executeQuery(connId, sql, attrs, token);
return recv_executeQuery();
}
public void send_executeQuery(long connId, String sql, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
executeQuery_args args = new executeQuery_args();
args.setConnId(connId);
args.setSql(sql);
args.setAttrs(attrs);
args.setToken(token);
sendBase("executeQuery", args);
}
public RowSet recv_executeQuery() throws SnappyException, org.apache.thrift.TException
{
executeQuery_result result = new executeQuery_result();
receiveBase(result, "executeQuery");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executeQuery failed: unknown result");
}
public PrepareResult prepareStatement(long connId, String sql, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_prepareStatement(connId, sql, outputParams, attrs, token);
return recv_prepareStatement();
}
public void send_prepareStatement(long connId, String sql, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
prepareStatement_args args = new prepareStatement_args();
args.setConnId(connId);
args.setSql(sql);
args.setOutputParams(outputParams);
args.setAttrs(attrs);
args.setToken(token);
sendBase("prepareStatement", args);
}
public PrepareResult recv_prepareStatement() throws SnappyException, org.apache.thrift.TException
{
prepareStatement_result result = new prepareStatement_result();
receiveBase(result, "prepareStatement");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "prepareStatement failed: unknown result");
}
public StatementResult executePrepared(long stmtId, Row params, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executePrepared(stmtId, params, outputParams, attrs, token);
return recv_executePrepared();
}
public void send_executePrepared(long stmtId, Row params, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
executePrepared_args args = new executePrepared_args();
args.setStmtId(stmtId);
args.setParams(params);
args.setOutputParams(outputParams);
args.setAttrs(attrs);
args.setToken(token);
sendBase("executePrepared", args);
}
public StatementResult recv_executePrepared() throws SnappyException, org.apache.thrift.TException
{
executePrepared_result result = new executePrepared_result();
receiveBase(result, "executePrepared");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executePrepared failed: unknown result");
}
public UpdateResult executePreparedUpdate(long stmtId, Row params, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executePreparedUpdate(stmtId, params, attrs, token);
return recv_executePreparedUpdate();
}
public void send_executePreparedUpdate(long stmtId, Row params, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
executePreparedUpdate_args args = new executePreparedUpdate_args();
args.setStmtId(stmtId);
args.setParams(params);
args.setAttrs(attrs);
args.setToken(token);
sendBase("executePreparedUpdate", args);
}
public UpdateResult recv_executePreparedUpdate() throws SnappyException, org.apache.thrift.TException
{
executePreparedUpdate_result result = new executePreparedUpdate_result();
receiveBase(result, "executePreparedUpdate");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executePreparedUpdate failed: unknown result");
}
public RowSet executePreparedQuery(long stmtId, Row params, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executePreparedQuery(stmtId, params, attrs, token);
return recv_executePreparedQuery();
}
public void send_executePreparedQuery(long stmtId, Row params, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
executePreparedQuery_args args = new executePreparedQuery_args();
args.setStmtId(stmtId);
args.setParams(params);
args.setAttrs(attrs);
args.setToken(token);
sendBase("executePreparedQuery", args);
}
public RowSet recv_executePreparedQuery() throws SnappyException, org.apache.thrift.TException
{
executePreparedQuery_result result = new executePreparedQuery_result();
receiveBase(result, "executePreparedQuery");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executePreparedQuery failed: unknown result");
}
public UpdateResult executePreparedBatch(long stmtId, List paramsBatch, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executePreparedBatch(stmtId, paramsBatch, attrs, token);
return recv_executePreparedBatch();
}
public void send_executePreparedBatch(long stmtId, List paramsBatch, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
executePreparedBatch_args args = new executePreparedBatch_args();
args.setStmtId(stmtId);
args.setParamsBatch(paramsBatch);
args.setAttrs(attrs);
args.setToken(token);
sendBase("executePreparedBatch", args);
}
public UpdateResult recv_executePreparedBatch() throws SnappyException, org.apache.thrift.TException
{
executePreparedBatch_result result = new executePreparedBatch_result();
receiveBase(result, "executePreparedBatch");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executePreparedBatch failed: unknown result");
}
public StatementResult prepareAndExecute(long connId, String sql, List paramsBatch, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_prepareAndExecute(connId, sql, paramsBatch, outputParams, attrs, token);
return recv_prepareAndExecute();
}
public void send_prepareAndExecute(long connId, String sql, List paramsBatch, Map outputParams, StatementAttrs attrs, ByteBuffer token) throws org.apache.thrift.TException
{
prepareAndExecute_args args = new prepareAndExecute_args();
args.setConnId(connId);
args.setSql(sql);
args.setParamsBatch(paramsBatch);
args.setOutputParams(outputParams);
args.setAttrs(attrs);
args.setToken(token);
sendBase("prepareAndExecute", args);
}
public StatementResult recv_prepareAndExecute() throws SnappyException, org.apache.thrift.TException
{
prepareAndExecute_result result = new prepareAndExecute_result();
receiveBase(result, "prepareAndExecute");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "prepareAndExecute failed: unknown result");
}
public byte beginTransaction(long connId, byte isolationLevel, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_beginTransaction(connId, isolationLevel, flags, token);
return recv_beginTransaction();
}
public void send_beginTransaction(long connId, byte isolationLevel, Map flags, ByteBuffer token) throws org.apache.thrift.TException
{
beginTransaction_args args = new beginTransaction_args();
args.setConnId(connId);
args.setIsolationLevel(isolationLevel);
args.setFlags(flags);
args.setToken(token);
sendBase("beginTransaction", args);
}
public byte recv_beginTransaction() throws SnappyException, org.apache.thrift.TException
{
beginTransaction_result result = new beginTransaction_result();
receiveBase(result, "beginTransaction");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "beginTransaction failed: unknown result");
}
public void setTransactionAttributes(long connId, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_setTransactionAttributes(connId, flags, token);
recv_setTransactionAttributes();
}
public void send_setTransactionAttributes(long connId, Map flags, ByteBuffer token) throws org.apache.thrift.TException
{
setTransactionAttributes_args args = new setTransactionAttributes_args();
args.setConnId(connId);
args.setFlags(flags);
args.setToken(token);
sendBase("setTransactionAttributes", args);
}
public void recv_setTransactionAttributes() throws SnappyException, org.apache.thrift.TException
{
setTransactionAttributes_result result = new setTransactionAttributes_result();
receiveBase(result, "setTransactionAttributes");
if (result.error != null) {
throw result.error;
}
return;
}
public Map getTransactionAttributes(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_getTransactionAttributes(connId, token);
return recv_getTransactionAttributes();
}
public void send_getTransactionAttributes(long connId, ByteBuffer token) throws org.apache.thrift.TException
{
getTransactionAttributes_args args = new getTransactionAttributes_args();
args.setConnId(connId);
args.setToken(token);
sendBase("getTransactionAttributes", args);
}
public Map recv_getTransactionAttributes() throws SnappyException, org.apache.thrift.TException
{
getTransactionAttributes_result result = new getTransactionAttributes_result();
receiveBase(result, "getTransactionAttributes");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionAttributes failed: unknown result");
}
public void commitTransaction(long connId, boolean startNewTransaction, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_commitTransaction(connId, startNewTransaction, flags, token);
recv_commitTransaction();
}
public void send_commitTransaction(long connId, boolean startNewTransaction, Map flags, ByteBuffer token) throws org.apache.thrift.TException
{
commitTransaction_args args = new commitTransaction_args();
args.setConnId(connId);
args.setStartNewTransaction(startNewTransaction);
args.setFlags(flags);
args.setToken(token);
sendBase("commitTransaction", args);
}
public void recv_commitTransaction() throws SnappyException, org.apache.thrift.TException
{
commitTransaction_result result = new commitTransaction_result();
receiveBase(result, "commitTransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public void rollbackTransaction(long connId, boolean startNewTransaction, Map flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_rollbackTransaction(connId, startNewTransaction, flags, token);
recv_rollbackTransaction();
}
public void send_rollbackTransaction(long connId, boolean startNewTransaction, Map flags, ByteBuffer token) throws org.apache.thrift.TException
{
rollbackTransaction_args args = new rollbackTransaction_args();
args.setConnId(connId);
args.setStartNewTransaction(startNewTransaction);
args.setFlags(flags);
args.setToken(token);
sendBase("rollbackTransaction", args);
}
public void recv_rollbackTransaction() throws SnappyException, org.apache.thrift.TException
{
rollbackTransaction_result result = new rollbackTransaction_result();
receiveBase(result, "rollbackTransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public RowSet getNextResultSet(long cursorId, byte otherResultSetBehaviour, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_getNextResultSet(cursorId, otherResultSetBehaviour, token);
return recv_getNextResultSet();
}
public void send_getNextResultSet(long cursorId, byte otherResultSetBehaviour, ByteBuffer token) throws org.apache.thrift.TException
{
getNextResultSet_args args = new getNextResultSet_args();
args.setCursorId(cursorId);
args.setOtherResultSetBehaviour(otherResultSetBehaviour);
args.setToken(token);
sendBase("getNextResultSet", args);
}
public RowSet recv_getNextResultSet() throws SnappyException, org.apache.thrift.TException
{
getNextResultSet_result result = new getNextResultSet_result();
receiveBase(result, "getNextResultSet");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNextResultSet failed: unknown result");
}
public BlobChunk getBlobChunk(long connId, long lobId, long offset, int size, boolean freeLobAtEnd, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_getBlobChunk(connId, lobId, offset, size, freeLobAtEnd, token);
return recv_getBlobChunk();
}
public void send_getBlobChunk(long connId, long lobId, long offset, int size, boolean freeLobAtEnd, ByteBuffer token) throws org.apache.thrift.TException
{
getBlobChunk_args args = new getBlobChunk_args();
args.setConnId(connId);
args.setLobId(lobId);
args.setOffset(offset);
args.setSize(size);
args.setFreeLobAtEnd(freeLobAtEnd);
args.setToken(token);
sendBase("getBlobChunk", args);
}
public BlobChunk recv_getBlobChunk() throws SnappyException, org.apache.thrift.TException
{
getBlobChunk_result result = new getBlobChunk_result();
receiveBase(result, "getBlobChunk");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBlobChunk failed: unknown result");
}
public ClobChunk getClobChunk(long connId, long lobId, long offset, int size, boolean freeLobAtEnd, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_getClobChunk(connId, lobId, offset, size, freeLobAtEnd, token);
return recv_getClobChunk();
}
public void send_getClobChunk(long connId, long lobId, long offset, int size, boolean freeLobAtEnd, ByteBuffer token) throws org.apache.thrift.TException
{
getClobChunk_args args = new getClobChunk_args();
args.setConnId(connId);
args.setLobId(lobId);
args.setOffset(offset);
args.setSize(size);
args.setFreeLobAtEnd(freeLobAtEnd);
args.setToken(token);
sendBase("getClobChunk", args);
}
public ClobChunk recv_getClobChunk() throws SnappyException, org.apache.thrift.TException
{
getClobChunk_result result = new getClobChunk_result();
receiveBase(result, "getClobChunk");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClobChunk failed: unknown result");
}
public long sendBlobChunk(BlobChunk chunk, long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_sendBlobChunk(chunk, connId, token);
return recv_sendBlobChunk();
}
public void send_sendBlobChunk(BlobChunk chunk, long connId, ByteBuffer token) throws org.apache.thrift.TException
{
sendBlobChunk_args args = new sendBlobChunk_args();
args.setChunk(chunk);
args.setConnId(connId);
args.setToken(token);
sendBase("sendBlobChunk", args);
}
public long recv_sendBlobChunk() throws SnappyException, org.apache.thrift.TException
{
sendBlobChunk_result result = new sendBlobChunk_result();
receiveBase(result, "sendBlobChunk");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendBlobChunk failed: unknown result");
}
public long sendClobChunk(ClobChunk chunk, long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_sendClobChunk(chunk, connId, token);
return recv_sendClobChunk();
}
public void send_sendClobChunk(ClobChunk chunk, long connId, ByteBuffer token) throws org.apache.thrift.TException
{
sendClobChunk_args args = new sendClobChunk_args();
args.setChunk(chunk);
args.setConnId(connId);
args.setToken(token);
sendBase("sendClobChunk", args);
}
public long recv_sendClobChunk() throws SnappyException, org.apache.thrift.TException
{
sendClobChunk_result result = new sendClobChunk_result();
receiveBase(result, "sendClobChunk");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendClobChunk failed: unknown result");
}
public void freeLob(long connId, long lobId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_freeLob(connId, lobId, token);
recv_freeLob();
}
public void send_freeLob(long connId, long lobId, ByteBuffer token) throws org.apache.thrift.TException
{
freeLob_args args = new freeLob_args();
args.setConnId(connId);
args.setLobId(lobId);
args.setToken(token);
sendBase("freeLob", args);
}
public void recv_freeLob() throws SnappyException, org.apache.thrift.TException
{
freeLob_result result = new freeLob_result();
receiveBase(result, "freeLob");
if (result.error != null) {
throw result.error;
}
return;
}
public RowSet scrollCursor(long cursorId, int offset, boolean offsetIsAbsolute, boolean fetchReverse, int fetchSize, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_scrollCursor(cursorId, offset, offsetIsAbsolute, fetchReverse, fetchSize, token);
return recv_scrollCursor();
}
public void send_scrollCursor(long cursorId, int offset, boolean offsetIsAbsolute, boolean fetchReverse, int fetchSize, ByteBuffer token) throws org.apache.thrift.TException
{
scrollCursor_args args = new scrollCursor_args();
args.setCursorId(cursorId);
args.setOffset(offset);
args.setOffsetIsAbsolute(offsetIsAbsolute);
args.setFetchReverse(fetchReverse);
args.setFetchSize(fetchSize);
args.setToken(token);
sendBase("scrollCursor", args);
}
public RowSet recv_scrollCursor() throws SnappyException, org.apache.thrift.TException
{
scrollCursor_result result = new scrollCursor_result();
receiveBase(result, "scrollCursor");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scrollCursor failed: unknown result");
}
public void executeCursorUpdate(long cursorId, List operations, List changedRows, List> changedColumnsList, List changedRowIndexes, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_executeCursorUpdate(cursorId, operations, changedRows, changedColumnsList, changedRowIndexes, token);
recv_executeCursorUpdate();
}
public void send_executeCursorUpdate(long cursorId, List operations, List changedRows, List> changedColumnsList, List changedRowIndexes, ByteBuffer token) throws org.apache.thrift.TException
{
executeCursorUpdate_args args = new executeCursorUpdate_args();
args.setCursorId(cursorId);
args.setOperations(operations);
args.setChangedRows(changedRows);
args.setChangedColumnsList(changedColumnsList);
args.setChangedRowIndexes(changedRowIndexes);
args.setToken(token);
sendBase("executeCursorUpdate", args);
}
public void recv_executeCursorUpdate() throws SnappyException, org.apache.thrift.TException
{
executeCursorUpdate_result result = new executeCursorUpdate_result();
receiveBase(result, "executeCursorUpdate");
if (result.error != null) {
throw result.error;
}
return;
}
public void startXATransaction(long connId, TransactionXid xid, int timeoutInSeconds, int flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_startXATransaction(connId, xid, timeoutInSeconds, flags, token);
recv_startXATransaction();
}
public void send_startXATransaction(long connId, TransactionXid xid, int timeoutInSeconds, int flags, ByteBuffer token) throws org.apache.thrift.TException
{
startXATransaction_args args = new startXATransaction_args();
args.setConnId(connId);
args.setXid(xid);
args.setTimeoutInSeconds(timeoutInSeconds);
args.setFlags(flags);
args.setToken(token);
sendBase("startXATransaction", args);
}
public void recv_startXATransaction() throws SnappyException, org.apache.thrift.TException
{
startXATransaction_result result = new startXATransaction_result();
receiveBase(result, "startXATransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public int prepareXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_prepareXATransaction(connId, xid, token);
return recv_prepareXATransaction();
}
public void send_prepareXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws org.apache.thrift.TException
{
prepareXATransaction_args args = new prepareXATransaction_args();
args.setConnId(connId);
args.setXid(xid);
args.setToken(token);
sendBase("prepareXATransaction", args);
}
public int recv_prepareXATransaction() throws SnappyException, org.apache.thrift.TException
{
prepareXATransaction_result result = new prepareXATransaction_result();
receiveBase(result, "prepareXATransaction");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "prepareXATransaction failed: unknown result");
}
public void commitXATransaction(long connId, TransactionXid xid, boolean onePhase, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_commitXATransaction(connId, xid, onePhase, token);
recv_commitXATransaction();
}
public void send_commitXATransaction(long connId, TransactionXid xid, boolean onePhase, ByteBuffer token) throws org.apache.thrift.TException
{
commitXATransaction_args args = new commitXATransaction_args();
args.setConnId(connId);
args.setXid(xid);
args.setOnePhase(onePhase);
args.setToken(token);
sendBase("commitXATransaction", args);
}
public void recv_commitXATransaction() throws SnappyException, org.apache.thrift.TException
{
commitXATransaction_result result = new commitXATransaction_result();
receiveBase(result, "commitXATransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public void rollbackXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_rollbackXATransaction(connId, xid, token);
recv_rollbackXATransaction();
}
public void send_rollbackXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws org.apache.thrift.TException
{
rollbackXATransaction_args args = new rollbackXATransaction_args();
args.setConnId(connId);
args.setXid(xid);
args.setToken(token);
sendBase("rollbackXATransaction", args);
}
public void recv_rollbackXATransaction() throws SnappyException, org.apache.thrift.TException
{
rollbackXATransaction_result result = new rollbackXATransaction_result();
receiveBase(result, "rollbackXATransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public void forgetXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_forgetXATransaction(connId, xid, token);
recv_forgetXATransaction();
}
public void send_forgetXATransaction(long connId, TransactionXid xid, ByteBuffer token) throws org.apache.thrift.TException
{
forgetXATransaction_args args = new forgetXATransaction_args();
args.setConnId(connId);
args.setXid(xid);
args.setToken(token);
sendBase("forgetXATransaction", args);
}
public void recv_forgetXATransaction() throws SnappyException, org.apache.thrift.TException
{
forgetXATransaction_result result = new forgetXATransaction_result();
receiveBase(result, "forgetXATransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public void endXATransaction(long connId, TransactionXid xid, int flags, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_endXATransaction(connId, xid, flags, token);
recv_endXATransaction();
}
public void send_endXATransaction(long connId, TransactionXid xid, int flags, ByteBuffer token) throws org.apache.thrift.TException
{
endXATransaction_args args = new endXATransaction_args();
args.setConnId(connId);
args.setXid(xid);
args.setFlags(flags);
args.setToken(token);
sendBase("endXATransaction", args);
}
public void recv_endXATransaction() throws SnappyException, org.apache.thrift.TException
{
endXATransaction_result result = new endXATransaction_result();
receiveBase(result, "endXATransaction");
if (result.error != null) {
throw result.error;
}
return;
}
public List recoverXATransaction(long connId, int flag, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_recoverXATransaction(connId, flag, token);
return recv_recoverXATransaction();
}
public void send_recoverXATransaction(long connId, int flag, ByteBuffer token) throws org.apache.thrift.TException
{
recoverXATransaction_args args = new recoverXATransaction_args();
args.setConnId(connId);
args.setFlag(flag);
args.setToken(token);
sendBase("recoverXATransaction", args);
}
public List recv_recoverXATransaction() throws SnappyException, org.apache.thrift.TException
{
recoverXATransaction_result result = new recoverXATransaction_result();
receiveBase(result, "recoverXATransaction");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "recoverXATransaction failed: unknown result");
}
public ServiceMetaData getServiceMetaData(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_getServiceMetaData(connId, token);
return recv_getServiceMetaData();
}
public void send_getServiceMetaData(long connId, ByteBuffer token) throws org.apache.thrift.TException
{
getServiceMetaData_args args = new getServiceMetaData_args();
args.setConnId(connId);
args.setToken(token);
sendBase("getServiceMetaData", args);
}
public ServiceMetaData recv_getServiceMetaData() throws SnappyException, org.apache.thrift.TException
{
getServiceMetaData_result result = new getServiceMetaData_result();
receiveBase(result, "getServiceMetaData");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceMetaData failed: unknown result");
}
public RowSet getSchemaMetaData(ServiceMetaDataCall schemaCall, ServiceMetaDataArgs metadataArgs) throws SnappyException, org.apache.thrift.TException
{
send_getSchemaMetaData(schemaCall, metadataArgs);
return recv_getSchemaMetaData();
}
public void send_getSchemaMetaData(ServiceMetaDataCall schemaCall, ServiceMetaDataArgs metadataArgs) throws org.apache.thrift.TException
{
getSchemaMetaData_args args = new getSchemaMetaData_args();
args.setSchemaCall(schemaCall);
args.setMetadataArgs(metadataArgs);
sendBase("getSchemaMetaData", args);
}
public RowSet recv_getSchemaMetaData() throws SnappyException, org.apache.thrift.TException
{
getSchemaMetaData_result result = new getSchemaMetaData_result();
receiveBase(result, "getSchemaMetaData");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSchemaMetaData failed: unknown result");
}
public RowSet getIndexInfo(ServiceMetaDataArgs metadataArgs, boolean unique, boolean approximate) throws SnappyException, org.apache.thrift.TException
{
send_getIndexInfo(metadataArgs, unique, approximate);
return recv_getIndexInfo();
}
public void send_getIndexInfo(ServiceMetaDataArgs metadataArgs, boolean unique, boolean approximate) throws org.apache.thrift.TException
{
getIndexInfo_args args = new getIndexInfo_args();
args.setMetadataArgs(metadataArgs);
args.setUnique(unique);
args.setApproximate(approximate);
sendBase("getIndexInfo", args);
}
public RowSet recv_getIndexInfo() throws SnappyException, org.apache.thrift.TException
{
getIndexInfo_result result = new getIndexInfo_result();
receiveBase(result, "getIndexInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIndexInfo failed: unknown result");
}
public RowSet getUDTs(ServiceMetaDataArgs metadataArgs, List types) throws SnappyException, org.apache.thrift.TException
{
send_getUDTs(metadataArgs, types);
return recv_getUDTs();
}
public void send_getUDTs(ServiceMetaDataArgs metadataArgs, List types) throws org.apache.thrift.TException
{
getUDTs_args args = new getUDTs_args();
args.setMetadataArgs(metadataArgs);
args.setTypes(types);
sendBase("getUDTs", args);
}
public RowSet recv_getUDTs() throws SnappyException, org.apache.thrift.TException
{
getUDTs_result result = new getUDTs_result();
receiveBase(result, "getUDTs");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUDTs failed: unknown result");
}
public RowSet getBestRowIdentifier(ServiceMetaDataArgs metadataArgs, int scope, boolean nullable) throws SnappyException, org.apache.thrift.TException
{
send_getBestRowIdentifier(metadataArgs, scope, nullable);
return recv_getBestRowIdentifier();
}
public void send_getBestRowIdentifier(ServiceMetaDataArgs metadataArgs, int scope, boolean nullable) throws org.apache.thrift.TException
{
getBestRowIdentifier_args args = new getBestRowIdentifier_args();
args.setMetadataArgs(metadataArgs);
args.setScope(scope);
args.setNullable(nullable);
sendBase("getBestRowIdentifier", args);
}
public RowSet recv_getBestRowIdentifier() throws SnappyException, org.apache.thrift.TException
{
getBestRowIdentifier_result result = new getBestRowIdentifier_result();
receiveBase(result, "getBestRowIdentifier");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestRowIdentifier failed: unknown result");
}
public List fetchActiveConnections(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_fetchActiveConnections(connId, token);
return recv_fetchActiveConnections();
}
public void send_fetchActiveConnections(long connId, ByteBuffer token) throws org.apache.thrift.TException
{
fetchActiveConnections_args args = new fetchActiveConnections_args();
args.setConnId(connId);
args.setToken(token);
sendBase("fetchActiveConnections", args);
}
public List recv_fetchActiveConnections() throws SnappyException, org.apache.thrift.TException
{
fetchActiveConnections_result result = new fetchActiveConnections_result();
receiveBase(result, "fetchActiveConnections");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchActiveConnections failed: unknown result");
}
public Map fetchActiveStatements(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_fetchActiveStatements(connId, token);
return recv_fetchActiveStatements();
}
public void send_fetchActiveStatements(long connId, ByteBuffer token) throws org.apache.thrift.TException
{
fetchActiveStatements_args args = new fetchActiveStatements_args();
args.setConnId(connId);
args.setToken(token);
sendBase("fetchActiveStatements", args);
}
public Map recv_fetchActiveStatements() throws SnappyException, org.apache.thrift.TException
{
fetchActiveStatements_result result = new fetchActiveStatements_result();
receiveBase(result, "fetchActiveStatements");
if (result.isSetSuccess()) {
return result.success;
}
if (result.error != null) {
throw result.error;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchActiveStatements failed: unknown result");
}
public void cancelStatement(long stmtId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_cancelStatement(stmtId, token);
recv_cancelStatement();
}
public void send_cancelStatement(long stmtId, ByteBuffer token) throws org.apache.thrift.TException
{
cancelStatement_args args = new cancelStatement_args();
args.setStmtId(stmtId);
args.setToken(token);
sendBase("cancelStatement", args);
}
public void recv_cancelStatement() throws SnappyException, org.apache.thrift.TException
{
cancelStatement_result result = new cancelStatement_result();
receiveBase(result, "cancelStatement");
if (result.error != null) {
throw result.error;
}
return;
}
public void cancelCurrentStatement(long connId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_cancelCurrentStatement(connId, token);
recv_cancelCurrentStatement();
}
public void send_cancelCurrentStatement(long connId, ByteBuffer token) throws org.apache.thrift.TException
{
cancelCurrentStatement_args args = new cancelCurrentStatement_args();
args.setConnId(connId);
args.setToken(token);
sendBase("cancelCurrentStatement", args);
}
public void recv_cancelCurrentStatement() throws SnappyException, org.apache.thrift.TException
{
cancelCurrentStatement_result result = new cancelCurrentStatement_result();
receiveBase(result, "cancelCurrentStatement");
if (result.error != null) {
throw result.error;
}
return;
}
public void closeResultSet(long cursorId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_closeResultSet(cursorId, token);
recv_closeResultSet();
}
public void send_closeResultSet(long cursorId, ByteBuffer token) throws org.apache.thrift.TException
{
closeResultSet_args args = new closeResultSet_args();
args.setCursorId(cursorId);
args.setToken(token);
sendBase("closeResultSet", args);
}
public void recv_closeResultSet() throws SnappyException, org.apache.thrift.TException
{
closeResultSet_result result = new closeResultSet_result();
receiveBase(result, "closeResultSet");
if (result.error != null) {
throw result.error;
}
return;
}
public void closeStatement(long stmtId, ByteBuffer token) throws SnappyException, org.apache.thrift.TException
{
send_closeStatement(stmtId, token);
recv_closeStatement();
}
public void send_closeStatement(long stmtId, ByteBuffer token) throws org.apache.thrift.TException
{
closeStatement_args args = new closeStatement_args();
args.setStmtId(stmtId);
args.setToken(token);
sendBase("closeStatement", args);
}
public void recv_closeStatement() throws SnappyException, org.apache.thrift.TException
{
closeStatement_result result = new closeStatement_result();
receiveBase(result, "closeStatement");
if (result.error != null) {
throw result.error;
}
return;
}
public void closeConnection(long connId, boolean closeSocket, ByteBuffer token) throws org.apache.thrift.TException
{
send_closeConnection(connId, closeSocket, token);
}
public void send_closeConnection(long connId, boolean closeSocket, ByteBuffer token) throws org.apache.thrift.TException
{
closeConnection_args args = new closeConnection_args();
args.setConnId(connId);
args.setCloseSocket(closeSocket);
args.setToken(token);
sendBaseOneway("closeConnection", args);
}
public void bulkClose(List entities) throws org.apache.thrift.TException
{
send_bulkClose(entities);
}
public void send_bulkClose(List entities) throws org.apache.thrift.TException
{
bulkClose_args args = new bulkClose_args();
args.setEntities(entities);
sendBaseOneway("bulkClose", args);
}
}
public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new HashMap>()));
}
protected Processor(I iface, Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static Map> getProcessMap(Map> processMap) {
processMap.put("getPreferredServer", new getPreferredServer());
processMap.put("getAllServersWithPreferredServer", new getAllServersWithPreferredServer());
processMap.put("openConnection", new openConnection());
processMap.put("execute", new execute());
processMap.put("executeUpdate", new executeUpdate());
processMap.put("executeQuery", new executeQuery());
processMap.put("prepareStatement", new prepareStatement());
processMap.put("executePrepared", new executePrepared());
processMap.put("executePreparedUpdate", new executePreparedUpdate());
processMap.put("executePreparedQuery", new executePreparedQuery());
processMap.put("executePreparedBatch", new executePreparedBatch());
processMap.put("prepareAndExecute", new prepareAndExecute());
processMap.put("beginTransaction", new beginTransaction());
processMap.put("setTransactionAttributes", new setTransactionAttributes());
processMap.put("getTransactionAttributes", new getTransactionAttributes());
processMap.put("commitTransaction", new commitTransaction());
processMap.put("rollbackTransaction", new rollbackTransaction());
processMap.put("getNextResultSet", new getNextResultSet());
processMap.put("getBlobChunk", new getBlobChunk());
processMap.put("getClobChunk", new getClobChunk());
processMap.put("sendBlobChunk", new sendBlobChunk());
processMap.put("sendClobChunk", new sendClobChunk());
processMap.put("freeLob", new freeLob());
processMap.put("scrollCursor", new scrollCursor());
processMap.put("executeCursorUpdate", new executeCursorUpdate());
processMap.put("startXATransaction", new startXATransaction());
processMap.put("prepareXATransaction", new prepareXATransaction());
processMap.put("commitXATransaction", new commitXATransaction());
processMap.put("rollbackXATransaction", new rollbackXATransaction());
processMap.put("forgetXATransaction", new forgetXATransaction());
processMap.put("endXATransaction", new endXATransaction());
processMap.put("recoverXATransaction", new recoverXATransaction());
processMap.put("getServiceMetaData", new getServiceMetaData());
processMap.put("getSchemaMetaData", new getSchemaMetaData());
processMap.put("getIndexInfo", new getIndexInfo());
processMap.put("getUDTs", new getUDTs());
processMap.put("getBestRowIdentifier", new getBestRowIdentifier());
processMap.put("fetchActiveConnections", new fetchActiveConnections());
processMap.put("fetchActiveStatements", new fetchActiveStatements());
processMap.put("cancelStatement", new cancelStatement());
processMap.put("cancelCurrentStatement", new cancelCurrentStatement());
processMap.put("closeResultSet", new closeResultSet());
processMap.put("closeStatement", new closeStatement());
processMap.put("closeConnection", new closeConnection());
processMap.put("bulkClose", new bulkClose());
return processMap;
}
public static class getPreferredServer extends org.apache.thrift.ProcessFunction {
public getPreferredServer() {
super("getPreferredServer");
}
public getPreferredServer_args getEmptyArgsInstance() {
return new getPreferredServer_args();
}
protected boolean isOneway() {
return false;
}
public getPreferredServer_result getResult(I iface, getPreferredServer_args args) throws org.apache.thrift.TException {
getPreferredServer_result result = new getPreferredServer_result();
try {
result.success = iface.getPreferredServer(args.serverTypes, args.serverGroups, args.failedServers);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getAllServersWithPreferredServer extends org.apache.thrift.ProcessFunction {
public getAllServersWithPreferredServer() {
super("getAllServersWithPreferredServer");
}
public getAllServersWithPreferredServer_args getEmptyArgsInstance() {
return new getAllServersWithPreferredServer_args();
}
protected boolean isOneway() {
return false;
}
public getAllServersWithPreferredServer_result getResult(I iface, getAllServersWithPreferredServer_args args) throws org.apache.thrift.TException {
getAllServersWithPreferredServer_result result = new getAllServersWithPreferredServer_result();
try {
result.success = iface.getAllServersWithPreferredServer(args.serverTypes, args.serverGroups, args.failedServers);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class openConnection extends org.apache.thrift.ProcessFunction {
public openConnection() {
super("openConnection");
}
public openConnection_args getEmptyArgsInstance() {
return new openConnection_args();
}
protected boolean isOneway() {
return false;
}
public openConnection_result getResult(I iface, openConnection_args args) throws org.apache.thrift.TException {
openConnection_result result = new openConnection_result();
try {
result.success = iface.openConnection(args.arguments);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class execute extends org.apache.thrift.ProcessFunction {
public execute() {
super("execute");
}
public execute_args getEmptyArgsInstance() {
return new execute_args();
}
protected boolean isOneway() {
return false;
}
public execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException {
execute_result result = new execute_result();
try {
result.success = iface.execute(args.connId, args.sql, args.outputParams, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executeUpdate extends org.apache.thrift.ProcessFunction {
public executeUpdate() {
super("executeUpdate");
}
public executeUpdate_args getEmptyArgsInstance() {
return new executeUpdate_args();
}
protected boolean isOneway() {
return false;
}
public executeUpdate_result getResult(I iface, executeUpdate_args args) throws org.apache.thrift.TException {
executeUpdate_result result = new executeUpdate_result();
try {
result.success = iface.executeUpdate(args.connId, args.sqls, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executeQuery extends org.apache.thrift.ProcessFunction {
public executeQuery() {
super("executeQuery");
}
public executeQuery_args getEmptyArgsInstance() {
return new executeQuery_args();
}
protected boolean isOneway() {
return false;
}
public executeQuery_result getResult(I iface, executeQuery_args args) throws org.apache.thrift.TException {
executeQuery_result result = new executeQuery_result();
try {
result.success = iface.executeQuery(args.connId, args.sql, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class prepareStatement extends org.apache.thrift.ProcessFunction {
public prepareStatement() {
super("prepareStatement");
}
public prepareStatement_args getEmptyArgsInstance() {
return new prepareStatement_args();
}
protected boolean isOneway() {
return false;
}
public prepareStatement_result getResult(I iface, prepareStatement_args args) throws org.apache.thrift.TException {
prepareStatement_result result = new prepareStatement_result();
try {
result.success = iface.prepareStatement(args.connId, args.sql, args.outputParams, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executePrepared extends org.apache.thrift.ProcessFunction {
public executePrepared() {
super("executePrepared");
}
public executePrepared_args getEmptyArgsInstance() {
return new executePrepared_args();
}
protected boolean isOneway() {
return false;
}
public executePrepared_result getResult(I iface, executePrepared_args args) throws org.apache.thrift.TException {
executePrepared_result result = new executePrepared_result();
try {
result.success = iface.executePrepared(args.stmtId, args.params, args.outputParams, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executePreparedUpdate extends org.apache.thrift.ProcessFunction {
public executePreparedUpdate() {
super("executePreparedUpdate");
}
public executePreparedUpdate_args getEmptyArgsInstance() {
return new executePreparedUpdate_args();
}
protected boolean isOneway() {
return false;
}
public executePreparedUpdate_result getResult(I iface, executePreparedUpdate_args args) throws org.apache.thrift.TException {
executePreparedUpdate_result result = new executePreparedUpdate_result();
try {
result.success = iface.executePreparedUpdate(args.stmtId, args.params, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executePreparedQuery extends org.apache.thrift.ProcessFunction {
public executePreparedQuery() {
super("executePreparedQuery");
}
public executePreparedQuery_args getEmptyArgsInstance() {
return new executePreparedQuery_args();
}
protected boolean isOneway() {
return false;
}
public executePreparedQuery_result getResult(I iface, executePreparedQuery_args args) throws org.apache.thrift.TException {
executePreparedQuery_result result = new executePreparedQuery_result();
try {
result.success = iface.executePreparedQuery(args.stmtId, args.params, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executePreparedBatch extends org.apache.thrift.ProcessFunction {
public executePreparedBatch() {
super("executePreparedBatch");
}
public executePreparedBatch_args getEmptyArgsInstance() {
return new executePreparedBatch_args();
}
protected boolean isOneway() {
return false;
}
public executePreparedBatch_result getResult(I iface, executePreparedBatch_args args) throws org.apache.thrift.TException {
executePreparedBatch_result result = new executePreparedBatch_result();
try {
result.success = iface.executePreparedBatch(args.stmtId, args.paramsBatch, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class prepareAndExecute extends org.apache.thrift.ProcessFunction {
public prepareAndExecute() {
super("prepareAndExecute");
}
public prepareAndExecute_args getEmptyArgsInstance() {
return new prepareAndExecute_args();
}
protected boolean isOneway() {
return false;
}
public prepareAndExecute_result getResult(I iface, prepareAndExecute_args args) throws org.apache.thrift.TException {
prepareAndExecute_result result = new prepareAndExecute_result();
try {
result.success = iface.prepareAndExecute(args.connId, args.sql, args.paramsBatch, args.outputParams, args.attrs, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class beginTransaction extends org.apache.thrift.ProcessFunction {
public beginTransaction() {
super("beginTransaction");
}
public beginTransaction_args getEmptyArgsInstance() {
return new beginTransaction_args();
}
protected boolean isOneway() {
return false;
}
public beginTransaction_result getResult(I iface, beginTransaction_args args) throws org.apache.thrift.TException {
beginTransaction_result result = new beginTransaction_result();
try {
result.success = iface.beginTransaction(args.connId, args.isolationLevel, args.flags, args.token);
result.setSuccessIsSet(true);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class setTransactionAttributes extends org.apache.thrift.ProcessFunction {
public setTransactionAttributes() {
super("setTransactionAttributes");
}
public setTransactionAttributes_args getEmptyArgsInstance() {
return new setTransactionAttributes_args();
}
protected boolean isOneway() {
return false;
}
public setTransactionAttributes_result getResult(I iface, setTransactionAttributes_args args) throws org.apache.thrift.TException {
setTransactionAttributes_result result = new setTransactionAttributes_result();
try {
iface.setTransactionAttributes(args.connId, args.flags, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getTransactionAttributes extends org.apache.thrift.ProcessFunction {
public getTransactionAttributes() {
super("getTransactionAttributes");
}
public getTransactionAttributes_args getEmptyArgsInstance() {
return new getTransactionAttributes_args();
}
protected boolean isOneway() {
return false;
}
public getTransactionAttributes_result getResult(I iface, getTransactionAttributes_args args) throws org.apache.thrift.TException {
getTransactionAttributes_result result = new getTransactionAttributes_result();
try {
result.success = iface.getTransactionAttributes(args.connId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class commitTransaction extends org.apache.thrift.ProcessFunction {
public commitTransaction() {
super("commitTransaction");
}
public commitTransaction_args getEmptyArgsInstance() {
return new commitTransaction_args();
}
protected boolean isOneway() {
return false;
}
public commitTransaction_result getResult(I iface, commitTransaction_args args) throws org.apache.thrift.TException {
commitTransaction_result result = new commitTransaction_result();
try {
iface.commitTransaction(args.connId, args.startNewTransaction, args.flags, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class rollbackTransaction extends org.apache.thrift.ProcessFunction {
public rollbackTransaction() {
super("rollbackTransaction");
}
public rollbackTransaction_args getEmptyArgsInstance() {
return new rollbackTransaction_args();
}
protected boolean isOneway() {
return false;
}
public rollbackTransaction_result getResult(I iface, rollbackTransaction_args args) throws org.apache.thrift.TException {
rollbackTransaction_result result = new rollbackTransaction_result();
try {
iface.rollbackTransaction(args.connId, args.startNewTransaction, args.flags, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getNextResultSet extends org.apache.thrift.ProcessFunction {
public getNextResultSet() {
super("getNextResultSet");
}
public getNextResultSet_args getEmptyArgsInstance() {
return new getNextResultSet_args();
}
protected boolean isOneway() {
return false;
}
public getNextResultSet_result getResult(I iface, getNextResultSet_args args) throws org.apache.thrift.TException {
getNextResultSet_result result = new getNextResultSet_result();
try {
result.success = iface.getNextResultSet(args.cursorId, args.otherResultSetBehaviour, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getBlobChunk extends org.apache.thrift.ProcessFunction {
public getBlobChunk() {
super("getBlobChunk");
}
public getBlobChunk_args getEmptyArgsInstance() {
return new getBlobChunk_args();
}
protected boolean isOneway() {
return false;
}
public getBlobChunk_result getResult(I iface, getBlobChunk_args args) throws org.apache.thrift.TException {
getBlobChunk_result result = new getBlobChunk_result();
try {
result.success = iface.getBlobChunk(args.connId, args.lobId, args.offset, args.size, args.freeLobAtEnd, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getClobChunk extends org.apache.thrift.ProcessFunction {
public getClobChunk() {
super("getClobChunk");
}
public getClobChunk_args getEmptyArgsInstance() {
return new getClobChunk_args();
}
protected boolean isOneway() {
return false;
}
public getClobChunk_result getResult(I iface, getClobChunk_args args) throws org.apache.thrift.TException {
getClobChunk_result result = new getClobChunk_result();
try {
result.success = iface.getClobChunk(args.connId, args.lobId, args.offset, args.size, args.freeLobAtEnd, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class sendBlobChunk extends org.apache.thrift.ProcessFunction {
public sendBlobChunk() {
super("sendBlobChunk");
}
public sendBlobChunk_args getEmptyArgsInstance() {
return new sendBlobChunk_args();
}
protected boolean isOneway() {
return false;
}
public sendBlobChunk_result getResult(I iface, sendBlobChunk_args args) throws org.apache.thrift.TException {
sendBlobChunk_result result = new sendBlobChunk_result();
try {
result.success = iface.sendBlobChunk(args.chunk, args.connId, args.token);
result.setSuccessIsSet(true);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class sendClobChunk extends org.apache.thrift.ProcessFunction {
public sendClobChunk() {
super("sendClobChunk");
}
public sendClobChunk_args getEmptyArgsInstance() {
return new sendClobChunk_args();
}
protected boolean isOneway() {
return false;
}
public sendClobChunk_result getResult(I iface, sendClobChunk_args args) throws org.apache.thrift.TException {
sendClobChunk_result result = new sendClobChunk_result();
try {
result.success = iface.sendClobChunk(args.chunk, args.connId, args.token);
result.setSuccessIsSet(true);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class freeLob extends org.apache.thrift.ProcessFunction {
public freeLob() {
super("freeLob");
}
public freeLob_args getEmptyArgsInstance() {
return new freeLob_args();
}
protected boolean isOneway() {
return false;
}
public freeLob_result getResult(I iface, freeLob_args args) throws org.apache.thrift.TException {
freeLob_result result = new freeLob_result();
try {
iface.freeLob(args.connId, args.lobId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class scrollCursor extends org.apache.thrift.ProcessFunction {
public scrollCursor() {
super("scrollCursor");
}
public scrollCursor_args getEmptyArgsInstance() {
return new scrollCursor_args();
}
protected boolean isOneway() {
return false;
}
public scrollCursor_result getResult(I iface, scrollCursor_args args) throws org.apache.thrift.TException {
scrollCursor_result result = new scrollCursor_result();
try {
result.success = iface.scrollCursor(args.cursorId, args.offset, args.offsetIsAbsolute, args.fetchReverse, args.fetchSize, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class executeCursorUpdate extends org.apache.thrift.ProcessFunction {
public executeCursorUpdate() {
super("executeCursorUpdate");
}
public executeCursorUpdate_args getEmptyArgsInstance() {
return new executeCursorUpdate_args();
}
protected boolean isOneway() {
return false;
}
public executeCursorUpdate_result getResult(I iface, executeCursorUpdate_args args) throws org.apache.thrift.TException {
executeCursorUpdate_result result = new executeCursorUpdate_result();
try {
iface.executeCursorUpdate(args.cursorId, args.operations, args.changedRows, args.changedColumnsList, args.changedRowIndexes, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class startXATransaction extends org.apache.thrift.ProcessFunction {
public startXATransaction() {
super("startXATransaction");
}
public startXATransaction_args getEmptyArgsInstance() {
return new startXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public startXATransaction_result getResult(I iface, startXATransaction_args args) throws org.apache.thrift.TException {
startXATransaction_result result = new startXATransaction_result();
try {
iface.startXATransaction(args.connId, args.xid, args.timeoutInSeconds, args.flags, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class prepareXATransaction extends org.apache.thrift.ProcessFunction {
public prepareXATransaction() {
super("prepareXATransaction");
}
public prepareXATransaction_args getEmptyArgsInstance() {
return new prepareXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public prepareXATransaction_result getResult(I iface, prepareXATransaction_args args) throws org.apache.thrift.TException {
prepareXATransaction_result result = new prepareXATransaction_result();
try {
result.success = iface.prepareXATransaction(args.connId, args.xid, args.token);
result.setSuccessIsSet(true);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class commitXATransaction extends org.apache.thrift.ProcessFunction {
public commitXATransaction() {
super("commitXATransaction");
}
public commitXATransaction_args getEmptyArgsInstance() {
return new commitXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public commitXATransaction_result getResult(I iface, commitXATransaction_args args) throws org.apache.thrift.TException {
commitXATransaction_result result = new commitXATransaction_result();
try {
iface.commitXATransaction(args.connId, args.xid, args.onePhase, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class rollbackXATransaction extends org.apache.thrift.ProcessFunction {
public rollbackXATransaction() {
super("rollbackXATransaction");
}
public rollbackXATransaction_args getEmptyArgsInstance() {
return new rollbackXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public rollbackXATransaction_result getResult(I iface, rollbackXATransaction_args args) throws org.apache.thrift.TException {
rollbackXATransaction_result result = new rollbackXATransaction_result();
try {
iface.rollbackXATransaction(args.connId, args.xid, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class forgetXATransaction extends org.apache.thrift.ProcessFunction {
public forgetXATransaction() {
super("forgetXATransaction");
}
public forgetXATransaction_args getEmptyArgsInstance() {
return new forgetXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public forgetXATransaction_result getResult(I iface, forgetXATransaction_args args) throws org.apache.thrift.TException {
forgetXATransaction_result result = new forgetXATransaction_result();
try {
iface.forgetXATransaction(args.connId, args.xid, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class endXATransaction extends org.apache.thrift.ProcessFunction {
public endXATransaction() {
super("endXATransaction");
}
public endXATransaction_args getEmptyArgsInstance() {
return new endXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public endXATransaction_result getResult(I iface, endXATransaction_args args) throws org.apache.thrift.TException {
endXATransaction_result result = new endXATransaction_result();
try {
iface.endXATransaction(args.connId, args.xid, args.flags, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class recoverXATransaction extends org.apache.thrift.ProcessFunction {
public recoverXATransaction() {
super("recoverXATransaction");
}
public recoverXATransaction_args getEmptyArgsInstance() {
return new recoverXATransaction_args();
}
protected boolean isOneway() {
return false;
}
public recoverXATransaction_result getResult(I iface, recoverXATransaction_args args) throws org.apache.thrift.TException {
recoverXATransaction_result result = new recoverXATransaction_result();
try {
result.success = iface.recoverXATransaction(args.connId, args.flag, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getServiceMetaData extends org.apache.thrift.ProcessFunction {
public getServiceMetaData() {
super("getServiceMetaData");
}
public getServiceMetaData_args getEmptyArgsInstance() {
return new getServiceMetaData_args();
}
protected boolean isOneway() {
return false;
}
public getServiceMetaData_result getResult(I iface, getServiceMetaData_args args) throws org.apache.thrift.TException {
getServiceMetaData_result result = new getServiceMetaData_result();
try {
result.success = iface.getServiceMetaData(args.connId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getSchemaMetaData extends org.apache.thrift.ProcessFunction {
public getSchemaMetaData() {
super("getSchemaMetaData");
}
public getSchemaMetaData_args getEmptyArgsInstance() {
return new getSchemaMetaData_args();
}
protected boolean isOneway() {
return false;
}
public getSchemaMetaData_result getResult(I iface, getSchemaMetaData_args args) throws org.apache.thrift.TException {
getSchemaMetaData_result result = new getSchemaMetaData_result();
try {
result.success = iface.getSchemaMetaData(args.schemaCall, args.metadataArgs);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getIndexInfo extends org.apache.thrift.ProcessFunction {
public getIndexInfo() {
super("getIndexInfo");
}
public getIndexInfo_args getEmptyArgsInstance() {
return new getIndexInfo_args();
}
protected boolean isOneway() {
return false;
}
public getIndexInfo_result getResult(I iface, getIndexInfo_args args) throws org.apache.thrift.TException {
getIndexInfo_result result = new getIndexInfo_result();
try {
result.success = iface.getIndexInfo(args.metadataArgs, args.unique, args.approximate);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getUDTs extends org.apache.thrift.ProcessFunction {
public getUDTs() {
super("getUDTs");
}
public getUDTs_args getEmptyArgsInstance() {
return new getUDTs_args();
}
protected boolean isOneway() {
return false;
}
public getUDTs_result getResult(I iface, getUDTs_args args) throws org.apache.thrift.TException {
getUDTs_result result = new getUDTs_result();
try {
result.success = iface.getUDTs(args.metadataArgs, args.types);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class getBestRowIdentifier extends org.apache.thrift.ProcessFunction {
public getBestRowIdentifier() {
super("getBestRowIdentifier");
}
public getBestRowIdentifier_args getEmptyArgsInstance() {
return new getBestRowIdentifier_args();
}
protected boolean isOneway() {
return false;
}
public getBestRowIdentifier_result getResult(I iface, getBestRowIdentifier_args args) throws org.apache.thrift.TException {
getBestRowIdentifier_result result = new getBestRowIdentifier_result();
try {
result.success = iface.getBestRowIdentifier(args.metadataArgs, args.scope, args.nullable);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class fetchActiveConnections extends org.apache.thrift.ProcessFunction {
public fetchActiveConnections() {
super("fetchActiveConnections");
}
public fetchActiveConnections_args getEmptyArgsInstance() {
return new fetchActiveConnections_args();
}
protected boolean isOneway() {
return false;
}
public fetchActiveConnections_result getResult(I iface, fetchActiveConnections_args args) throws org.apache.thrift.TException {
fetchActiveConnections_result result = new fetchActiveConnections_result();
try {
result.success = iface.fetchActiveConnections(args.connId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class fetchActiveStatements extends org.apache.thrift.ProcessFunction {
public fetchActiveStatements() {
super("fetchActiveStatements");
}
public fetchActiveStatements_args getEmptyArgsInstance() {
return new fetchActiveStatements_args();
}
protected boolean isOneway() {
return false;
}
public fetchActiveStatements_result getResult(I iface, fetchActiveStatements_args args) throws org.apache.thrift.TException {
fetchActiveStatements_result result = new fetchActiveStatements_result();
try {
result.success = iface.fetchActiveStatements(args.connId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class cancelStatement extends org.apache.thrift.ProcessFunction {
public cancelStatement() {
super("cancelStatement");
}
public cancelStatement_args getEmptyArgsInstance() {
return new cancelStatement_args();
}
protected boolean isOneway() {
return false;
}
public cancelStatement_result getResult(I iface, cancelStatement_args args) throws org.apache.thrift.TException {
cancelStatement_result result = new cancelStatement_result();
try {
iface.cancelStatement(args.stmtId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class cancelCurrentStatement extends org.apache.thrift.ProcessFunction {
public cancelCurrentStatement() {
super("cancelCurrentStatement");
}
public cancelCurrentStatement_args getEmptyArgsInstance() {
return new cancelCurrentStatement_args();
}
protected boolean isOneway() {
return false;
}
public cancelCurrentStatement_result getResult(I iface, cancelCurrentStatement_args args) throws org.apache.thrift.TException {
cancelCurrentStatement_result result = new cancelCurrentStatement_result();
try {
iface.cancelCurrentStatement(args.connId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class closeResultSet extends org.apache.thrift.ProcessFunction {
public closeResultSet() {
super("closeResultSet");
}
public closeResultSet_args getEmptyArgsInstance() {
return new closeResultSet_args();
}
protected boolean isOneway() {
return false;
}
public closeResultSet_result getResult(I iface, closeResultSet_args args) throws org.apache.thrift.TException {
closeResultSet_result result = new closeResultSet_result();
try {
iface.closeResultSet(args.cursorId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class closeStatement extends org.apache.thrift.ProcessFunction {
public closeStatement() {
super("closeStatement");
}
public closeStatement_args getEmptyArgsInstance() {
return new closeStatement_args();
}
protected boolean isOneway() {
return false;
}
public closeStatement_result getResult(I iface, closeStatement_args args) throws org.apache.thrift.TException {
closeStatement_result result = new closeStatement_result();
try {
iface.closeStatement(args.stmtId, args.token);
} catch (SnappyException error) {
result.error = error;
}
return result;
}
}
public static class closeConnection extends org.apache.thrift.ProcessFunction {
public closeConnection() {
super("closeConnection");
}
public closeConnection_args getEmptyArgsInstance() {
return new closeConnection_args();
}
protected boolean isOneway() {
return true;
}
public org.apache.thrift.TBase getResult(I iface, closeConnection_args args) throws org.apache.thrift.TException {
iface.closeConnection(args.connId, args.closeSocket, args.token);
return null;
}
}
public static class bulkClose extends org.apache.thrift.ProcessFunction {
public bulkClose() {
super("bulkClose");
}
public bulkClose_args getEmptyArgsInstance() {
return new bulkClose_args();
}
protected boolean isOneway() {
return true;
}
public org.apache.thrift.TBase getResult(I iface, bulkClose_args args) throws org.apache.thrift.TException {
iface.bulkClose(args.entities);
return null;
}
}
}
public static class getPreferredServer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreferredServer_args");
private static final org.apache.thrift.protocol.TField SERVER_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("serverTypes", org.apache.thrift.protocol.TType.SET, (short)1);
private static final org.apache.thrift.protocol.TField SERVER_GROUPS_FIELD_DESC = new org.apache.thrift.protocol.TField("serverGroups", org.apache.thrift.protocol.TType.SET, (short)2);
private static final org.apache.thrift.protocol.TField FAILED_SERVERS_FIELD_DESC = new org.apache.thrift.protocol.TField("failedServers", org.apache.thrift.protocol.TType.SET, (short)3);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getPreferredServer_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getPreferredServer_argsTupleSchemeFactory());
}
public Set serverTypes; // required
public Set serverGroups; // required
public Set failedServers; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SERVER_TYPES((short)1, "serverTypes"),
SERVER_GROUPS((short)2, "serverGroups"),
FAILED_SERVERS((short)3, "failedServers");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SERVER_TYPES
return SERVER_TYPES;
case 2: // SERVER_GROUPS
return SERVER_GROUPS;
case 3: // FAILED_SERVERS
return FAILED_SERVERS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SERVER_TYPES, new org.apache.thrift.meta_data.FieldMetaData("serverTypes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ServerType.class))));
tmpMap.put(_Fields.SERVER_GROUPS, new org.apache.thrift.meta_data.FieldMetaData("serverGroups", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.FAILED_SERVERS, new org.apache.thrift.meta_data.FieldMetaData("failedServers", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HostAddress.class))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreferredServer_args.class, metaDataMap);
}
public getPreferredServer_args() {
}
public getPreferredServer_args(
Set serverTypes,
Set serverGroups,
Set failedServers)
{
this();
this.serverTypes = serverTypes;
this.serverGroups = serverGroups;
this.failedServers = failedServers;
}
/**
* Performs a deep copy on other .
*/
public getPreferredServer_args(getPreferredServer_args other) {
if (other.isSetServerTypes()) {
Set __this__serverTypes = new HashSet(other.serverTypes.size());
for (ServerType other_element : other.serverTypes) {
__this__serverTypes.add(other_element);
}
this.serverTypes = __this__serverTypes;
}
if (other.isSetServerGroups()) {
Set __this__serverGroups = new HashSet(other.serverGroups);
this.serverGroups = __this__serverGroups;
}
if (other.isSetFailedServers()) {
Set __this__failedServers = new HashSet(other.failedServers.size());
for (HostAddress other_element : other.failedServers) {
__this__failedServers.add(new HostAddress(other_element));
}
this.failedServers = __this__failedServers;
}
}
public getPreferredServer_args deepCopy() {
return new getPreferredServer_args(this);
}
@Override
public void clear() {
this.serverTypes = null;
this.serverGroups = null;
this.failedServers = null;
}
public int getServerTypesSize() {
return (this.serverTypes == null) ? 0 : this.serverTypes.size();
}
public java.util.Iterator getServerTypesIterator() {
return (this.serverTypes == null) ? null : this.serverTypes.iterator();
}
public void addToServerTypes(ServerType elem) {
if (this.serverTypes == null) {
this.serverTypes = new HashSet();
}
this.serverTypes.add(elem);
}
public Set getServerTypes() {
return this.serverTypes;
}
public getPreferredServer_args setServerTypes(Set serverTypes) {
this.serverTypes = serverTypes;
return this;
}
public void unsetServerTypes() {
this.serverTypes = null;
}
/** Returns true if field serverTypes is set (has been assigned a value) and false otherwise */
public boolean isSetServerTypes() {
return this.serverTypes != null;
}
public void setServerTypesIsSet(boolean value) {
if (!value) {
this.serverTypes = null;
}
}
public int getServerGroupsSize() {
return (this.serverGroups == null) ? 0 : this.serverGroups.size();
}
public java.util.Iterator getServerGroupsIterator() {
return (this.serverGroups == null) ? null : this.serverGroups.iterator();
}
public void addToServerGroups(String elem) {
if (this.serverGroups == null) {
this.serverGroups = new HashSet();
}
this.serverGroups.add(elem);
}
public Set getServerGroups() {
return this.serverGroups;
}
public getPreferredServer_args setServerGroups(Set serverGroups) {
this.serverGroups = serverGroups;
return this;
}
public void unsetServerGroups() {
this.serverGroups = null;
}
/** Returns true if field serverGroups is set (has been assigned a value) and false otherwise */
public boolean isSetServerGroups() {
return this.serverGroups != null;
}
public void setServerGroupsIsSet(boolean value) {
if (!value) {
this.serverGroups = null;
}
}
public int getFailedServersSize() {
return (this.failedServers == null) ? 0 : this.failedServers.size();
}
public java.util.Iterator getFailedServersIterator() {
return (this.failedServers == null) ? null : this.failedServers.iterator();
}
public void addToFailedServers(HostAddress elem) {
if (this.failedServers == null) {
this.failedServers = new HashSet();
}
this.failedServers.add(elem);
}
public Set getFailedServers() {
return this.failedServers;
}
public getPreferredServer_args setFailedServers(Set failedServers) {
this.failedServers = failedServers;
return this;
}
public void unsetFailedServers() {
this.failedServers = null;
}
/** Returns true if field failedServers is set (has been assigned a value) and false otherwise */
public boolean isSetFailedServers() {
return this.failedServers != null;
}
public void setFailedServersIsSet(boolean value) {
if (!value) {
this.failedServers = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SERVER_TYPES:
if (value == null) {
unsetServerTypes();
} else {
setServerTypes((Set)value);
}
break;
case SERVER_GROUPS:
if (value == null) {
unsetServerGroups();
} else {
setServerGroups((Set)value);
}
break;
case FAILED_SERVERS:
if (value == null) {
unsetFailedServers();
} else {
setFailedServers((Set)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SERVER_TYPES:
return getServerTypes();
case SERVER_GROUPS:
return getServerGroups();
case FAILED_SERVERS:
return getFailedServers();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SERVER_TYPES:
return isSetServerTypes();
case SERVER_GROUPS:
return isSetServerGroups();
case FAILED_SERVERS:
return isSetFailedServers();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getPreferredServer_args)
return this.equals((getPreferredServer_args)that);
return false;
}
public boolean equals(getPreferredServer_args that) {
if (that == null)
return false;
boolean this_present_serverTypes = true && this.isSetServerTypes();
boolean that_present_serverTypes = true && that.isSetServerTypes();
if (this_present_serverTypes || that_present_serverTypes) {
if (!(this_present_serverTypes && that_present_serverTypes))
return false;
if (!this.serverTypes.equals(that.serverTypes))
return false;
}
boolean this_present_serverGroups = true && this.isSetServerGroups();
boolean that_present_serverGroups = true && that.isSetServerGroups();
if (this_present_serverGroups || that_present_serverGroups) {
if (!(this_present_serverGroups && that_present_serverGroups))
return false;
if (!this.serverGroups.equals(that.serverGroups))
return false;
}
boolean this_present_failedServers = true && this.isSetFailedServers();
boolean that_present_failedServers = true && that.isSetFailedServers();
if (this_present_failedServers || that_present_failedServers) {
if (!(this_present_failedServers && that_present_failedServers))
return false;
if (!this.failedServers.equals(that.failedServers))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_serverTypes = true && (isSetServerTypes());
list.add(present_serverTypes);
if (present_serverTypes)
list.add(serverTypes);
boolean present_serverGroups = true && (isSetServerGroups());
list.add(present_serverGroups);
if (present_serverGroups)
list.add(serverGroups);
boolean present_failedServers = true && (isSetFailedServers());
list.add(present_failedServers);
if (present_failedServers)
list.add(failedServers);
return list.hashCode();
}
@Override
public int compareTo(getPreferredServer_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetServerTypes()).compareTo(other.isSetServerTypes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetServerTypes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverTypes, other.serverTypes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetServerGroups()).compareTo(other.isSetServerGroups());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetServerGroups()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverGroups, other.serverGroups);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetFailedServers()).compareTo(other.isSetFailedServers());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFailedServers()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failedServers, other.failedServers);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getPreferredServer_args(");
boolean first = true;
sb.append("serverTypes:");
if (this.serverTypes == null) {
sb.append("null");
} else {
sb.append(this.serverTypes);
}
first = false;
if (!first) sb.append(", ");
sb.append("serverGroups:");
if (this.serverGroups == null) {
sb.append("null");
} else {
sb.append(this.serverGroups);
}
first = false;
if (!first) sb.append(", ");
sb.append("failedServers:");
if (this.failedServers == null) {
sb.append("null");
} else {
sb.append(this.failedServers);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getPreferredServer_argsStandardSchemeFactory implements SchemeFactory {
public getPreferredServer_argsStandardScheme getScheme() {
return new getPreferredServer_argsStandardScheme();
}
}
private static class getPreferredServer_argsStandardScheme extends StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, getPreferredServer_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // SERVER_TYPES
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set536 = iprot.readSetBegin();
struct.serverTypes = new HashSet(2*_set536.size);
ServerType _elem537;
for (int _i538 = 0; _i538 < _set536.size; ++_i538)
{
_elem537 = io.snappydata.thrift.ServerType.findByValue(iprot.readI32());
struct.serverTypes.add(_elem537);
}
iprot.readSetEnd();
}
struct.setServerTypesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // SERVER_GROUPS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set539 = iprot.readSetBegin();
struct.serverGroups = new HashSet(2*_set539.size);
String _elem540;
for (int _i541 = 0; _i541 < _set539.size; ++_i541)
{
_elem540 = iprot.readString();
struct.serverGroups.add(_elem540);
}
iprot.readSetEnd();
}
struct.setServerGroupsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // FAILED_SERVERS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set542 = iprot.readSetBegin();
struct.failedServers = new HashSet(2*_set542.size);
HostAddress _elem543;
for (int _i544 = 0; _i544 < _set542.size; ++_i544)
{
_elem543 = new HostAddress();
_elem543.read(iprot);
struct.failedServers.add(_elem543);
}
iprot.readSetEnd();
}
struct.setFailedServersIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getPreferredServer_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.serverTypes != null) {
oprot.writeFieldBegin(SERVER_TYPES_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, struct.serverTypes.size()));
for (ServerType _iter545 : struct.serverTypes)
{
oprot.writeI32(_iter545.getValue());
}
oprot.writeSetEnd();
}
oprot.writeFieldEnd();
}
if (struct.serverGroups != null) {
oprot.writeFieldBegin(SERVER_GROUPS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.serverGroups.size()));
for (String _iter546 : struct.serverGroups)
{
oprot.writeString(_iter546);
}
oprot.writeSetEnd();
}
oprot.writeFieldEnd();
}
if (struct.failedServers != null) {
oprot.writeFieldBegin(FAILED_SERVERS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.failedServers.size()));
for (HostAddress _iter547 : struct.failedServers)
{
_iter547.write(oprot);
}
oprot.writeSetEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getPreferredServer_argsTupleSchemeFactory implements SchemeFactory {
public getPreferredServer_argsTupleScheme getScheme() {
return new getPreferredServer_argsTupleScheme();
}
}
private static class getPreferredServer_argsTupleScheme extends TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getPreferredServer_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetServerTypes()) {
optionals.set(0);
}
if (struct.isSetServerGroups()) {
optionals.set(1);
}
if (struct.isSetFailedServers()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetServerTypes()) {
{
oprot.writeI32(struct.serverTypes.size());
for (ServerType _iter548 : struct.serverTypes)
{
oprot.writeI32(_iter548.getValue());
}
}
}
if (struct.isSetServerGroups()) {
{
oprot.writeI32(struct.serverGroups.size());
for (String _iter549 : struct.serverGroups)
{
oprot.writeString(_iter549);
}
}
}
if (struct.isSetFailedServers()) {
{
oprot.writeI32(struct.failedServers.size());
for (HostAddress _iter550 : struct.failedServers)
{
_iter550.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getPreferredServer_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TSet _set551 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, iprot.readI32());
struct.serverTypes = new HashSet(2*_set551.size);
ServerType _elem552;
for (int _i553 = 0; _i553 < _set551.size; ++_i553)
{
_elem552 = io.snappydata.thrift.ServerType.findByValue(iprot.readI32());
struct.serverTypes.add(_elem552);
}
}
struct.setServerTypesIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TSet _set554 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.serverGroups = new HashSet(2*_set554.size);
String _elem555;
for (int _i556 = 0; _i556 < _set554.size; ++_i556)
{
_elem555 = iprot.readString();
struct.serverGroups.add(_elem555);
}
}
struct.setServerGroupsIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TSet _set557 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.failedServers = new HashSet(2*_set557.size);
HostAddress _elem558;
for (int _i559 = 0; _i559 < _set557.size; ++_i559)
{
_elem558 = new HostAddress();
_elem558.read(iprot);
struct.failedServers.add(_elem558);
}
}
struct.setFailedServersIsSet(true);
}
}
}
}
public static class getPreferredServer_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreferredServer_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getPreferredServer_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getPreferredServer_resultTupleSchemeFactory());
}
public HostAddress success; // required
public SnappyException error; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
ERROR((short)1, "error");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // ERROR
return ERROR;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HostAddress.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreferredServer_result.class, metaDataMap);
}
public getPreferredServer_result() {
}
public getPreferredServer_result(
HostAddress success,
SnappyException error)
{
this();
this.success = success;
this.error = error;
}
/**
* Performs a deep copy on other .
*/
public getPreferredServer_result(getPreferredServer_result other) {
if (other.isSetSuccess()) {
this.success = new HostAddress(other.success);
}
if (other.isSetError()) {
this.error = new SnappyException(other.error);
}
}
public getPreferredServer_result deepCopy() {
return new getPreferredServer_result(this);
}
@Override
public void clear() {
this.success = null;
this.error = null;
}
public HostAddress getSuccess() {
return this.success;
}
public getPreferredServer_result setSuccess(HostAddress success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public SnappyException getError() {
return this.error;
}
public getPreferredServer_result setError(SnappyException error) {
this.error = error;
return this;
}
public void unsetError() {
this.error = null;
}
/** Returns true if field error is set (has been assigned a value) and false otherwise */
public boolean isSetError() {
return this.error != null;
}
public void setErrorIsSet(boolean value) {
if (!value) {
this.error = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((HostAddress)value);
}
break;
case ERROR:
if (value == null) {
unsetError();
} else {
setError((SnappyException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case ERROR:
return getError();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case ERROR:
return isSetError();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getPreferredServer_result)
return this.equals((getPreferredServer_result)that);
return false;
}
public boolean equals(getPreferredServer_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
boolean this_present_error = true && this.isSetError();
boolean that_present_error = true && that.isSetError();
if (this_present_error || that_present_error) {
if (!(this_present_error && that_present_error))
return false;
if (!this.error.equals(that.error))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_error = true && (isSetError());
list.add(present_error);
if (present_error)
list.add(error);
return list.hashCode();
}
@Override
public int compareTo(getPreferredServer_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetError()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getPreferredServer_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("error:");
if (this.error == null) {
sb.append("null");
} else {
sb.append(this.error);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class getPreferredServer_resultStandardSchemeFactory implements SchemeFactory {
public getPreferredServer_resultStandardScheme getScheme() {
return new getPreferredServer_resultStandardScheme();
}
}
private static class getPreferredServer_resultStandardScheme extends StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, getPreferredServer_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new HostAddress();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // ERROR
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.error = new SnappyException();
struct.error.read(iprot);
struct.setErrorIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, getPreferredServer_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.error != null) {
oprot.writeFieldBegin(ERROR_FIELD_DESC);
struct.error.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getPreferredServer_resultTupleSchemeFactory implements SchemeFactory {
public getPreferredServer_resultTupleScheme getScheme() {
return new getPreferredServer_resultTupleScheme();
}
}
private static class getPreferredServer_resultTupleScheme extends TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getPreferredServer_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetError()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetError()) {
struct.error.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getPreferredServer_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new HostAddress();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.error = new SnappyException();
struct.error.read(iprot);
struct.setErrorIsSet(true);
}
}
}
}
public static class getAllServersWithPreferredServer_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllServersWithPreferredServer_args");
private static final org.apache.thrift.protocol.TField SERVER_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("serverTypes", org.apache.thrift.protocol.TType.SET, (short)1);
private static final org.apache.thrift.protocol.TField SERVER_GROUPS_FIELD_DESC = new org.apache.thrift.protocol.TField("serverGroups", org.apache.thrift.protocol.TType.SET, (short)2);
private static final org.apache.thrift.protocol.TField FAILED_SERVERS_FIELD_DESC = new org.apache.thrift.protocol.TField("failedServers", org.apache.thrift.protocol.TType.SET, (short)3);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getAllServersWithPreferredServer_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getAllServersWithPreferredServer_argsTupleSchemeFactory());
}
public Set serverTypes; // required
public Set serverGroups; // required
public Set failedServers; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SERVER_TYPES((short)1, "serverTypes"),
SERVER_GROUPS((short)2, "serverGroups"),
FAILED_SERVERS((short)3, "failedServers");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SERVER_TYPES
return SERVER_TYPES;
case 2: // SERVER_GROUPS
return SERVER_GROUPS;
case 3: // FAILED_SERVERS
return FAILED_SERVERS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SERVER_TYPES, new org.apache.thrift.meta_data.FieldMetaData("serverTypes", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ServerType.class))));
tmpMap.put(_Fields.SERVER_GROUPS, new org.apache.thrift.meta_data.FieldMetaData("serverGroups", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.FAILED_SERVERS, new org.apache.thrift.meta_data.FieldMetaData("failedServers", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HostAddress.class))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllServersWithPreferredServer_args.class, metaDataMap);
}
public getAllServersWithPreferredServer_args() {
}
public getAllServersWithPreferredServer_args(
Set serverTypes,
Set serverGroups,
Set failedServers)
{
this();
this.serverTypes = serverTypes;
this.serverGroups = serverGroups;
this.failedServers = failedServers;
}
/**
* Performs a deep copy on other .
*/
public getAllServersWithPreferredServer_args(getAllServersWithPreferredServer_args other) {
if (other.isSetServerTypes()) {
Set __this__serverTypes = new HashSet(other.serverTypes.size());
for (ServerType other_element : other.serverTypes) {
__this__serverTypes.add(other_element);
}
this.serverTypes = __this__serverTypes;
}
if (other.isSetServerGroups()) {
Set __this__serverGroups = new HashSet