incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [48/50] [abbrv] Fixed compiler errors.
Date Wed, 07 Nov 2012 02:26:56 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/a1df5435/interface/gen-java/org/apache/blur/thrift/generated/ShardServer.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/ShardServer.java b/interface/gen-java/org/apache/blur/thrift/generated/ShardServer.java
new file mode 100644
index 0000000..7012152
--- /dev/null
+++ b/interface/gen-java/org/apache/blur/thrift/generated/ShardServer.java
@@ -0,0 +1,8047 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.blur.thrift.generated;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import 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 ShardServer {
+
+  public interface Iface extends Blur.Iface {
+
+    /**
+     * Creating a session snapshots the readers during search and document fetching.  This provides a static view of the indexes so the document ids will remain the same during a session.
+     * @param table the table name.
+     * @return the new Session.
+     * 
+     * @param table
+     */
+    public Session openReadSession(String table) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Runs a search with the given query arguments.  Invalid Sessions will throw a BlurException.
+     * @param session the Session.
+     * @param queryArgs the QueryArgs which contains the query, filter, sort, fetch, paging information, etc.
+     * @return the TopFieldDocs, where there is a TopFieldDocs object for each shard that was search against.
+     * 
+     * @param session
+     * @param queryArgs
+     */
+    public List<TopFieldDocs> search(Session session, QueryArgs queryArgs) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Fetches a document based on the DocLocation list with the fields specified.
+     * @param session the Session.
+     * @param docLocations the document locations, which include shard index and document id.
+     * @param fields the field names to fetch.
+     * @return the Documents that were requested.
+     * 
+     * @param session
+     * @param docLocations
+     * @param fields
+     */
+    public List<Document> doc(Session session, List<DocLocation> docLocations, Set<String> fields) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Closes the session and allows the readers to be closed.
+     * @param session the Session.
+     * 
+     * @param session
+     */
+    public void closeReadSession(Session session) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Add Documents to the given table in the provided shard.  If the table or shard is not found on this shard server a BlurException will be thrown.
+     * @param options the MutateOptions provide the table name, shard index, etc.
+     * @param documents the documents to be added.  NOTE: All documents provided to be indexed in a single segment.
+     * 
+     * @param options
+     * @param documents
+     */
+    public void addDocuments(MutateOptions options, List<Document> documents) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Delete Documents to the given table in the provided shard.  If the table or shard is not found on this shard server a BlurException will be thrown.
+     * @param options the MutateOptions provide the table name, shard index, etc.
+     * @param queries the Queries that will executed and mark there resulting documents as deleted.
+     * 
+     * @param options
+     * @param queries
+     */
+    public void deleteDocumentsByQueries(MutateOptions options, List<ByteBuffer> queries) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Delete Documents to the given table in the provided shard.  If the table or shard is not found on this shard server a BlurException will be thrown.
+     * @param options the MutateOptions provide the table name, shard index, etc.
+     * @param queries the Terms that will be found and mark deleted all the documents to be deleted.
+     * 
+     * @param options
+     * @param terms
+     */
+    public void deleteDocuments(MutateOptions options, List<Term> terms) throws BlurException, org.apache.thrift.TException;
+
+    /**
+     * Update Documents to the given table in the provided shard.  If the table or shard is not found on this shard server a BlurException will be thrown.
+     * @param options the MutateOptions provide the table name, shard index, etc.
+     * @param updatePackages the documents to be updated.  NOTE: All documents within a update document object are indexed in a single segment.
+     * 
+     * @param options
+     * @param updatePackages
+     */
+    public void updateDocuments(MutateOptions options, List<UpdatePackage> updatePackages) throws BlurException, org.apache.thrift.TException;
+
+  }
+
+  public interface AsyncIface extends Blur .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 addDocuments(MutateOptions options, List<Document> documents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDocuments_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void deleteDocumentsByQueries(MutateOptions options, List<ByteBuffer> queries, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDocumentsByQueries_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void deleteDocuments(MutateOptions options, List<Term> terms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDocuments_call> resultHandler) throws org.apache.thrift.TException;
+
+    public void updateDocuments(MutateOptions options, List<UpdatePackage> updatePackages, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateDocuments_call> resultHandler) throws org.apache.thrift.TException;
+
+  }
+
+  public static class Client extends Blur.Client 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 List<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 List<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 void addDocuments(MutateOptions options, List<Document> documents) throws BlurException, org.apache.thrift.TException
+    {
+      send_addDocuments(options, documents);
+      recv_addDocuments();
+    }
+
+    public void send_addDocuments(MutateOptions options, List<Document> documents) throws org.apache.thrift.TException
+    {
+      addDocuments_args args = new addDocuments_args();
+      args.setOptions(options);
+      args.setDocuments(documents);
+      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(MutateOptions options, List<ByteBuffer> queries) throws BlurException, org.apache.thrift.TException
+    {
+      send_deleteDocumentsByQueries(options, queries);
+      recv_deleteDocumentsByQueries();
+    }
+
+    public void send_deleteDocumentsByQueries(MutateOptions options, List<ByteBuffer> queries) throws org.apache.thrift.TException
+    {
+      deleteDocumentsByQueries_args args = new deleteDocumentsByQueries_args();
+      args.setOptions(options);
+      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(MutateOptions options, List<Term> terms) throws BlurException, org.apache.thrift.TException
+    {
+      send_deleteDocuments(options, terms);
+      recv_deleteDocuments();
+    }
+
+    public void send_deleteDocuments(MutateOptions options, List<Term> terms) throws org.apache.thrift.TException
+    {
+      deleteDocuments_args args = new deleteDocuments_args();
+      args.setOptions(options);
+      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(MutateOptions options, List<UpdatePackage> updatePackages) throws BlurException, org.apache.thrift.TException
+    {
+      send_updateDocuments(options, updatePackages);
+      recv_updateDocuments();
+    }
+
+    public void send_updateDocuments(MutateOptions options, List<UpdatePackage> updatePackages) throws org.apache.thrift.TException
+    {
+      updateDocuments_args args = new updateDocuments_args();
+      args.setOptions(options);
+      args.setUpdatePackages(updatePackages);
+      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 static class AsyncClient extends Blur.AsyncClient 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 List<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 addDocuments(MutateOptions options, List<Document> documents, org.apache.thrift.async.AsyncMethodCallback<addDocuments_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      addDocuments_call method_call = new addDocuments_call(options, documents, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class addDocuments_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private MutateOptions options;
+      private List<Document> documents;
+      public addDocuments_call(MutateOptions options, List<Document> documents, 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.options = options;
+        this.documents = documents;
+      }
+
+      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.setOptions(options);
+        args.setDocuments(documents);
+        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(MutateOptions options, List<ByteBuffer> queries, org.apache.thrift.async.AsyncMethodCallback<deleteDocumentsByQueries_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      deleteDocumentsByQueries_call method_call = new deleteDocumentsByQueries_call(options, 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 MutateOptions options;
+      private List<ByteBuffer> queries;
+      public deleteDocumentsByQueries_call(MutateOptions options, List<ByteBuffer> 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.options = options;
+        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.setOptions(options);
+        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(MutateOptions options, List<Term> terms, org.apache.thrift.async.AsyncMethodCallback<deleteDocuments_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      deleteDocuments_call method_call = new deleteDocuments_call(options, 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 MutateOptions options;
+      private List<Term> terms;
+      public deleteDocuments_call(MutateOptions options, 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.options = options;
+        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.setOptions(options);
+        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(MutateOptions options, List<UpdatePackage> updatePackages, org.apache.thrift.async.AsyncMethodCallback<updateDocuments_call> resultHandler) throws org.apache.thrift.TException {
+      checkReady();
+      updateDocuments_call method_call = new updateDocuments_call(options, updatePackages, resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class updateDocuments_call extends org.apache.thrift.async.TAsyncMethodCall {
+      private MutateOptions options;
+      private List<UpdatePackage> updatePackages;
+      public updateDocuments_call(MutateOptions options, List<UpdatePackage> updatePackages, 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.options = options;
+        this.updatePackages = updatePackages;
+      }
+
+      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.setOptions(options);
+        args.setUpdatePackages(updatePackages);
+        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 static class Processor<I extends Iface> extends Blur.Processor<I> 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("addDocuments", new addDocuments());
+      processMap.put("deleteDocumentsByQueries", new deleteDocumentsByQueries());
+      processMap.put("deleteDocuments", new deleteDocuments());
+      processMap.put("updateDocuments", new updateDocuments());
+      return processMap;
+    }
+
+    public static class openReadSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, openReadSession_args> {
+      public openReadSession() {
+        super("openReadSession");
+      }
+
+      public openReadSession_args getEmptyArgsInstance() {
+        return new openReadSession_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public 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;
+      }
+    }
+
+    public static class search<I extends Iface> extends org.apache.thrift.ProcessFunction<I, search_args> {
+      public search() {
+        super("search");
+      }
+
+      public search_args getEmptyArgsInstance() {
+        return new search_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public 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;
+      }
+    }
+
+    public static class doc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doc_args> {
+      public doc() {
+        super("doc");
+      }
+
+      public doc_args getEmptyArgsInstance() {
+        return new doc_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public 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;
+      }
+    }
+
+    public static class closeReadSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeReadSession_args> {
+      public closeReadSession() {
+        super("closeReadSession");
+      }
+
+      public closeReadSession_args getEmptyArgsInstance() {
+        return new closeReadSession_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public 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;
+      }
+    }
+
+    public static class addDocuments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addDocuments_args> {
+      public addDocuments() {
+        super("addDocuments");
+      }
+
+      public addDocuments_args getEmptyArgsInstance() {
+        return new addDocuments_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public addDocuments_result getResult(I iface, addDocuments_args args) throws org.apache.thrift.TException {
+        addDocuments_result result = new addDocuments_result();
+        try {
+          iface.addDocuments(args.options, args.documents);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    public static class deleteDocumentsByQueries<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteDocumentsByQueries_args> {
+      public deleteDocumentsByQueries() {
+        super("deleteDocumentsByQueries");
+      }
+
+      public deleteDocumentsByQueries_args getEmptyArgsInstance() {
+        return new deleteDocumentsByQueries_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public deleteDocumentsByQueries_result getResult(I iface, deleteDocumentsByQueries_args args) throws org.apache.thrift.TException {
+        deleteDocumentsByQueries_result result = new deleteDocumentsByQueries_result();
+        try {
+          iface.deleteDocumentsByQueries(args.options, args.queries);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    public static class deleteDocuments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteDocuments_args> {
+      public deleteDocuments() {
+        super("deleteDocuments");
+      }
+
+      public deleteDocuments_args getEmptyArgsInstance() {
+        return new deleteDocuments_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public deleteDocuments_result getResult(I iface, deleteDocuments_args args) throws org.apache.thrift.TException {
+        deleteDocuments_result result = new deleteDocuments_result();
+        try {
+          iface.deleteDocuments(args.options, args.terms);
+        } catch (BlurException e) {
+          result.e = e;
+        }
+        return result;
+      }
+    }
+
+    public static class updateDocuments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateDocuments_args> {
+      public updateDocuments() {
+        super("updateDocuments");
+      }
+
+      public updateDocuments_args getEmptyArgsInstance() {
+        return new updateDocuments_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public updateDocuments_result getResult(I iface, updateDocuments_args args) throws org.apache.thrift.TException {
+        updateDocuments_result result = new updateDocuments_result();
+        try {
+          iface.updateDocuments(args.options, args.updatePackages);
+        } 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);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new openReadSession_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new openReadSession_argsTupleSchemeFactory());
+    }
+
+    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 {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("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
+      // check for sub-struct validity
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class openReadSession_argsStandardSchemeFactory implements SchemeFactory {
+      public openReadSession_argsStandardScheme getScheme() {
+        return new openReadSession_argsStandardScheme();
+      }
+    }
+
+    private static class openReadSession_argsStandardScheme extends StandardScheme<openReadSession_args> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, openReadSession_args struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 1: // TABLE
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+                struct.table = iprot.readString();
+                struct.setTableIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, openReadSession_args struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.table != null) {
+          oprot.writeFieldBegin(TABLE_FIELD_DESC);
+          oprot.writeString(struct.table);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class openReadSession_argsTupleSchemeFactory implements SchemeFactory {
+      public openReadSession_argsTupleScheme getScheme() {
+        return new openReadSession_argsTupleScheme();
+      }
+    }
+
+    private static class openReadSession_argsTupleScheme extends TupleScheme<openReadSession_args> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, openReadSession_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetTable()) {
+          optionals.set(0);
+        }
+        oprot.writeBitSet(optionals, 1);
+        if (struct.isSetTable()) {
+          oprot.writeString(struct.table);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, openReadSession_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(1);
+        if (incoming.get(0)) {
+          struct.table = iprot.readString();
+          struct.setTableIsSet(true);
+        }
+      }
+    }
+
+  }
+
+  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);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new openReadSession_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new openReadSession_resultTupleSchemeFactory());
+    }
+
+    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 {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+      }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("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
+      // check for sub-struct validity
+      if (success != null) {
+        success.validate();
+      }
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class openReadSession_resultStandardSchemeFactory implements SchemeFactory {
+      public openReadSession_resultStandardScheme getScheme() {
+        return new openReadSession_resultStandardScheme();
+      }
+    }
+
+    private static class openReadSession_resultStandardScheme extends StandardScheme<openReadSession_result> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, openReadSession_result struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 0: // SUCCESS
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.success = new Session();
+                struct.success.read(iprot);
+                struct.setSuccessIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
+            case 1: // E
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.e = new BlurException();
+                struct.e.read(iprot);
+                struct.setEIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, openReadSession_result struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.success != null) {
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+          struct.success.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        if (struct.e != null) {
+          oprot.writeFieldBegin(E_FIELD_DESC);
+          struct.e.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class openReadSession_resultTupleSchemeFactory implements SchemeFactory {
+      public openReadSession_resultTupleScheme getScheme() {
+        return new openReadSession_resultTupleScheme();
+      }
+    }
+
+    private static class openReadSession_resultTupleScheme extends TupleScheme<openReadSession_result> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, openReadSession_result struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetSuccess()) {
+          optionals.set(0);
+        }
+        if (struct.isSetE()) {
+          optionals.set(1);
+        }
+        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetSuccess()) {
+          struct.success.write(oprot);
+        }
+        if (struct.isSetE()) {
+          struct.e.write(oprot);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, openReadSession_result struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(2);
+        if (incoming.get(0)) {
+          struct.success = new Session();
+          struct.success.read(iprot);
+          struct.setSuccessIsSet(true);
+        }
+        if (incoming.get(1)) {
+          struct.e = new BlurException();
+          struct.e.read(iprot);
+          struct.setEIsSet(true);
+        }
+      }
+    }
+
+  }
+
+  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);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new search_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new search_argsTupleSchemeFactory());
+    }
+
+    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 {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("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
+      // check for sub-struct validity
+      if (session != null) {
+        session.validate();
+      }
+      if (queryArgs != null) {
+        queryArgs.validate();
+      }
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class search_argsStandardSchemeFactory implements SchemeFactory {
+      public search_argsStandardScheme getScheme() {
+        return new search_argsStandardScheme();
+      }
+    }
+
+    private static class search_argsStandardScheme extends StandardScheme<search_args> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, search_args struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 1: // SESSION
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.session = new Session();
+                struct.session.read(iprot);
+                struct.setSessionIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
+            case 2: // QUERY_ARGS
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+                struct.queryArgs = new QueryArgs();
+                struct.queryArgs.read(iprot);
+                struct.setQueryArgsIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, search_args struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.session != null) {
+          oprot.writeFieldBegin(SESSION_FIELD_DESC);
+          struct.session.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        if (struct.queryArgs != null) {
+          oprot.writeFieldBegin(QUERY_ARGS_FIELD_DESC);
+          struct.queryArgs.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class search_argsTupleSchemeFactory implements SchemeFactory {
+      public search_argsTupleScheme getScheme() {
+        return new search_argsTupleScheme();
+      }
+    }
+
+    private static class search_argsTupleScheme extends TupleScheme<search_args> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, search_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetSession()) {
+          optionals.set(0);
+        }
+        if (struct.isSetQueryArgs()) {
+          optionals.set(1);
+        }
+        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetSession()) {
+          struct.session.write(oprot);
+        }
+        if (struct.isSetQueryArgs()) {
+          struct.queryArgs.write(oprot);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, search_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(2);
+        if (incoming.get(0)) {
+          struct.session = new Session();
+          struct.session.read(iprot);
+          struct.setSessionIsSet(true);
+        }
+        if (incoming.get(1)) {
+          struct.queryArgs = new QueryArgs();
+          struct.queryArgs.read(iprot);
+          struct.setQueryArgsIsSet(true);
+        }
+      }
+    }
+
+  }
+
+  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.LIST, (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);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new search_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new search_resultTupleSchemeFactory());
+    }
+
+    public List<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.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+              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(
+      List<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()) {
+        List<TopFieldDocs> __this__success = new ArrayList<TopFieldDocs>();
+        for (TopFieldDocs other_element : other.success) {
+          __this__success.add(new TopFieldDocs(other_element));
+        }
+        this.success = __this__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 int getSuccessSize() {
+      return (this.success == null) ? 0 : this.success.size();
+    }
+
+    public java.util.Iterator<TopFieldDocs> getSuccessIterator() {
+      return (this.success == null) ? null : this.success.iterator();
+    }
+
+    public void addToSuccess(TopFieldDocs elem) {
+      if (this.success == null) {
+        this.success = new ArrayList<TopFieldDocs>();
+      }
+      this.success.add(elem);
+    }
+
+    public List<TopFieldDocs> getSuccess() {
+      return this.success;
+    }
+
+    public search_result setSuccess(List<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 */
+   

<TRUNCATED>

Mime
View raw message