incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [37/46] First commit of api changes.
Date Tue, 30 Oct 2012 02:53:19 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/1e930bbc/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Blur.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Blur.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Blur.java
new file mode 100644
index 0000000..a47fd8d
--- /dev/null
+++ b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Blur.java
@@ -0,0 +1,7007 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+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 org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Blur {
+
+  public interface Iface {
+
+    public Session openReadSession() throws BlurException, org.apache.thrift.TException;
+
+    public QuerySession executeQuery(Session session, String query) throws BlurException, org.apache.thrift.TException;
+
+    public List<Record> nextMetaDataResults(QuerySession session, int batchSize) throws BlurException, org.apache.thrift.TException;
+
+    public List<Record> nextResults(QuerySession session, int batchSize) throws BlurException, org.apache.thrift.TException;
+
+    public void closeReadSession(Session session) throws BlurException, org.apache.thrift.TException;
+
+    public Session openWriteSession(String table) throws BlurException, org.apache.thrift.TException;
+
+    public void writeRecords(Session session, List<Record> records) throws BlurException, org.apache.thrift.TException;
+
+    public void commitWriteSession(Session session) throws BlurException, org.apache.thrift.TException;
+
+    public void rollbackWriteSession(Session session) throws BlurException, org.apache.thrift.TException;
+
+  }
+
+  public interface AsyncIface {
+
+    public void openReadSession(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.openReadSession_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void executeQuery(Session session, String query, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.executeQuery_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void nextMetaDataResults(QuerySession session, int batchSize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.nextMetaDataResults_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void nextResults(QuerySession session, int batchSize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.nextResults_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void closeReadSession(Session session, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closeReadSession_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void openWriteSession(String table, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.openWriteSession_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void writeRecords(Session session, List<Record> records, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.writeRecords_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void commitWriteSession(Session session, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.commitWriteSession_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void rollbackWriteSession(Session session, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.rollbackWriteSession_call> resultHandler) 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<Client> {
+      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 Session openReadSession() throws BlurException, org.apache.thrift.TException
+    {
+      send_openReadSession();
+      return recv_openReadSession();
+    }
+
+    public void send_openReadSession() throws org.apache.thrift.TException
+    {
+      openReadSession_args args = new openReadSession_args();
+      sendBase("openReadSession", args);
+    }
+
+    public Session recv_openReadSession() throws BlurException, org.apache.thrift.TException
+    {
+      openReadSession_result result = new openReadSession_result();
+      receiveBase(result, "openReadSession");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.e != null) {
+        throw result.e;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openReadSession failed: unknown result");
+    }
+
+    public QuerySession executeQuery(Session session, String query) throws BlurException, org.apache.thrift.TException
+    {
+      send_executeQuery(session, query);
+      return recv_executeQuery();
+    }
+
+    public void send_executeQuery(Session session, String query) throws org.apache.thrift.TException
+    {
+      executeQuery_args args = new executeQuery_args();
+      args.setSession(session);
+      args.setQuery(query);
+      sendBase("executeQuery", args);
+    }
+
+    public QuerySession recv_executeQuery() throws BlurException, org.apache.thrift.TException
+    {
+      executeQuery_result result = new executeQuery_result();
+      receiveBase(result, "executeQuery");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.e != null) {
+        throw result.e;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executeQuery failed: unknown result");
+    }
+
+    public List<Record> nextMetaDataResults(QuerySession session, int batchSize) throws BlurException, org.apache.thrift.TException
+    {
+      send_nextMetaDataResults(session, batchSize);
+      return recv_nextMetaDataResults();
+    }
+
+    public void send_nextMetaDataResults(QuerySession session, int batchSize) throws org.apache.thrift.TException
+    {
+      nextMetaDataResults_args args = new nextMetaDataResults_args();
+      args.setSession(session);
+      args.setBatchSize(batchSize);
+      sendBase("nextMetaDataResults", args);
+    }
+
+    public List<Record> recv_nextMetaDataResults() throws BlurException, org.apache.thrift.TException
+    {
+      nextMetaDataResults_result result = new nextMetaDataResults_result();
+      receiveBase(result, "nextMetaDataResults");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.e != null) {
+        throw result.e;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "nextMetaDataResults failed: unknown result");
+    }
+
+    public List<Record> nextResults(QuerySession session, int batchSize) throws BlurException, org.apache.thrift.TException
+    {
+      send_nextResults(session, batchSize);
+      return recv_nextResults();
+    }
+
+    public void send_nextResults(QuerySession session, int batchSize) throws org.apache.thrift.TException
+    {
+      nextResults_args args = new nextResults_args();
+      args.setSession(session);
+      args.setBatchSize(batchSize);
+      sendBase("nextResults", args);
+    }
+
+    public List<Record> recv_nextResults() throws BlurException, org.apache.thrift.TException
+    {
+      nextResults_result result = new nextResults_result();
+      receiveBase(result, "nextResults");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.e != null) {
+        throw result.e;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "nextResults failed: unknown result");
+    }
+
+    public void closeReadSession(Session session) throws BlurException, org.apache.thrift.TException
+    {
+      send_closeReadSession(session);
+      recv_closeReadSession();
+    }
+
+    public void send_closeReadSession(Session session) throws org.apache.thrift.TException
+    {
+      closeReadSession_args args = new closeReadSession_args();
+      args.setSession(session);
+      sendBase("closeReadSession", args);
+    }
+
+    public void recv_closeReadSession() throws BlurException, org.apache.thrift.TException
+    {
+      closeReadSession_result result = new closeReadSession_result();
+      receiveBase(result, "closeReadSession");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public Session openWriteSession(String table) throws BlurException, org.apache.thrift.TException
+    {
+      send_openWriteSession(table);
+      return recv_openWriteSession();
+    }
+
+    public void send_openWriteSession(String table) throws org.apache.thrift.TException
+    {
+      openWriteSession_args args = new openWriteSession_args();
+      args.setTable(table);
+      sendBase("openWriteSession", args);
+    }
+
+    public Session recv_openWriteSession() throws BlurException, org.apache.thrift.TException
+    {
+      openWriteSession_result result = new openWriteSession_result();
+      receiveBase(result, "openWriteSession");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.e != null) {
+        throw result.e;
+      }
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openWriteSession failed: unknown result");
+    }
+
+    public void writeRecords(Session session, List<Record> records) throws BlurException, org.apache.thrift.TException
+    {
+      send_writeRecords(session, records);
+      recv_writeRecords();
+    }
+
+    public void send_writeRecords(Session session, List<Record> records) throws org.apache.thrift.TException
+    {
+      writeRecords_args args = new writeRecords_args();
+      args.setSession(session);
+      args.setRecords(records);
+      sendBase("writeRecords", args);
+    }
+
+    public void recv_writeRecords() throws BlurException, org.apache.thrift.TException
+    {
+      writeRecords_result result = new writeRecords_result();
+      receiveBase(result, "writeRecords");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void commitWriteSession(Session session) throws BlurException, org.apache.thrift.TException
+    {
+      send_commitWriteSession(session);
+      recv_commitWriteSession();
+    }
+
+    public void send_commitWriteSession(Session session) throws org.apache.thrift.TException
+    {
+      commitWriteSession_args args = new commitWriteSession_args();
+      args.setSession(session);
+      sendBase("commitWriteSession", args);
+    }
+
+    public void recv_commitWriteSession() throws BlurException, org.apache.thrift.TException
+    {
+      commitWriteSession_result result = new commitWriteSession_result();
+      receiveBase(result, "commitWriteSession");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void rollbackWriteSession(Session session) throws BlurException, org.apache.thrift.TException
+    {
+      send_rollbackWriteSession(session);
+      recv_rollbackWriteSession();
+    }
+
+    public void send_rollbackWriteSession(Session session) throws org.apache.thrift.TException
+    {
+      rollbackWriteSession_args args = new rollbackWriteSession_args();
+      args.setSession(session);
+      sendBase("rollbackWriteSession", args);
+    }
+
+    public void recv_rollbackWriteSession() throws BlurException, org.apache.thrift.TException
+    {
+      rollbackWriteSession_result result = new rollbackWriteSession_result();
+      receiveBase(result, "rollbackWriteSession");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+  }
+  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
+    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
+      private org.apache.thrift.async.TAsyncClientManager clientManager;
+      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
+      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
+        this.clientManager = clientManager;
+        this.protocolFactory = protocolFactory;
+      }
+      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
+        return new AsyncClient(protocolFactory, clientManager, transport);
+      }
+    }
+
+    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
+      super(protocolFactory, clientManager, transport);
+    }
+
+    public void openReadSession(org.apache.thrift.async.AsyncMethodCallback<openReadSession_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      openReadSession_call method_call = new openReadSession_call(resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class openReadSession_call extends org.apache.thrift.async.TAsyncMethodCall {
+      public openReadSession_call(org.apache.thrift.async.AsyncMethodCallback<openReadSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("openReadSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        openReadSession_args args = new openReadSession_args();
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public Session getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_openReadSession();
+      }
+    }
+
+    public void executeQuery(Session session, String query, org.apache.thrift.async.AsyncMethodCallback<executeQuery_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      executeQuery_call method_call = new executeQuery_call(session, query, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class executeQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private String query;
+      public executeQuery_call(Session session, String query, org.apache.thrift.async.AsyncMethodCallback<executeQuery_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+        this.query = query;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("executeQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        executeQuery_args args = new executeQuery_args();
+        args.setSession(session);
+        args.setQuery(query);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public QuerySession getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_executeQuery();
+      }
+    }
+
+    public void nextMetaDataResults(QuerySession session, int batchSize, org.apache.thrift.async.AsyncMethodCallback<nextMetaDataResults_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      nextMetaDataResults_call method_call = new nextMetaDataResults_call(session, batchSize, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class nextMetaDataResults_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private QuerySession session;
+      private int batchSize;
+      public nextMetaDataResults_call(QuerySession session, int batchSize, org.apache.thrift.async.AsyncMethodCallback<nextMetaDataResults_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+        this.batchSize = batchSize;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("nextMetaDataResults", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        nextMetaDataResults_args args = new nextMetaDataResults_args();
+        args.setSession(session);
+        args.setBatchSize(batchSize);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public List<Record> getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_nextMetaDataResults();
+      }
+    }
+
+    public void nextResults(QuerySession session, int batchSize, org.apache.thrift.async.AsyncMethodCallback<nextResults_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      nextResults_call method_call = new nextResults_call(session, batchSize, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class nextResults_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private QuerySession session;
+      private int batchSize;
+      public nextResults_call(QuerySession session, int batchSize, org.apache.thrift.async.AsyncMethodCallback<nextResults_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+        this.batchSize = batchSize;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("nextResults", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        nextResults_args args = new nextResults_args();
+        args.setSession(session);
+        args.setBatchSize(batchSize);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public List<Record> getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_nextResults();
+      }
+    }
+
+    public void closeReadSession(Session session, org.apache.thrift.async.AsyncMethodCallback<closeReadSession_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      closeReadSession_call method_call = new closeReadSession_call(session, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class closeReadSession_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      public closeReadSession_call(Session session, org.apache.thrift.async.AsyncMethodCallback<closeReadSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeReadSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        closeReadSession_args args = new closeReadSession_args();
+        args.setSession(session);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public void getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        (new Client(prot)).recv_closeReadSession();
+      }
+    }
+
+    public void openWriteSession(String table, org.apache.thrift.async.AsyncMethodCallback<openWriteSession_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      openWriteSession_call method_call = new openWriteSession_call(table, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class openWriteSession_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String table;
+      public openWriteSession_call(String table, org.apache.thrift.async.AsyncMethodCallback<openWriteSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.table = table;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("openWriteSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        openWriteSession_args args = new openWriteSession_args();
+        args.setTable(table);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public Session getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_openWriteSession();
+      }
+    }
+
+    public void writeRecords(Session session, List<Record> records, org.apache.thrift.async.AsyncMethodCallback<writeRecords_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      writeRecords_call method_call = new writeRecords_call(session, records, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class writeRecords_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private List<Record> records;
+      public writeRecords_call(Session session, List<Record> records, org.apache.thrift.async.AsyncMethodCallback<writeRecords_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+        this.records = records;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeRecords", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        writeRecords_args args = new writeRecords_args();
+        args.setSession(session);
+        args.setRecords(records);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public void getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        (new Client(prot)).recv_writeRecords();
+      }
+    }
+
+    public void commitWriteSession(Session session, org.apache.thrift.async.AsyncMethodCallback<commitWriteSession_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      commitWriteSession_call method_call = new commitWriteSession_call(session, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class commitWriteSession_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      public commitWriteSession_call(Session session, org.apache.thrift.async.AsyncMethodCallback<commitWriteSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("commitWriteSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        commitWriteSession_args args = new commitWriteSession_args();
+        args.setSession(session);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public void getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        (new Client(prot)).recv_commitWriteSession();
+      }
+    }
+
+    public void rollbackWriteSession(Session session, org.apache.thrift.async.AsyncMethodCallback<rollbackWriteSession_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      rollbackWriteSession_call method_call = new rollbackWriteSession_call(session, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class rollbackWriteSession_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      public rollbackWriteSession_call(Session session, org.apache.thrift.async.AsyncMethodCallback<rollbackWriteSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.session = session;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("rollbackWriteSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        rollbackWriteSession_args args = new rollbackWriteSession_args();
+        args.setSession(session);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public void getResult() throws BlurException, org.apache.thrift.TException {
+        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+        (new Client(prot)).recv_rollbackWriteSession();
+      }
+    }
+
+  }
+
+  public static class Processor<I extends Iface> 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<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
+    }
+
+    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
+      super(iface, getProcessMap(processMap));
+    }
+
+    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
+      processMap.put("openReadSession", new openReadSession());
+      processMap.put("executeQuery", new executeQuery());
+      processMap.put("nextMetaDataResults", new nextMetaDataResults());
+      processMap.put("nextResults", new nextResults());
+      processMap.put("closeReadSession", new closeReadSession());
+      processMap.put("openWriteSession", new openWriteSession());
+      processMap.put("writeRecords", new writeRecords());
+      processMap.put("commitWriteSession", new commitWriteSession());
+      processMap.put("rollbackWriteSession", new rollbackWriteSession());
+      return processMap;
+    }
+
+    private static class openReadSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, openReadSession_args> {
+      public openReadSession() {
+        super("openReadSession");
+      }
+
+      protected openReadSession_args getEmptyArgsInstance() {
+        return new openReadSession_args();
+      }
+
+      protected openReadSession_result getResult(I iface, openReadSession_args args) throws org.apache.thrift.TException {
+        openReadSession_result result = new openReadSession_result();
+        try {
+          result.success = iface.openReadSession();
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class executeQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, executeQuery_args> {
+      public executeQuery() {
+        super("executeQuery");
+      }
+
+      protected executeQuery_args getEmptyArgsInstance() {
+        return new executeQuery_args();
+      }
+
+      protected 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.session, args.query);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class nextMetaDataResults<I extends Iface> extends org.apache.thrift.ProcessFunction<I, nextMetaDataResults_args> {
+      public nextMetaDataResults() {
+        super("nextMetaDataResults");
+      }
+
+      protected nextMetaDataResults_args getEmptyArgsInstance() {
+        return new nextMetaDataResults_args();
+      }
+
+      protected nextMetaDataResults_result getResult(I iface, nextMetaDataResults_args args) throws org.apache.thrift.TException {
+        nextMetaDataResults_result result = new nextMetaDataResults_result();
+        try {
+          result.success = iface.nextMetaDataResults(args.session, args.batchSize);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class nextResults<I extends Iface> extends org.apache.thrift.ProcessFunction<I, nextResults_args> {
+      public nextResults() {
+        super("nextResults");
+      }
+
+      protected nextResults_args getEmptyArgsInstance() {
+        return new nextResults_args();
+      }
+
+      protected nextResults_result getResult(I iface, nextResults_args args) throws org.apache.thrift.TException {
+        nextResults_result result = new nextResults_result();
+        try {
+          result.success = iface.nextResults(args.session, args.batchSize);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class closeReadSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeReadSession_args> {
+      public closeReadSession() {
+        super("closeReadSession");
+      }
+
+      protected closeReadSession_args getEmptyArgsInstance() {
+        return new closeReadSession_args();
+      }
+
+      protected closeReadSession_result getResult(I iface, closeReadSession_args args) throws org.apache.thrift.TException {
+        closeReadSession_result result = new closeReadSession_result();
+        try {
+          iface.closeReadSession(args.session);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class openWriteSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, openWriteSession_args> {
+      public openWriteSession() {
+        super("openWriteSession");
+      }
+
+      protected openWriteSession_args getEmptyArgsInstance() {
+        return new openWriteSession_args();
+      }
+
+      protected openWriteSession_result getResult(I iface, openWriteSession_args args) throws org.apache.thrift.TException {
+        openWriteSession_result result = new openWriteSession_result();
+        try {
+          result.success = iface.openWriteSession(args.table);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class writeRecords<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeRecords_args> {
+      public writeRecords() {
+        super("writeRecords");
+      }
+
+      protected writeRecords_args getEmptyArgsInstance() {
+        return new writeRecords_args();
+      }
+
+      protected writeRecords_result getResult(I iface, writeRecords_args args) throws org.apache.thrift.TException {
+        writeRecords_result result = new writeRecords_result();
+        try {
+          iface.writeRecords(args.session, args.records);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class commitWriteSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, commitWriteSession_args> {
+      public commitWriteSession() {
+        super("commitWriteSession");
+      }
+
+      protected commitWriteSession_args getEmptyArgsInstance() {
+        return new commitWriteSession_args();
+      }
+
+      protected commitWriteSession_result getResult(I iface, commitWriteSession_args args) throws org.apache.thrift.TException {
+        commitWriteSession_result result = new commitWriteSession_result();
+        try {
+          iface.commitWriteSession(args.session);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class rollbackWriteSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, rollbackWriteSession_args> {
+      public rollbackWriteSession() {
+        super("rollbackWriteSession");
+      }
+
+      protected rollbackWriteSession_args getEmptyArgsInstance() {
+        return new rollbackWriteSession_args();
+      }
+
+      protected rollbackWriteSession_result getResult(I iface, rollbackWriteSession_args args) throws org.apache.thrift.TException {
+        rollbackWriteSession_result result = new rollbackWriteSession_result();
+        try {
+          iface.rollbackWriteSession(args.session);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+  }
+
+  public static class openReadSession_args implements org.apache.thrift.TBase<openReadSession_args, openReadSession_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("openReadSession_args");
+
+
+
+    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+;
+
+      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+      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) {
+          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;
+      }
+    }
+    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);
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(openReadSession_args.class, metaDataMap);
+    }
+
+    public openReadSession_args() {
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public openReadSession_args(openReadSession_args other) {
+    }
+
+    public openReadSession_args deepCopy() {
+      return new openReadSession_args(this);
+    }
+
+    @Override
+    public void clear() {
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      }
+      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) {
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof openReadSession_args)
+        return this.equals((openReadSession_args)that);
+      return false;
+    }
+
+    public boolean equals(openReadSession_args that) {
+      if (that == null)
+        return false;
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      return 0;
+    }
+
+    public int compareTo(openReadSession_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      openReadSession_args typedOther = (openReadSession_args)other;
+
+      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 {
+      org.apache.thrift.protocol.TField field;
+      iprot.readStructBegin();
+      while (true)
+      {
+        field = iprot.readFieldBegin();
+        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (field.id) {
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("openReadSession_args(");
+      boolean first = true;
+
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+    }
+
+    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);
+      }
+    }
+
+  }
+
+  public static class openReadSession_result implements org.apache.thrift.TBase<openReadSession_result, openReadSession_result._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("openReadSession_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+    public Session success; // required
+    public BlurException e; // 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"),
+      E((short)1, "e");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+      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: // E
+            return E;
+          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, Session.class)));
+      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(openReadSession_result.class, metaDataMap);
+    }
+
+    public openReadSession_result() {
+    }
+
+    public openReadSession_result(
+      Session success,
+      BlurException e)
+    {
+      this();
+      this.success = success;
+      this.e = e;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public openReadSession_result(openReadSession_result other) {
+      if (other.isSetSuccess()) {
+        this.success = new Session(other.success);
+      }
+      if (other.isSetE()) {
+        this.e = new BlurException(other.e);
+      }
+    }
+
+    public openReadSession_result deepCopy() {
+      return new openReadSession_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.success = null;
+      this.e = null;
+    }
+
+    public Session getSuccess() {
+      return this.success;
+    }
+
+    public openReadSession_result setSuccess(Session 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 BlurException getE() {
+      return this.e;
+    }
+
+    public openReadSession_result setE(BlurException e) {
+      this.e = e;
+      return this;
+    }
+
+    public void unsetE() {
+      this.e = null;
+    }
+
+    /** Returns true if field e is set (has been assigned a value) and false otherwise */
+    public boolean isSetE() {
+      return this.e != null;
+    }
+
+    public void setEIsSet(boolean value) {
+      if (!value) {
+        this.e = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((Session)value);
+        }
+        break;
+
+      case E:
+        if (value == null) {
+          unsetE();
+        } else {
+          setE((BlurException)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SUCCESS:
+        return getSuccess();
+
+      case E:
+        return getE();
+
+      }
+      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 E:
+        return isSetE();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof openReadSession_result)
+        return this.equals((openReadSession_result)that);
+      return false;
+    }
+
+    public boolean equals(openReadSession_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_e = true && this.isSetE();
+      boolean that_present_e = true && that.isSetE();
+      if (this_present_e || that_present_e) {
+        if (!(this_present_e && that_present_e))
+          return false;
+        if (!this.e.equals(that.e))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      return 0;
+    }
+
+    public int compareTo(openReadSession_result other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      openReadSession_result typedOther = (openReadSession_result)other;
+
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSuccess()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetE()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
+        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 {
+      org.apache.thrift.protocol.TField field;
+      iprot.readStructBegin();
+      while (true)
+      {
+        field = iprot.readFieldBegin();
+        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (field.id) {
+          case 0: // SUCCESS
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.success = new Session();
+              this.success.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 1: // E
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.e = new BlurException();
+              this.e.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      oprot.writeStructBegin(STRUCT_DESC);
+
+      if (this.isSetSuccess()) {
+        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+        this.success.write(oprot);
+        oprot.writeFieldEnd();
+      } else if (this.isSetE()) {
+        oprot.writeFieldBegin(E_FIELD_DESC);
+        this.e.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("openReadSession_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("e:");
+      if (this.e == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.e);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+    }
+
+    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);
+      }
+    }
+
+  }
+
+  public static class executeQuery_args implements org.apache.thrift.TBase<executeQuery_args, executeQuery_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("executeQuery_args");
+
+    private static final org.apache.thrift.protocol.TField SESSION_FIELD_DESC = new org.apache.thrift.protocol.TField("session", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+    private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+    public Session session; // required
+    public String query; // 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 {
+      SESSION((short)1, "session"),
+      QUERY((short)2, "query");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+      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: // SESSION
+            return SESSION;
+          case 2: // QUERY
+            return QUERY;
+          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.SESSION, new org.apache.thrift.meta_data.FieldMetaData("session", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Session.class)));
+      tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(executeQuery_args.class, metaDataMap);
+    }
+
+    public executeQuery_args() {
+    }
+
+    public executeQuery_args(
+      Session session,
+      String query)
+    {
+      this();
+      this.session = session;
+      this.query = query;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public executeQuery_args(executeQuery_args other) {
+      if (other.isSetSession()) {
+        this.session = new Session(other.session);
+      }
+      if (other.isSetQuery()) {
+        this.query = other.query;
+      }
+    }
+
+    public executeQuery_args deepCopy() {
+      return new executeQuery_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.session = null;
+      this.query = null;
+    }
+
+    public Session getSession() {
+      return this.session;
+    }
+
+    public executeQuery_args setSession(Session session) {
+      this.session = session;
+      return this;
+    }
+
+    public void unsetSession() {
+      this.session = null;
+    }
+
+    /** Returns true if field session is set (has been assigned a value) and false otherwise */
+    public boolean isSetSession() {
+      return this.session != null;
+    }
+
+    public void setSessionIsSet(boolean value) {
+      if (!value) {
+        this.session = null;
+      }
+    }
+
+    public String getQuery() {
+      return this.query;
+    }
+
+    public executeQuery_args setQuery(String query) {
+      this.query = query;
+      return this;
+    }
+
+    public void unsetQuery() {
+      this.query = null;
+    }
+
+    /** Returns true if field query is set (has been assigned a value) and false otherwise */
+    public boolean isSetQuery() {
+      return this.query != null;
+    }
+
+    public void setQueryIsSet(boolean value) {
+      if (!value) {
+        this.query = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SESSION:
+        if (value == null) {
+          unsetSession();
+        } else {
+          setSession((Session)value);
+        }
+        break;
+
+      case QUERY:
+        if (value == null) {
+          unsetQuery();
+        } else {
+          setQuery((String)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SESSION:
+        return getSession();
+
+      case QUERY:
+        return getQuery();
+
+      }
+      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 SESSION:
+        return isSetSession();
+      case QUERY:
+        return isSetQuery();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof executeQuery_args)
+        return this.equals((executeQuery_args)that);
+      return false;
+    }
+
+    public boolean equals(executeQuery_args that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_session = true && this.isSetSession();
+      boolean that_present_session = true && that.isSetSession();
+      if (this_present_session || that_present_session) {
+        if (!(this_present_session && that_present_session))
+          return false;
+        if (!this.session.equals(that.session))
+          return false;
+      }
+
+      boolean this_present_query = true && this.isSetQuery();
+      boolean that_present_query = true && that.isSetQuery();
+      if (this_present_query || that_present_query) {
+        if (!(this_present_query && that_present_query))
+          return false;
+        if (!this.query.equals(that.query))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      return 0;
+    }
+
+    public int compareTo(executeQuery_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      executeQuery_args typedOther = (executeQuery_args)other;
+
+      lastComparison = Boolean.valueOf(isSetSession()).compareTo(typedOther.isSetSession());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSession()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.session, typedOther.session);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetQuery()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query);
+        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 {
+      org.apache.thrift.protocol.TField field;
+      iprot.readStructBegin();
+      while (true)
+      {
+        field = iprot.readFieldBegin();
+        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (field.id) {
+          case 1: // SESSION
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.session = new Session();
+              this.session.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 2: // QUERY
+            if (field.type == org.apache.thrift.protocol.TType.STRING) {
+              this.query = iprot.readString();
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (this.session != null) {
+        oprot.writeFieldBegin(SESSION_FIELD_DESC);
+        this.session.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (this.query != null) {
+        oprot.writeFieldBegin(QUERY_FIELD_DESC);
+        oprot.writeString(this.query);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("executeQuery_args(");
+      boolean first = true;
+
+      sb.append("session:");
+      if (this.session == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.session);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("query:");
+      if (this.query == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.query);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+    }
+
+    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);
+      }
+    }
+
+  }
+
+  public static class executeQuery_result implements org.apache.thrift.TBase<executeQuery_result, executeQuery_result._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("executeQuery_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+    public QuerySession success; // required
+    public BlurException e; // 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"),
+      E((short)1, "e");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+      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: // E
+            return E;
+          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, QuerySession.class)));
+      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(executeQuery_result.class, metaDataMap);
+    }
+
+    public executeQuery_result() {
+    }
+
+    public executeQuery_result(
+      QuerySession success,
+      BlurException e)
+    {
+      this();
+      this.success = success;
+      this.e = e;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public executeQuery_result(executeQuery_result other) {
+      if (other.isSetSuccess()) {
+        this.success = new QuerySession(other.success);
+      }
+      if (other.isSetE()) {
+        this.e = new BlurException(other.e);
+      }
+    }
+
+    public executeQuery_result deepCopy() {
+      return new executeQuery_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.success = null;
+      this.e = null;
+    }
+
+    public QuerySession getSuccess() {
+      return this.success;
+    }
+
+    public executeQuery_result setSuccess(QuerySession 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 BlurException getE() {
+      return this.e;
+    }
+
+    public executeQuery_result setE(BlurException e) {
+      this.e = e;
+      return this;
+    }
+
+    public void unsetE() {
+      this.e = null;
+    }
+
+    /** Returns true if field e is set (has been assigned a value) and false otherwise */
+    public boolean isSetE() {
+      return this.e != null;
+    }
+
+    public void setEIsSet(boolean value) {
+      if (!value) {
+        this.e = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((QuerySession)value);
+        }
+        break;
+
+      case E:
+        if (value == null) {
+          unsetE();
+        } else {
+          setE((BlurException)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SUCCESS:
+        return getSuccess();
+
+      case E:
+        return getE();
+
+      }
+      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 E:
+        return isSetE();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof executeQuery_result)
+        return this.equals((executeQuery_result)that);
+      return false;
+    }
+
+    public boolean equals(executeQuery_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_e = true && this.isSetE();
+      boolean that_present_e = true && that.isSetE();
+      if (this_present_e || that_present_e) {
+        if (!(this_present_e && that_present_e))
+          return false;
+        if (!this.e.equals(that.e))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      return 0;
+    }
+
+    public int compareTo(executeQuery_result other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      executeQuery_result typedOther = (executeQuery_result)other;
+
+      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSuccess()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetE()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
+        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 {
+      org.apache.thrift.protocol.TField field;
+      iprot.readStructBegin();
+      while (true)
+      {
+        field = iprot.readFieldBegin();
+        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (field.id) {
+          case 0: // SUCCESS
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.success = new QuerySession();
+              this.success.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          case 1: // E
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.e = new BlurException();
+              this.e.read(iprot);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      oprot.writeStructBegin(STRUCT_DESC);
+
+      if (this.isSetSuccess()) {
+        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+        this.success.write(oprot);
+        oprot.writeFieldEnd();
+      } else if (this.isSetE()) {
+        oprot.writeFieldBegin(E_FIELD_DESC);
+        this.e.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("executeQuery_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("e:");
+      if (this.e == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.e);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+    }
+
+    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);
+      }
+    }
+
+  }
+
+  public static class nextMetaDataResults_args implements org.apache.thrift.TBase<nextMetaDataResults_args, nextMetaDataResults_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("nextMetaDataResults_args");
+
+    private static final org.apache.thrift.protocol.TField SESSION_FIELD_DESC = new org.apache.thrift.protocol.TField("session", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+    private static final org.apache.thrift.protocol.TField BATCH_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("batchSize", org.apache.thrift.protocol.TType.I32, (short)2);
+
+    public QuerySession session; // required
+    public int batchSize; // 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 {
+      SESSION((short)1, "session"),
+      BATCH_SIZE((short)2, "batchSize");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+      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: // SESSION
+            return SESSION;
+          case 2: // BATCH_SIZE
+            return BATCH_SIZE;
+          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
+    private static final int __BATCHSIZE_ISSET_ID = 0;
+    private BitSet __isset_bit_vector = new BitSet(1);
+
+    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.SESSION, new org.apache.thrift.meta_data.FieldMetaData("session", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuerySession.class)));
+      tmpMap.put(_Fields.BATCH_SIZE, new org.apache.thrift.meta_data.FieldMetaData("batchSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(nextMetaDataResults_args.class, metaDataMap);
+    }
+
+    public nextMetaDataResults_args() {
+    }
+
+    public nextMetaDataResults_args(
+      QuerySession session,
+      int batchSize)
+    {
+      this();
+      this.session = session;
+      this.batchSize = batchSize;
+      setBatchSizeIsSet(true);
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public nextMetaDataResults_args(nextMetaDataResults_args other) {
+      __isset_bit_vector.clear();
+      __isset_bit_vector.or(other.__isset_bit_vector);
+      if (other.isSetSession()) {
+        this.session = new QuerySession(other.session);
+      }
+      this.batchSize = other.batchSize;
+    }
+
+    public nextMetaDataResults_args deepCopy() {
+      return new nextMetaDataResults_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.session = null;
+      setBatchSizeIsSet(false);
+      this.batchSize = 0;
+    }
+
+    public QuerySession getSession() {
+      return this.session;
+    }
+
+    public nextMetaDataResults_args setSession(QuerySession session) {
+      this.session = session;
+      return this;
+    }
+
+    public void unsetSession() {
+      this.session = null;
+    }
+
+    /** Returns true if field session is set (has been assigned a value) and false otherwise */
+    public boolean isSetSession() {
+      return this.session != null;
+    }
+
+    public void setSessionIsSet(boolean value) {
+      if (!value) {
+        this.session = null;
+      }
+    }
+
+    public int getBatchSize() {
+      return this.batchSize;
+    }
+
+    public nextMetaDataResults_args setBatchSize(int batchSize) {
+      this.batchSize = batchSize;
+      setBatchSizeIsSet(true);
+      return this;
+    }
+
+    public void unsetBatchSize() {
+      __isset_bit_vector.clear(__BATCHSIZE_ISSET_ID);
+    }
+
+    /** Returns true if field batchSize is set (has been assigned a value) and false otherwise */
+    public boolean isSetBatchSize() {
+      return __isset_bit_vector.get(__BATCHSIZE_ISSET_ID);
+    }
+
+    public void setBatchSizeIsSet(boolean value) {
+      __isset_bit_vector.set(__BATCHSIZE_ISSET_ID, value);
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SESSION:
+        if (value == null) {
+          unsetSession();
+        } else {
+          setSession((QuerySession)value);
+        }
+        break;
+
+      case BATCH_SIZE:
+        if (value == null) {
+          unsetBatchSize();
+        } else {
+          setBatchSize((Integer)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SESSION:
+        return getSession();
+
+      case BATCH_SIZE:
+        return Integer.valueOf(getBatchSize());
+
+      }
+      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();
+      }
+
+      sw

<TRUNCATED>

Mime
View raw message