incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [40/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/Lucene.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Lucene.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Lucene.java
new file mode 100644
index 0000000..459f749
--- /dev/null
+++ b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Lucene.java
@@ -0,0 +1,9299 @@
+/**
+ * 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 Lucene {
+
+  public interface Iface {
+
+    public Session openReadSession(String table) throws BlurException, org.apache.thrift.TException;
+
+    public TopFieldDocs search(Session session, QueryArgs queryArgs) throws BlurException, org.apache.thrift.TException;
+
+    public List<Document> doc(Session session, List<DocLocation> docLocations, Set<String> fields) 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 addDocuments(Session session, int shardIndex, List<Document> document) throws BlurException, org.apache.thrift.TException;
+
+    public void deleteDocumentsByQueries(Session session, int shardIndex, List<QueryArgs> queries) throws BlurException, org.apache.thrift.TException;
+
+    public void deleteDocuments(Session session, int shardIndex, List<Term> terms) throws BlurException, org.apache.thrift.TException;
+
+    public void updateDocuments(Session session, int shardIndex, List<Term> terms, List<Document> document) throws BlurException, org.apache.thrift.TException;
+
+    public void commit(Session session) throws BlurException, org.apache.thrift.TException;
+
+    public void rollback(Session session) throws BlurException, org.apache.thrift.TException;
+
+  }
+
+  public interface AsyncIface {
+
+    public void openReadSession(String table, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.openReadSession_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void search(Session session, QueryArgs queryArgs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.search_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void doc(Session session, List<DocLocation> docLocations, Set<String> fields, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doc_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 addDocuments(Session session, int shardIndex, List<Document> document, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDocuments_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void deleteDocumentsByQueries(Session session, int shardIndex, List<QueryArgs> queries, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDocumentsByQueries_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void deleteDocuments(Session session, int shardIndex, List<Term> terms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDocuments_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void updateDocuments(Session session, int shardIndex, List<Term> terms, List<Document> document, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateDocuments_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void commit(Session session, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.commit_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void rollback(Session session, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.rollback_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(String table) throws BlurException, org.apache.thrift.TException
+    {
+      send_openReadSession(table);
+      return recv_openReadSession();
+    }
+
+    public void send_openReadSession(String table) throws org.apache.thrift.TException
+    {
+      openReadSession_args args = new openReadSession_args();
+      args.setTable(table);
+      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 TopFieldDocs search(Session session, QueryArgs queryArgs) throws BlurException, org.apache.thrift.TException
+    {
+      send_search(session, queryArgs);
+      return recv_search();
+    }
+
+    public void send_search(Session session, QueryArgs queryArgs) throws org.apache.thrift.TException
+    {
+      search_args args = new search_args();
+      args.setSession(session);
+      args.setQueryArgs(queryArgs);
+      sendBase("search", args);
+    }
+
+    public TopFieldDocs recv_search() throws BlurException, org.apache.thrift.TException
+    {
+      search_result result = new search_result();
+      receiveBase(result, "search");
+      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, "search failed: unknown result");
+    }
+
+    public List<Document> doc(Session session, List<DocLocation> docLocations, Set<String> fields) throws BlurException, org.apache.thrift.TException
+    {
+      send_doc(session, docLocations, fields);
+      return recv_doc();
+    }
+
+    public void send_doc(Session session, List<DocLocation> docLocations, Set<String> fields) throws org.apache.thrift.TException
+    {
+      doc_args args = new doc_args();
+      args.setSession(session);
+      args.setDocLocations(docLocations);
+      args.setFields(fields);
+      sendBase("doc", args);
+    }
+
+    public List<Document> recv_doc() throws BlurException, org.apache.thrift.TException
+    {
+      doc_result result = new doc_result();
+      receiveBase(result, "doc");
+      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, "doc 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 addDocuments(Session session, int shardIndex, List<Document> document) throws BlurException, org.apache.thrift.TException
+    {
+      send_addDocuments(session, shardIndex, document);
+      recv_addDocuments();
+    }
+
+    public void send_addDocuments(Session session, int shardIndex, List<Document> document) throws org.apache.thrift.TException
+    {
+      addDocuments_args args = new addDocuments_args();
+      args.setSession(session);
+      args.setShardIndex(shardIndex);
+      args.setDocument(document);
+      sendBase("addDocuments", args);
+    }
+
+    public void recv_addDocuments() throws BlurException, org.apache.thrift.TException
+    {
+      addDocuments_result result = new addDocuments_result();
+      receiveBase(result, "addDocuments");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void deleteDocumentsByQueries(Session session, int shardIndex, List<QueryArgs> queries) throws BlurException, org.apache.thrift.TException
+    {
+      send_deleteDocumentsByQueries(session, shardIndex, queries);
+      recv_deleteDocumentsByQueries();
+    }
+
+    public void send_deleteDocumentsByQueries(Session session, int shardIndex, List<QueryArgs> queries) throws org.apache.thrift.TException
+    {
+      deleteDocumentsByQueries_args args = new deleteDocumentsByQueries_args();
+      args.setSession(session);
+      args.setShardIndex(shardIndex);
+      args.setQueries(queries);
+      sendBase("deleteDocumentsByQueries", args);
+    }
+
+    public void recv_deleteDocumentsByQueries() throws BlurException, org.apache.thrift.TException
+    {
+      deleteDocumentsByQueries_result result = new deleteDocumentsByQueries_result();
+      receiveBase(result, "deleteDocumentsByQueries");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void deleteDocuments(Session session, int shardIndex, List<Term> terms) throws BlurException, org.apache.thrift.TException
+    {
+      send_deleteDocuments(session, shardIndex, terms);
+      recv_deleteDocuments();
+    }
+
+    public void send_deleteDocuments(Session session, int shardIndex, List<Term> terms) throws org.apache.thrift.TException
+    {
+      deleteDocuments_args args = new deleteDocuments_args();
+      args.setSession(session);
+      args.setShardIndex(shardIndex);
+      args.setTerms(terms);
+      sendBase("deleteDocuments", args);
+    }
+
+    public void recv_deleteDocuments() throws BlurException, org.apache.thrift.TException
+    {
+      deleteDocuments_result result = new deleteDocuments_result();
+      receiveBase(result, "deleteDocuments");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void updateDocuments(Session session, int shardIndex, List<Term> terms, List<Document> document) throws BlurException, org.apache.thrift.TException
+    {
+      send_updateDocuments(session, shardIndex, terms, document);
+      recv_updateDocuments();
+    }
+
+    public void send_updateDocuments(Session session, int shardIndex, List<Term> terms, List<Document> document) throws org.apache.thrift.TException
+    {
+      updateDocuments_args args = new updateDocuments_args();
+      args.setSession(session);
+      args.setShardIndex(shardIndex);
+      args.setTerms(terms);
+      args.setDocument(document);
+      sendBase("updateDocuments", args);
+    }
+
+    public void recv_updateDocuments() throws BlurException, org.apache.thrift.TException
+    {
+      updateDocuments_result result = new updateDocuments_result();
+      receiveBase(result, "updateDocuments");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void commit(Session session) throws BlurException, org.apache.thrift.TException
+    {
+      send_commit(session);
+      recv_commit();
+    }
+
+    public void send_commit(Session session) throws org.apache.thrift.TException
+    {
+      commit_args args = new commit_args();
+      args.setSession(session);
+      sendBase("commit", args);
+    }
+
+    public void recv_commit() throws BlurException, org.apache.thrift.TException
+    {
+      commit_result result = new commit_result();
+      receiveBase(result, "commit");
+      if (result.e != null) {
+        throw result.e;
+      }
+      return;
+    }
+
+    public void rollback(Session session) throws BlurException, org.apache.thrift.TException
+    {
+      send_rollback(session);
+      recv_rollback();
+    }
+
+    public void send_rollback(Session session) throws org.apache.thrift.TException
+    {
+      rollback_args args = new rollback_args();
+      args.setSession(session);
+      sendBase("rollback", args);
+    }
+
+    public void recv_rollback() throws BlurException, org.apache.thrift.TException
+    {
+      rollback_result result = new rollback_result();
+      receiveBase(result, "rollback");
+      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(String table, org.apache.thrift.async.AsyncMethodCallback<openReadSession_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      openReadSession_call method_call = new openReadSession_call(table, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class openReadSession_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private String table;
+      public openReadSession_call(String table, 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);
+        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("openReadSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        openReadSession_args args = new openReadSession_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_openReadSession();
+      }
+    }
+
+    public void search(Session session, QueryArgs queryArgs, org.apache.thrift.async.AsyncMethodCallback<search_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      search_call method_call = new search_call(session, queryArgs, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class search_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private QueryArgs queryArgs;
+      public search_call(Session session, QueryArgs queryArgs, org.apache.thrift.async.AsyncMethodCallback<search_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.queryArgs = queryArgs;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("search", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        search_args args = new search_args();
+        args.setSession(session);
+        args.setQueryArgs(queryArgs);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public TopFieldDocs 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_search();
+      }
+    }
+
+    public void doc(Session session, List<DocLocation> docLocations, Set<String> fields, org.apache.thrift.async.AsyncMethodCallback<doc_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      doc_call method_call = new doc_call(session, docLocations, fields, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class doc_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private List<DocLocation> docLocations;
+      private Set<String> fields;
+      public doc_call(Session session, List<DocLocation> docLocations, Set<String> fields, org.apache.thrift.async.AsyncMethodCallback<doc_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.docLocations = docLocations;
+        this.fields = fields;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doc", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        doc_args args = new doc_args();
+        args.setSession(session);
+        args.setDocLocations(docLocations);
+        args.setFields(fields);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public List<Document> 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_doc();
+      }
+    }
+
+    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 addDocuments(Session session, int shardIndex, List<Document> document, org.apache.thrift.async.AsyncMethodCallback<addDocuments_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      addDocuments_call method_call = new addDocuments_call(session, shardIndex, document, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class addDocuments_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private int shardIndex;
+      private List<Document> document;
+      public addDocuments_call(Session session, int shardIndex, List<Document> document, org.apache.thrift.async.AsyncMethodCallback<addDocuments_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.shardIndex = shardIndex;
+        this.document = document;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDocuments", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        addDocuments_args args = new addDocuments_args();
+        args.setSession(session);
+        args.setShardIndex(shardIndex);
+        args.setDocument(document);
+        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_addDocuments();
+      }
+    }
+
+    public void deleteDocumentsByQueries(Session session, int shardIndex, List<QueryArgs> queries, org.apache.thrift.async.AsyncMethodCallback<deleteDocumentsByQueries_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      deleteDocumentsByQueries_call method_call = new deleteDocumentsByQueries_call(session, shardIndex, queries, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class deleteDocumentsByQueries_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private int shardIndex;
+      private List<QueryArgs> queries;
+      public deleteDocumentsByQueries_call(Session session, int shardIndex, List<QueryArgs> queries, org.apache.thrift.async.AsyncMethodCallback<deleteDocumentsByQueries_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.shardIndex = shardIndex;
+        this.queries = queries;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteDocumentsByQueries", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        deleteDocumentsByQueries_args args = new deleteDocumentsByQueries_args();
+        args.setSession(session);
+        args.setShardIndex(shardIndex);
+        args.setQueries(queries);
+        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_deleteDocumentsByQueries();
+      }
+    }
+
+    public void deleteDocuments(Session session, int shardIndex, List<Term> terms, org.apache.thrift.async.AsyncMethodCallback<deleteDocuments_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      deleteDocuments_call method_call = new deleteDocuments_call(session, shardIndex, terms, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class deleteDocuments_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private int shardIndex;
+      private List<Term> terms;
+      public deleteDocuments_call(Session session, int shardIndex, List<Term> terms, org.apache.thrift.async.AsyncMethodCallback<deleteDocuments_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.shardIndex = shardIndex;
+        this.terms = terms;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteDocuments", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        deleteDocuments_args args = new deleteDocuments_args();
+        args.setSession(session);
+        args.setShardIndex(shardIndex);
+        args.setTerms(terms);
+        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_deleteDocuments();
+      }
+    }
+
+    public void updateDocuments(Session session, int shardIndex, List<Term> terms, List<Document> document, org.apache.thrift.async.AsyncMethodCallback<updateDocuments_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      updateDocuments_call method_call = new updateDocuments_call(session, shardIndex, terms, document, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class updateDocuments_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      private int shardIndex;
+      private List<Term> terms;
+      private List<Document> document;
+      public updateDocuments_call(Session session, int shardIndex, List<Term> terms, List<Document> document, org.apache.thrift.async.AsyncMethodCallback<updateDocuments_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.shardIndex = shardIndex;
+        this.terms = terms;
+        this.document = document;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateDocuments", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        updateDocuments_args args = new updateDocuments_args();
+        args.setSession(session);
+        args.setShardIndex(shardIndex);
+        args.setTerms(terms);
+        args.setDocument(document);
+        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_updateDocuments();
+      }
+    }
+
+    public void commit(Session session, org.apache.thrift.async.AsyncMethodCallback<commit_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      commit_call method_call = new commit_call(session, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class commit_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      public commit_call(Session session, org.apache.thrift.async.AsyncMethodCallback<commit_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("commit", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        commit_args args = new commit_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_commit();
+      }
+    }
+
+    public void rollback(Session session, org.apache.thrift.async.AsyncMethodCallback<rollback_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      rollback_call method_call = new rollback_call(session, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class rollback_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private Session session;
+      public rollback_call(Session session, org.apache.thrift.async.AsyncMethodCallback<rollback_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("rollback", org.apache.thrift.protocol.TMessageType.CALL, 0));
+        rollback_args args = new rollback_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_rollback();
+      }
+    }
+
+  }
+
+  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("search", new search());
+      processMap.put("doc", new doc());
+      processMap.put("closeReadSession", new closeReadSession());
+      processMap.put("openWriteSession", new openWriteSession());
+      processMap.put("addDocuments", new addDocuments());
+      processMap.put("deleteDocumentsByQueries", new deleteDocumentsByQueries());
+      processMap.put("deleteDocuments", new deleteDocuments());
+      processMap.put("updateDocuments", new updateDocuments());
+      processMap.put("commit", new commit());
+      processMap.put("rollback", new rollback());
+      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(args.table);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class search<I extends Iface> extends org.apache.thrift.ProcessFunction<I, search_args> {
+      public search() {
+        super("search");
+      }
+
+      protected search_args getEmptyArgsInstance() {
+        return new search_args();
+      }
+
+      protected search_result getResult(I iface, search_args args) throws org.apache.thrift.TException {
+        search_result result = new search_result();
+        try {
+          result.success = iface.search(args.session, args.queryArgs);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class doc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doc_args> {
+      public doc() {
+        super("doc");
+      }
+
+      protected doc_args getEmptyArgsInstance() {
+        return new doc_args();
+      }
+
+      protected doc_result getResult(I iface, doc_args args) throws org.apache.thrift.TException {
+        doc_result result = new doc_result();
+        try {
+          result.success = iface.doc(args.session, args.docLocations, args.fields);
+        } 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 addDocuments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addDocuments_args> {
+      public addDocuments() {
+        super("addDocuments");
+      }
+
+      protected addDocuments_args getEmptyArgsInstance() {
+        return new addDocuments_args();
+      }
+
+      protected addDocuments_result getResult(I iface, addDocuments_args args) throws org.apache.thrift.TException {
+        addDocuments_result result = new addDocuments_result();
+        try {
+          iface.addDocuments(args.session, args.shardIndex, args.document);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class deleteDocumentsByQueries<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteDocumentsByQueries_args> {
+      public deleteDocumentsByQueries() {
+        super("deleteDocumentsByQueries");
+      }
+
+      protected deleteDocumentsByQueries_args getEmptyArgsInstance() {
+        return new deleteDocumentsByQueries_args();
+      }
+
+      protected deleteDocumentsByQueries_result getResult(I iface, deleteDocumentsByQueries_args args) throws org.apache.thrift.TException {
+        deleteDocumentsByQueries_result result = new deleteDocumentsByQueries_result();
+        try {
+          iface.deleteDocumentsByQueries(args.session, args.shardIndex, args.queries);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class deleteDocuments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteDocuments_args> {
+      public deleteDocuments() {
+        super("deleteDocuments");
+      }
+
+      protected deleteDocuments_args getEmptyArgsInstance() {
+        return new deleteDocuments_args();
+      }
+
+      protected deleteDocuments_result getResult(I iface, deleteDocuments_args args) throws org.apache.thrift.TException {
+        deleteDocuments_result result = new deleteDocuments_result();
+        try {
+          iface.deleteDocuments(args.session, args.shardIndex, args.terms);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class updateDocuments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateDocuments_args> {
+      public updateDocuments() {
+        super("updateDocuments");
+      }
+
+      protected updateDocuments_args getEmptyArgsInstance() {
+        return new updateDocuments_args();
+      }
+
+      protected updateDocuments_result getResult(I iface, updateDocuments_args args) throws org.apache.thrift.TException {
+        updateDocuments_result result = new updateDocuments_result();
+        try {
+          iface.updateDocuments(args.session, args.shardIndex, args.terms, args.document);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class commit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, commit_args> {
+      public commit() {
+        super("commit");
+      }
+
+      protected commit_args getEmptyArgsInstance() {
+        return new commit_args();
+      }
+
+      protected commit_result getResult(I iface, commit_args args) throws org.apache.thrift.TException {
+        commit_result result = new commit_result();
+        try {
+          iface.commit(args.session);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    private static class rollback<I extends Iface> extends org.apache.thrift.ProcessFunction<I, rollback_args> {
+      public rollback() {
+        super("rollback");
+      }
+
+      protected rollback_args getEmptyArgsInstance() {
+        return new rollback_args();
+      }
+
+      protected rollback_result getResult(I iface, rollback_args args) throws org.apache.thrift.TException {
+        rollback_result result = new rollback_result();
+        try {
+          iface.rollback(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");
+
+    private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1);
+
+    public String table; // 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 {
+      TABLE((short)1, "table");
+
+      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: // TABLE
+            return TABLE;
+          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.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", 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(openReadSession_args.class, metaDataMap);
+    }
+
+    public openReadSession_args() {
+    }
+
+    public openReadSession_args(
+      String table)
+    {
+      this();
+      this.table = table;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public openReadSession_args(openReadSession_args other) {
+      if (other.isSetTable()) {
+        this.table = other.table;
+      }
+    }
+
+    public openReadSession_args deepCopy() {
+      return new openReadSession_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.table = null;
+    }
+
+    public String getTable() {
+      return this.table;
+    }
+
+    public openReadSession_args setTable(String table) {
+      this.table = table;
+      return this;
+    }
+
+    public void unsetTable() {
+      this.table = null;
+    }
+
+    /** Returns true if field table is set (has been assigned a value) and false otherwise */
+    public boolean isSetTable() {
+      return this.table != null;
+    }
+
+    public void setTableIsSet(boolean value) {
+      if (!value) {
+        this.table = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case TABLE:
+        if (value == null) {
+          unsetTable();
+        } else {
+          setTable((String)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case TABLE:
+        return getTable();
+
+      }
+      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 TABLE:
+        return isSetTable();
+      }
+      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;
+
+      boolean this_present_table = true && this.isSetTable();
+      boolean that_present_table = true && that.isSetTable();
+      if (this_present_table || that_present_table) {
+        if (!(this_present_table && that_present_table))
+          return false;
+        if (!this.table.equals(that.table))
+          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;
+
+      lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetTable()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table);
+        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: // TABLE
+            if (field.type == org.apache.thrift.protocol.TType.STRING) {
+              this.table = 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.table != null) {
+        oprot.writeFieldBegin(TABLE_FIELD_DESC);
+        oprot.writeString(this.table);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("openReadSession_args(");
+      boolean first = true;
+
+      sb.append("table:");
+      if (this.table == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.table);
+      }
+      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 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 search_args implements org.apache.thrift.TBase<search_args, search_args._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("search_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_ARGS_FIELD_DESC = new org.apache.thrift.protocol.TField("queryArgs", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+    public Session session; // required
+    public QueryArgs queryArgs; // 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_ARGS((short)2, "queryArgs");
+
+      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_ARGS
+            return QUERY_ARGS;
+          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_ARGS, new org.apache.thrift.meta_data.FieldMetaData("queryArgs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QueryArgs.class)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(search_args.class, metaDataMap);
+    }
+
+    public search_args() {
+    }
+
+    public search_args(
+      Session session,
+      QueryArgs queryArgs)
+    {
+      this();
+      this.session = session;
+      this.queryArgs = queryArgs;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public search_args(search_args other) {
+      if (other.isSetSession()) {
+        this.session = new Session(other.session);
+      }
+      if (other.isSetQueryArgs()) {
+        this.queryArgs = new QueryArgs(other.queryArgs);
+      }
+    }
+
+    public search_args deepCopy() {
+      return new search_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.session = null;
+      this.queryArgs = null;
+    }
+
+    public Session getSession() {
+      return this.session;
+    }
+
+    public search_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 QueryArgs getQueryArgs() {
+      return this.queryArgs;
+    }
+
+    public search_args setQueryArgs(QueryArgs queryArgs) {
+      this.queryArgs = queryArgs;
+      return this;
+    }
+
+    public void unsetQueryArgs() {
+      this.queryArgs = null;
+    }
+
+    /** Returns true if field queryArgs is set (has been assigned a value) and false otherwise */
+    public boolean isSetQueryArgs() {
+      return this.queryArgs != null;
+    }
+
+    public void setQueryArgsIsSet(boolean value) {
+      if (!value) {
+        this.queryArgs = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SESSION:
+        if (value == null) {
+          unsetSession();
+        } else {
+          setSession((Session)value);
+        }
+        break;
+
+      case QUERY_ARGS:
+        if (value == null) {
+          unsetQueryArgs();
+        } else {
+          setQueryArgs((QueryArgs)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SESSION:
+        return getSession();
+
+      case QUERY_ARGS:
+        return getQueryArgs();
+
+      }
+      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_ARGS:
+        return isSetQueryArgs();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof search_args)
+        return this.equals((search_args)that);
+      return false;
+    }
+
+    public boolean equals(search_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_queryArgs = true && this.isSetQueryArgs();
+      boolean that_present_queryArgs = true && that.isSetQueryArgs();
+      if (this_present_queryArgs || that_present_queryArgs) {
+        if (!(this_present_queryArgs && that_present_queryArgs))
+          return false;
+        if (!this.queryArgs.equals(that.queryArgs))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      return 0;
+    }
+
+    public int compareTo(search_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+      search_args typedOther = (search_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(isSetQueryArgs()).compareTo(typedOther.isSetQueryArgs());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetQueryArgs()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryArgs, typedOther.queryArgs);
+        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_ARGS
+            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+              this.queryArgs = new QueryArgs();
+              this.queryArgs.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 {
+      validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (this.session != null) {
+        oprot.writeFieldBegin(SESSION_FIELD_DESC);
+        this.session.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (this.queryArgs != null) {
+        oprot.writeFieldBegin(QUERY_ARGS_FIELD_DESC);
+        this.queryArgs.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("search_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("queryArgs:");
+      if (this.queryArgs == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.queryArgs);
+      }
+      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 search_result implements org.apache.thrift.TBase<search_result, search_result._Fields>, java.io.Serializable, Cloneable   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("search_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 TopFieldDocs 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, TopFieldDocs.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(search_result.class, metaDataMap);
+    }
+
+    public search_result() {
+    }
+
+    public search_result(
+      TopFieldDocs success,
+      BlurException e)
+    {
+      this();
+      this.success = success;
+      this.e = e;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public search_result(search_result other) {
+      if (other.isSetSuccess()) {
+        this.success = new TopFieldDocs(other.success);
+      }
+      if (other.isSetE()) {
+        this.e = new BlurException(other.e);
+      }
+    }
+
+    public search_result deepCopy() {
+      return new search_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.success = null;
+      this.e = null;
+    }
+
+    public TopFieldDocs getSuccess() {
+      return this.success;
+    }
+
+    public search_result setSuccess(TopFieldDocs 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 search_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((TopFieldDocs)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 search_result)
+        return this.equals((search_result)that);
+      return false;
+    }
+
+    public boolean equals(search_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_succes

<TRUNCATED>

Mime
View raw message