incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [21/29] Added the distribution project to allow for automatically creating build artifacts during a maven build.
Date Fri, 04 Jan 2013 22:42:51 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/70b69ecb/interface/gen-java/org/apache/blur/thrift/generated/QueryArgs.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/QueryArgs.java b/interface/gen-java/org/apache/blur/thrift/generated/QueryArgs.java
deleted file mode 100644
index 46451f0..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/QueryArgs.java
+++ /dev/null
@@ -1,1509 +0,0 @@
-/**
- * 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 QueryArgs implements org.apache.thrift.TBase<QueryArgs, QueryArgs._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("QueryArgs");
-
-  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-  private static final org.apache.thrift.protocol.TField AFTER_FIELD_DESC = new org.apache.thrift.protocol.TField("after", org.apache.thrift.protocol.TType.STRUCT, (short)2);
-  private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)3);
-  private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)4);
-  private static final org.apache.thrift.protocol.TField NUMBER_TO_FETCH_FIELD_DESC = new org.apache.thrift.protocol.TField("numberToFetch", org.apache.thrift.protocol.TType.I32, (short)5);
-  private static final org.apache.thrift.protocol.TField AGGREGATE_RESULTS_FIELD_DESC = new org.apache.thrift.protocol.TField("aggregateResults", org.apache.thrift.protocol.TType.BOOL, (short)6);
-  private static final org.apache.thrift.protocol.TField SORT_FIELD_DESC = new org.apache.thrift.protocol.TField("sort", org.apache.thrift.protocol.TType.STRUCT, (short)7);
-  private static final org.apache.thrift.protocol.TField DO_DOC_SCORES_FIELD_DESC = new org.apache.thrift.protocol.TField("doDocScores", org.apache.thrift.protocol.TType.BOOL, (short)8);
-  private static final org.apache.thrift.protocol.TField DO_MAX_SCORE_FIELD_DESC = new org.apache.thrift.protocol.TField("doMaxScore", org.apache.thrift.protocol.TType.BOOL, (short)9);
-  private static final org.apache.thrift.protocol.TField SHARD_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("shardIndexes", org.apache.thrift.protocol.TType.LIST, (short)10);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new QueryArgsStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new QueryArgsTupleSchemeFactory());
-  }
-
-  /**
-   * Unique id for controlling the given query.
-   */
-  public long id; // required
-  /**
-   * If after is left null then the first N (where N is numberToFetch)
-   * ScoreDocs are fetched.  If after is not null then the first N
-   * ScoreDocs are fetched that occur after the given ScoreDoc.
-   */
-  public ScoreDoc after; // required
-  /**
-   * The query to be executed.
-   */
-  public Query query; // required
-  /**
-   * Filter to be executed.
-   */
-  public ByteBuffer filter; // required
-  /**
-   * The number of document locations to fetch.
-   */
-  public int numberToFetch; // required
-  /**
-   * If aggregate results is left true then only a single TopFieldDocs
-   * object will be returned from the search method.  It will contain
-   * only the best documents from the given search with all of the
-   * shards being sorted and aggregated together.
-   */
-  public boolean aggregateResults; // required
-  /**
-   * NOT YET IMPLEMENTED.
-   */
-  public Sort sort; // required
-  /**
-   * NOT YET IMPLEMENTED.  Related to sort.
-   */
-  public boolean doDocScores; // required
-  /**
-   * Calculate the max score of the search.
-   */
-  public boolean doMaxScore; // required
-  /**
-   * Shard indexes allows the user to specify which shards of the table to execute
-   * the query against.  If left null, all the shards of the table are used.
-   */
-  public List<Integer> shardIndexes; // 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 {
-    /**
-     * Unique id for controlling the given query.
-     */
-    ID((short)1, "id"),
-    /**
-     * If after is left null then the first N (where N is numberToFetch)
-     * ScoreDocs are fetched.  If after is not null then the first N
-     * ScoreDocs are fetched that occur after the given ScoreDoc.
-     */
-    AFTER((short)2, "after"),
-    /**
-     * The query to be executed.
-     */
-    QUERY((short)3, "query"),
-    /**
-     * Filter to be executed.
-     */
-    FILTER((short)4, "filter"),
-    /**
-     * The number of document locations to fetch.
-     */
-    NUMBER_TO_FETCH((short)5, "numberToFetch"),
-    /**
-     * If aggregate results is left true then only a single TopFieldDocs
-     * object will be returned from the search method.  It will contain
-     * only the best documents from the given search with all of the
-     * shards being sorted and aggregated together.
-     */
-    AGGREGATE_RESULTS((short)6, "aggregateResults"),
-    /**
-     * NOT YET IMPLEMENTED.
-     */
-    SORT((short)7, "sort"),
-    /**
-     * NOT YET IMPLEMENTED.  Related to sort.
-     */
-    DO_DOC_SCORES((short)8, "doDocScores"),
-    /**
-     * Calculate the max score of the search.
-     */
-    DO_MAX_SCORE((short)9, "doMaxScore"),
-    /**
-     * Shard indexes allows the user to specify which shards of the table to execute
-     * the query against.  If left null, all the shards of the table are used.
-     */
-    SHARD_INDEXES((short)10, "shardIndexes");
-
-    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: // ID
-          return ID;
-        case 2: // AFTER
-          return AFTER;
-        case 3: // QUERY
-          return QUERY;
-        case 4: // FILTER
-          return FILTER;
-        case 5: // NUMBER_TO_FETCH
-          return NUMBER_TO_FETCH;
-        case 6: // AGGREGATE_RESULTS
-          return AGGREGATE_RESULTS;
-        case 7: // SORT
-          return SORT;
-        case 8: // DO_DOC_SCORES
-          return DO_DOC_SCORES;
-        case 9: // DO_MAX_SCORE
-          return DO_MAX_SCORE;
-        case 10: // SHARD_INDEXES
-          return SHARD_INDEXES;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  private static final int __ID_ISSET_ID = 0;
-  private static final int __NUMBERTOFETCH_ISSET_ID = 1;
-  private static final int __AGGREGATERESULTS_ISSET_ID = 2;
-  private static final int __DODOCSCORES_ISSET_ID = 3;
-  private static final int __DOMAXSCORE_ISSET_ID = 4;
-  private byte __isset_bitfield = 0;
-  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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    tmpMap.put(_Fields.AFTER, new org.apache.thrift.meta_data.FieldMetaData("after", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ScoreDoc.class)));
-    tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
-    tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING        , true)));
-    tmpMap.put(_Fields.NUMBER_TO_FETCH, new org.apache.thrift.meta_data.FieldMetaData("numberToFetch", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.AGGREGATE_RESULTS, new org.apache.thrift.meta_data.FieldMetaData("aggregateResults", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.SORT, new org.apache.thrift.meta_data.FieldMetaData("sort", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Sort.class)));
-    tmpMap.put(_Fields.DO_DOC_SCORES, new org.apache.thrift.meta_data.FieldMetaData("doDocScores", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.DO_MAX_SCORE, new org.apache.thrift.meta_data.FieldMetaData("doMaxScore", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.SHARD_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("shardIndexes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(QueryArgs.class, metaDataMap);
-  }
-
-  public QueryArgs() {
-    this.numberToFetch = 100;
-
-    this.aggregateResults = true;
-
-    this.doDocScores = true;
-
-    this.doMaxScore = false;
-
-  }
-
-  public QueryArgs(
-    long id,
-    ScoreDoc after,
-    Query query,
-    ByteBuffer filter,
-    int numberToFetch,
-    boolean aggregateResults,
-    Sort sort,
-    boolean doDocScores,
-    boolean doMaxScore,
-    List<Integer> shardIndexes)
-  {
-    this();
-    this.id = id;
-    setIdIsSet(true);
-    this.after = after;
-    this.query = query;
-    this.filter = filter;
-    this.numberToFetch = numberToFetch;
-    setNumberToFetchIsSet(true);
-    this.aggregateResults = aggregateResults;
-    setAggregateResultsIsSet(true);
-    this.sort = sort;
-    this.doDocScores = doDocScores;
-    setDoDocScoresIsSet(true);
-    this.doMaxScore = doMaxScore;
-    setDoMaxScoreIsSet(true);
-    this.shardIndexes = shardIndexes;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public QueryArgs(QueryArgs other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.id = other.id;
-    if (other.isSetAfter()) {
-      this.after = new ScoreDoc(other.after);
-    }
-    if (other.isSetQuery()) {
-      this.query = new Query(other.query);
-    }
-    if (other.isSetFilter()) {
-      this.filter = org.apache.thrift.TBaseHelper.copyBinary(other.filter);
-;
-    }
-    this.numberToFetch = other.numberToFetch;
-    this.aggregateResults = other.aggregateResults;
-    if (other.isSetSort()) {
-      this.sort = new Sort(other.sort);
-    }
-    this.doDocScores = other.doDocScores;
-    this.doMaxScore = other.doMaxScore;
-    if (other.isSetShardIndexes()) {
-      List<Integer> __this__shardIndexes = new ArrayList<Integer>();
-      for (Integer other_element : other.shardIndexes) {
-        __this__shardIndexes.add(other_element);
-      }
-      this.shardIndexes = __this__shardIndexes;
-    }
-  }
-
-  public QueryArgs deepCopy() {
-    return new QueryArgs(this);
-  }
-
-  @Override
-  public void clear() {
-    setIdIsSet(false);
-    this.id = 0;
-    this.after = null;
-    this.query = null;
-    this.filter = null;
-    this.numberToFetch = 100;
-
-    this.aggregateResults = true;
-
-    this.sort = null;
-    this.doDocScores = true;
-
-    this.doMaxScore = false;
-
-    this.shardIndexes = null;
-  }
-
-  /**
-   * Unique id for controlling the given query.
-   */
-  public long getId() {
-    return this.id;
-  }
-
-  /**
-   * Unique id for controlling the given query.
-   */
-  public QueryArgs setId(long id) {
-    this.id = id;
-    setIdIsSet(true);
-    return this;
-  }
-
-  public void unsetId() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
-  }
-
-  /** Returns true if field id is set (has been assigned a value) and false otherwise */
-  public boolean isSetId() {
-    return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
-  }
-
-  public void setIdIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
-  }
-
-  /**
-   * If after is left null then the first N (where N is numberToFetch)
-   * ScoreDocs are fetched.  If after is not null then the first N
-   * ScoreDocs are fetched that occur after the given ScoreDoc.
-   */
-  public ScoreDoc getAfter() {
-    return this.after;
-  }
-
-  /**
-   * If after is left null then the first N (where N is numberToFetch)
-   * ScoreDocs are fetched.  If after is not null then the first N
-   * ScoreDocs are fetched that occur after the given ScoreDoc.
-   */
-  public QueryArgs setAfter(ScoreDoc after) {
-    this.after = after;
-    return this;
-  }
-
-  public void unsetAfter() {
-    this.after = null;
-  }
-
-  /** Returns true if field after is set (has been assigned a value) and false otherwise */
-  public boolean isSetAfter() {
-    return this.after != null;
-  }
-
-  public void setAfterIsSet(boolean value) {
-    if (!value) {
-      this.after = null;
-    }
-  }
-
-  /**
-   * The query to be executed.
-   */
-  public Query getQuery() {
-    return this.query;
-  }
-
-  /**
-   * The query to be executed.
-   */
-  public QueryArgs setQuery(Query query) {
-    this.query = query;
-    return this;
-  }
-
-  public void unsetQuery() {
-    this.query = null;
-  }
-
-  /** Returns true if field query is set (has been assigned a value) and false otherwise */
-  public boolean isSetQuery() {
-    return this.query != null;
-  }
-
-  public void setQueryIsSet(boolean value) {
-    if (!value) {
-      this.query = null;
-    }
-  }
-
-  /**
-   * Filter to be executed.
-   */
-  public byte[] getFilter() {
-    setFilter(org.apache.thrift.TBaseHelper.rightSize(filter));
-    return filter == null ? null : filter.array();
-  }
-
-  public ByteBuffer bufferForFilter() {
-    return filter;
-  }
-
-  /**
-   * Filter to be executed.
-   */
-  public QueryArgs setFilter(byte[] filter) {
-    setFilter(filter == null ? (ByteBuffer)null : ByteBuffer.wrap(filter));
-    return this;
-  }
-
-  public QueryArgs setFilter(ByteBuffer filter) {
-    this.filter = filter;
-    return this;
-  }
-
-  public void unsetFilter() {
-    this.filter = null;
-  }
-
-  /** Returns true if field filter is set (has been assigned a value) and false otherwise */
-  public boolean isSetFilter() {
-    return this.filter != null;
-  }
-
-  public void setFilterIsSet(boolean value) {
-    if (!value) {
-      this.filter = null;
-    }
-  }
-
-  /**
-   * The number of document locations to fetch.
-   */
-  public int getNumberToFetch() {
-    return this.numberToFetch;
-  }
-
-  /**
-   * The number of document locations to fetch.
-   */
-  public QueryArgs setNumberToFetch(int numberToFetch) {
-    this.numberToFetch = numberToFetch;
-    setNumberToFetchIsSet(true);
-    return this;
-  }
-
-  public void unsetNumberToFetch() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMBERTOFETCH_ISSET_ID);
-  }
-
-  /** Returns true if field numberToFetch is set (has been assigned a value) and false otherwise */
-  public boolean isSetNumberToFetch() {
-    return EncodingUtils.testBit(__isset_bitfield, __NUMBERTOFETCH_ISSET_ID);
-  }
-
-  public void setNumberToFetchIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMBERTOFETCH_ISSET_ID, value);
-  }
-
-  /**
-   * If aggregate results is left true then only a single TopFieldDocs
-   * object will be returned from the search method.  It will contain
-   * only the best documents from the given search with all of the
-   * shards being sorted and aggregated together.
-   */
-  public boolean isAggregateResults() {
-    return this.aggregateResults;
-  }
-
-  /**
-   * If aggregate results is left true then only a single TopFieldDocs
-   * object will be returned from the search method.  It will contain
-   * only the best documents from the given search with all of the
-   * shards being sorted and aggregated together.
-   */
-  public QueryArgs setAggregateResults(boolean aggregateResults) {
-    this.aggregateResults = aggregateResults;
-    setAggregateResultsIsSet(true);
-    return this;
-  }
-
-  public void unsetAggregateResults() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AGGREGATERESULTS_ISSET_ID);
-  }
-
-  /** Returns true if field aggregateResults is set (has been assigned a value) and false otherwise */
-  public boolean isSetAggregateResults() {
-    return EncodingUtils.testBit(__isset_bitfield, __AGGREGATERESULTS_ISSET_ID);
-  }
-
-  public void setAggregateResultsIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AGGREGATERESULTS_ISSET_ID, value);
-  }
-
-  /**
-   * NOT YET IMPLEMENTED.
-   */
-  public Sort getSort() {
-    return this.sort;
-  }
-
-  /**
-   * NOT YET IMPLEMENTED.
-   */
-  public QueryArgs setSort(Sort sort) {
-    this.sort = sort;
-    return this;
-  }
-
-  public void unsetSort() {
-    this.sort = null;
-  }
-
-  /** Returns true if field sort is set (has been assigned a value) and false otherwise */
-  public boolean isSetSort() {
-    return this.sort != null;
-  }
-
-  public void setSortIsSet(boolean value) {
-    if (!value) {
-      this.sort = null;
-    }
-  }
-
-  /**
-   * NOT YET IMPLEMENTED.  Related to sort.
-   */
-  public boolean isDoDocScores() {
-    return this.doDocScores;
-  }
-
-  /**
-   * NOT YET IMPLEMENTED.  Related to sort.
-   */
-  public QueryArgs setDoDocScores(boolean doDocScores) {
-    this.doDocScores = doDocScores;
-    setDoDocScoresIsSet(true);
-    return this;
-  }
-
-  public void unsetDoDocScores() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DODOCSCORES_ISSET_ID);
-  }
-
-  /** Returns true if field doDocScores is set (has been assigned a value) and false otherwise */
-  public boolean isSetDoDocScores() {
-    return EncodingUtils.testBit(__isset_bitfield, __DODOCSCORES_ISSET_ID);
-  }
-
-  public void setDoDocScoresIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DODOCSCORES_ISSET_ID, value);
-  }
-
-  /**
-   * Calculate the max score of the search.
-   */
-  public boolean isDoMaxScore() {
-    return this.doMaxScore;
-  }
-
-  /**
-   * Calculate the max score of the search.
-   */
-  public QueryArgs setDoMaxScore(boolean doMaxScore) {
-    this.doMaxScore = doMaxScore;
-    setDoMaxScoreIsSet(true);
-    return this;
-  }
-
-  public void unsetDoMaxScore() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DOMAXSCORE_ISSET_ID);
-  }
-
-  /** Returns true if field doMaxScore is set (has been assigned a value) and false otherwise */
-  public boolean isSetDoMaxScore() {
-    return EncodingUtils.testBit(__isset_bitfield, __DOMAXSCORE_ISSET_ID);
-  }
-
-  public void setDoMaxScoreIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DOMAXSCORE_ISSET_ID, value);
-  }
-
-  public int getShardIndexesSize() {
-    return (this.shardIndexes == null) ? 0 : this.shardIndexes.size();
-  }
-
-  public java.util.Iterator<Integer> getShardIndexesIterator() {
-    return (this.shardIndexes == null) ? null : this.shardIndexes.iterator();
-  }
-
-  public void addToShardIndexes(int elem) {
-    if (this.shardIndexes == null) {
-      this.shardIndexes = new ArrayList<Integer>();
-    }
-    this.shardIndexes.add(elem);
-  }
-
-  /**
-   * Shard indexes allows the user to specify which shards of the table to execute
-   * the query against.  If left null, all the shards of the table are used.
-   */
-  public List<Integer> getShardIndexes() {
-    return this.shardIndexes;
-  }
-
-  /**
-   * Shard indexes allows the user to specify which shards of the table to execute
-   * the query against.  If left null, all the shards of the table are used.
-   */
-  public QueryArgs setShardIndexes(List<Integer> shardIndexes) {
-    this.shardIndexes = shardIndexes;
-    return this;
-  }
-
-  public void unsetShardIndexes() {
-    this.shardIndexes = null;
-  }
-
-  /** Returns true if field shardIndexes is set (has been assigned a value) and false otherwise */
-  public boolean isSetShardIndexes() {
-    return this.shardIndexes != null;
-  }
-
-  public void setShardIndexesIsSet(boolean value) {
-    if (!value) {
-      this.shardIndexes = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case ID:
-      if (value == null) {
-        unsetId();
-      } else {
-        setId((Long)value);
-      }
-      break;
-
-    case AFTER:
-      if (value == null) {
-        unsetAfter();
-      } else {
-        setAfter((ScoreDoc)value);
-      }
-      break;
-
-    case QUERY:
-      if (value == null) {
-        unsetQuery();
-      } else {
-        setQuery((Query)value);
-      }
-      break;
-
-    case FILTER:
-      if (value == null) {
-        unsetFilter();
-      } else {
-        setFilter((ByteBuffer)value);
-      }
-      break;
-
-    case NUMBER_TO_FETCH:
-      if (value == null) {
-        unsetNumberToFetch();
-      } else {
-        setNumberToFetch((Integer)value);
-      }
-      break;
-
-    case AGGREGATE_RESULTS:
-      if (value == null) {
-        unsetAggregateResults();
-      } else {
-        setAggregateResults((Boolean)value);
-      }
-      break;
-
-    case SORT:
-      if (value == null) {
-        unsetSort();
-      } else {
-        setSort((Sort)value);
-      }
-      break;
-
-    case DO_DOC_SCORES:
-      if (value == null) {
-        unsetDoDocScores();
-      } else {
-        setDoDocScores((Boolean)value);
-      }
-      break;
-
-    case DO_MAX_SCORE:
-      if (value == null) {
-        unsetDoMaxScore();
-      } else {
-        setDoMaxScore((Boolean)value);
-      }
-      break;
-
-    case SHARD_INDEXES:
-      if (value == null) {
-        unsetShardIndexes();
-      } else {
-        setShardIndexes((List<Integer>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case ID:
-      return Long.valueOf(getId());
-
-    case AFTER:
-      return getAfter();
-
-    case QUERY:
-      return getQuery();
-
-    case FILTER:
-      return getFilter();
-
-    case NUMBER_TO_FETCH:
-      return Integer.valueOf(getNumberToFetch());
-
-    case AGGREGATE_RESULTS:
-      return Boolean.valueOf(isAggregateResults());
-
-    case SORT:
-      return getSort();
-
-    case DO_DOC_SCORES:
-      return Boolean.valueOf(isDoDocScores());
-
-    case DO_MAX_SCORE:
-      return Boolean.valueOf(isDoMaxScore());
-
-    case SHARD_INDEXES:
-      return getShardIndexes();
-
-    }
-    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 ID:
-      return isSetId();
-    case AFTER:
-      return isSetAfter();
-    case QUERY:
-      return isSetQuery();
-    case FILTER:
-      return isSetFilter();
-    case NUMBER_TO_FETCH:
-      return isSetNumberToFetch();
-    case AGGREGATE_RESULTS:
-      return isSetAggregateResults();
-    case SORT:
-      return isSetSort();
-    case DO_DOC_SCORES:
-      return isSetDoDocScores();
-    case DO_MAX_SCORE:
-      return isSetDoMaxScore();
-    case SHARD_INDEXES:
-      return isSetShardIndexes();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof QueryArgs)
-      return this.equals((QueryArgs)that);
-    return false;
-  }
-
-  public boolean equals(QueryArgs that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_id = true;
-    boolean that_present_id = true;
-    if (this_present_id || that_present_id) {
-      if (!(this_present_id && that_present_id))
-        return false;
-      if (this.id != that.id)
-        return false;
-    }
-
-    boolean this_present_after = true && this.isSetAfter();
-    boolean that_present_after = true && that.isSetAfter();
-    if (this_present_after || that_present_after) {
-      if (!(this_present_after && that_present_after))
-        return false;
-      if (!this.after.equals(that.after))
-        return false;
-    }
-
-    boolean this_present_query = true && this.isSetQuery();
-    boolean that_present_query = true && that.isSetQuery();
-    if (this_present_query || that_present_query) {
-      if (!(this_present_query && that_present_query))
-        return false;
-      if (!this.query.equals(that.query))
-        return false;
-    }
-
-    boolean this_present_filter = true && this.isSetFilter();
-    boolean that_present_filter = true && that.isSetFilter();
-    if (this_present_filter || that_present_filter) {
-      if (!(this_present_filter && that_present_filter))
-        return false;
-      if (!this.filter.equals(that.filter))
-        return false;
-    }
-
-    boolean this_present_numberToFetch = true;
-    boolean that_present_numberToFetch = true;
-    if (this_present_numberToFetch || that_present_numberToFetch) {
-      if (!(this_present_numberToFetch && that_present_numberToFetch))
-        return false;
-      if (this.numberToFetch != that.numberToFetch)
-        return false;
-    }
-
-    boolean this_present_aggregateResults = true;
-    boolean that_present_aggregateResults = true;
-    if (this_present_aggregateResults || that_present_aggregateResults) {
-      if (!(this_present_aggregateResults && that_present_aggregateResults))
-        return false;
-      if (this.aggregateResults != that.aggregateResults)
-        return false;
-    }
-
-    boolean this_present_sort = true && this.isSetSort();
-    boolean that_present_sort = true && that.isSetSort();
-    if (this_present_sort || that_present_sort) {
-      if (!(this_present_sort && that_present_sort))
-        return false;
-      if (!this.sort.equals(that.sort))
-        return false;
-    }
-
-    boolean this_present_doDocScores = true;
-    boolean that_present_doDocScores = true;
-    if (this_present_doDocScores || that_present_doDocScores) {
-      if (!(this_present_doDocScores && that_present_doDocScores))
-        return false;
-      if (this.doDocScores != that.doDocScores)
-        return false;
-    }
-
-    boolean this_present_doMaxScore = true;
-    boolean that_present_doMaxScore = true;
-    if (this_present_doMaxScore || that_present_doMaxScore) {
-      if (!(this_present_doMaxScore && that_present_doMaxScore))
-        return false;
-      if (this.doMaxScore != that.doMaxScore)
-        return false;
-    }
-
-    boolean this_present_shardIndexes = true && this.isSetShardIndexes();
-    boolean that_present_shardIndexes = true && that.isSetShardIndexes();
-    if (this_present_shardIndexes || that_present_shardIndexes) {
-      if (!(this_present_shardIndexes && that_present_shardIndexes))
-        return false;
-      if (!this.shardIndexes.equals(that.shardIndexes))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(QueryArgs other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    QueryArgs typedOther = (QueryArgs)other;
-
-    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetId()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAfter()).compareTo(typedOther.isSetAfter());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAfter()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.after, typedOther.after);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetQuery()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetFilter()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetNumberToFetch()).compareTo(typedOther.isSetNumberToFetch());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetNumberToFetch()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberToFetch, typedOther.numberToFetch);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAggregateResults()).compareTo(typedOther.isSetAggregateResults());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAggregateResults()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aggregateResults, typedOther.aggregateResults);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetSort()).compareTo(typedOther.isSetSort());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetSort()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sort, typedOther.sort);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetDoDocScores()).compareTo(typedOther.isSetDoDocScores());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetDoDocScores()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doDocScores, typedOther.doDocScores);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetDoMaxScore()).compareTo(typedOther.isSetDoMaxScore());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetDoMaxScore()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doMaxScore, typedOther.doMaxScore);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetShardIndexes()).compareTo(typedOther.isSetShardIndexes());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetShardIndexes()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shardIndexes, typedOther.shardIndexes);
-      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("QueryArgs(");
-    boolean first = true;
-
-    sb.append("id:");
-    sb.append(this.id);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("after:");
-    if (this.after == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.after);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("query:");
-    if (this.query == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.query);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("filter:");
-    if (this.filter == null) {
-      sb.append("null");
-    } else {
-      org.apache.thrift.TBaseHelper.toString(this.filter, sb);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("numberToFetch:");
-    sb.append(this.numberToFetch);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("aggregateResults:");
-    sb.append(this.aggregateResults);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("sort:");
-    if (this.sort == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.sort);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("doDocScores:");
-    sb.append(this.doDocScores);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("doMaxScore:");
-    sb.append(this.doMaxScore);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("shardIndexes:");
-    if (this.shardIndexes == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.shardIndexes);
-    }
-    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 (after != null) {
-      after.validate();
-    }
-    if (query != null) {
-      query.validate();
-    }
-    if (sort != null) {
-      sort.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 {
-      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-      __isset_bitfield = 0;
-      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 QueryArgsStandardSchemeFactory implements SchemeFactory {
-    public QueryArgsStandardScheme getScheme() {
-      return new QueryArgsStandardScheme();
-    }
-  }
-
-  private static class QueryArgsStandardScheme extends StandardScheme<QueryArgs> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, QueryArgs 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: // ID
-            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
-              struct.id = iprot.readI64();
-              struct.setIdIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // AFTER
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.after = new ScoreDoc();
-              struct.after.read(iprot);
-              struct.setAfterIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // QUERY
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.query = new Query();
-              struct.query.read(iprot);
-              struct.setQueryIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // FILTER
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.filter = iprot.readBinary();
-              struct.setFilterIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // NUMBER_TO_FETCH
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.numberToFetch = iprot.readI32();
-              struct.setNumberToFetchIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 6: // AGGREGATE_RESULTS
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.aggregateResults = iprot.readBool();
-              struct.setAggregateResultsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 7: // SORT
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.sort = new Sort();
-              struct.sort.read(iprot);
-              struct.setSortIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 8: // DO_DOC_SCORES
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.doDocScores = iprot.readBool();
-              struct.setDoDocScoresIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 9: // DO_MAX_SCORE
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.doMaxScore = iprot.readBool();
-              struct.setDoMaxScoreIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 10: // SHARD_INDEXES
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
-                struct.shardIndexes = new ArrayList<Integer>(_list80.size);
-                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
-                {
-                  int _elem82; // required
-                  _elem82 = iprot.readI32();
-                  struct.shardIndexes.add(_elem82);
-                }
-                iprot.readListEnd();
-              }
-              struct.setShardIndexesIsSet(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, QueryArgs struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(ID_FIELD_DESC);
-      oprot.writeI64(struct.id);
-      oprot.writeFieldEnd();
-      if (struct.after != null) {
-        oprot.writeFieldBegin(AFTER_FIELD_DESC);
-        struct.after.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      if (struct.query != null) {
-        oprot.writeFieldBegin(QUERY_FIELD_DESC);
-        struct.query.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      if (struct.filter != null) {
-        oprot.writeFieldBegin(FILTER_FIELD_DESC);
-        oprot.writeBinary(struct.filter);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(NUMBER_TO_FETCH_FIELD_DESC);
-      oprot.writeI32(struct.numberToFetch);
-      oprot.writeFieldEnd();
-      oprot.writeFieldBegin(AGGREGATE_RESULTS_FIELD_DESC);
-      oprot.writeBool(struct.aggregateResults);
-      oprot.writeFieldEnd();
-      if (struct.sort != null) {
-        oprot.writeFieldBegin(SORT_FIELD_DESC);
-        struct.sort.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(DO_DOC_SCORES_FIELD_DESC);
-      oprot.writeBool(struct.doDocScores);
-      oprot.writeFieldEnd();
-      oprot.writeFieldBegin(DO_MAX_SCORE_FIELD_DESC);
-      oprot.writeBool(struct.doMaxScore);
-      oprot.writeFieldEnd();
-      if (struct.shardIndexes != null) {
-        oprot.writeFieldBegin(SHARD_INDEXES_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.shardIndexes.size()));
-          for (int _iter83 : struct.shardIndexes)
-          {
-            oprot.writeI32(_iter83);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class QueryArgsTupleSchemeFactory implements SchemeFactory {
-    public QueryArgsTupleScheme getScheme() {
-      return new QueryArgsTupleScheme();
-    }
-  }
-
-  private static class QueryArgsTupleScheme extends TupleScheme<QueryArgs> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, QueryArgs struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetId()) {
-        optionals.set(0);
-      }
-      if (struct.isSetAfter()) {
-        optionals.set(1);
-      }
-      if (struct.isSetQuery()) {
-        optionals.set(2);
-      }
-      if (struct.isSetFilter()) {
-        optionals.set(3);
-      }
-      if (struct.isSetNumberToFetch()) {
-        optionals.set(4);
-      }
-      if (struct.isSetAggregateResults()) {
-        optionals.set(5);
-      }
-      if (struct.isSetSort()) {
-        optionals.set(6);
-      }
-      if (struct.isSetDoDocScores()) {
-        optionals.set(7);
-      }
-      if (struct.isSetDoMaxScore()) {
-        optionals.set(8);
-      }
-      if (struct.isSetShardIndexes()) {
-        optionals.set(9);
-      }
-      oprot.writeBitSet(optionals, 10);
-      if (struct.isSetId()) {
-        oprot.writeI64(struct.id);
-      }
-      if (struct.isSetAfter()) {
-        struct.after.write(oprot);
-      }
-      if (struct.isSetQuery()) {
-        struct.query.write(oprot);
-      }
-      if (struct.isSetFilter()) {
-        oprot.writeBinary(struct.filter);
-      }
-      if (struct.isSetNumberToFetch()) {
-        oprot.writeI32(struct.numberToFetch);
-      }
-      if (struct.isSetAggregateResults()) {
-        oprot.writeBool(struct.aggregateResults);
-      }
-      if (struct.isSetSort()) {
-        struct.sort.write(oprot);
-      }
-      if (struct.isSetDoDocScores()) {
-        oprot.writeBool(struct.doDocScores);
-      }
-      if (struct.isSetDoMaxScore()) {
-        oprot.writeBool(struct.doMaxScore);
-      }
-      if (struct.isSetShardIndexes()) {
-        {
-          oprot.writeI32(struct.shardIndexes.size());
-          for (int _iter84 : struct.shardIndexes)
-          {
-            oprot.writeI32(_iter84);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, QueryArgs struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(10);
-      if (incoming.get(0)) {
-        struct.id = iprot.readI64();
-        struct.setIdIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.after = new ScoreDoc();
-        struct.after.read(iprot);
-        struct.setAfterIsSet(true);
-      }
-      if (incoming.get(2)) {
-        struct.query = new Query();
-        struct.query.read(iprot);
-        struct.setQueryIsSet(true);
-      }
-      if (incoming.get(3)) {
-        struct.filter = iprot.readBinary();
-        struct.setFilterIsSet(true);
-      }
-      if (incoming.get(4)) {
-        struct.numberToFetch = iprot.readI32();
-        struct.setNumberToFetchIsSet(true);
-      }
-      if (incoming.get(5)) {
-        struct.aggregateResults = iprot.readBool();
-        struct.setAggregateResultsIsSet(true);
-      }
-      if (incoming.get(6)) {
-        struct.sort = new Sort();
-        struct.sort.read(iprot);
-        struct.setSortIsSet(true);
-      }
-      if (incoming.get(7)) {
-        struct.doDocScores = iprot.readBool();
-        struct.setDoDocScoresIsSet(true);
-      }
-      if (incoming.get(8)) {
-        struct.doMaxScore = iprot.readBool();
-        struct.setDoMaxScoreIsSet(true);
-      }
-      if (incoming.get(9)) {
-        {
-          org.apache.thrift.protocol.TList _list85 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
-          struct.shardIndexes = new ArrayList<Integer>(_list85.size);
-          for (int _i86 = 0; _i86 < _list85.size; ++_i86)
-          {
-            int _elem87; // required
-            _elem87 = iprot.readI32();
-            struct.shardIndexes.add(_elem87);
-          }
-        }
-        struct.setShardIndexesIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/70b69ecb/interface/gen-java/org/apache/blur/thrift/generated/QueryState.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/QueryState.java b/interface/gen-java/org/apache/blur/thrift/generated/QueryState.java
deleted file mode 100644
index 8e1dc2b..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/QueryState.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * 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 java.util.Map;
-import java.util.HashMap;
-import org.apache.thrift.TEnum;
-
-/**
- * The state of a query.<br/><br/>
- * RUNNING - Query is running.<br/><br/>
- * INTERRUPTED - Query has been interrupted.<br/><br/>
- * COMPLETE - Query is complete.<br/>
- */
-public enum QueryState implements org.apache.thrift.TEnum {
-  RUNNING(0),
-  INTERRUPTED(1),
-  COMPLETE(2);
-
-  private final int value;
-
-  private QueryState(int value) {
-    this.value = value;
-  }
-
-  /**
-   * Get the integer value of this enum value, as defined in the Thrift IDL.
-   */
-  public int getValue() {
-    return value;
-  }
-
-  /**
-   * Find a the enum type by its integer value, as defined in the Thrift IDL.
-   * @return null if the value is not found.
-   */
-  public static QueryState findByValue(int value) { 
-    switch (value) {
-      case 0:
-        return RUNNING;
-      case 1:
-        return INTERRUPTED;
-      case 2:
-        return COMPLETE;
-      default:
-        return null;
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/70b69ecb/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java b/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java
deleted file mode 100644
index 8c39037..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java
+++ /dev/null
@@ -1,821 +0,0 @@
-/**
- * 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 QueryStatus implements org.apache.thrift.TBase<QueryStatus, QueryStatus._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("QueryStatus");
-
-  private static final org.apache.thrift.protocol.TField CPU_TIMES_FIELD_DESC = new org.apache.thrift.protocol.TField("cpuTimes", org.apache.thrift.protocol.TType.MAP, (short)1);
-  private static final org.apache.thrift.protocol.TField COMPLETE_SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("completeShards", org.apache.thrift.protocol.TType.I32, (short)2);
-  private static final org.apache.thrift.protocol.TField TOTAL_SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalShards", org.apache.thrift.protocol.TType.I32, (short)3);
-  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)4);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new QueryStatusStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new QueryStatusTupleSchemeFactory());
-  }
-
-  /**
-   * 
-   */
-  public Map<String,CpuTime> cpuTimes; // required
-  /**
-   * 
-   */
-  public int completeShards; // required
-  /**
-   * 
-   */
-  public int totalShards; // required
-  /**
-   * 
-   * 
-   * @see QueryState
-   */
-  public QueryState state; // 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 {
-    /**
-     * 
-     */
-    CPU_TIMES((short)1, "cpuTimes"),
-    /**
-     * 
-     */
-    COMPLETE_SHARDS((short)2, "completeShards"),
-    /**
-     * 
-     */
-    TOTAL_SHARDS((short)3, "totalShards"),
-    /**
-     * 
-     * 
-     * @see QueryState
-     */
-    STATE((short)4, "state");
-
-    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: // CPU_TIMES
-          return CPU_TIMES;
-        case 2: // COMPLETE_SHARDS
-          return COMPLETE_SHARDS;
-        case 3: // TOTAL_SHARDS
-          return TOTAL_SHARDS;
-        case 4: // STATE
-          return STATE;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  private static final int __COMPLETESHARDS_ISSET_ID = 0;
-  private static final int __TOTALSHARDS_ISSET_ID = 1;
-  private byte __isset_bitfield = 0;
-  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.CPU_TIMES, new org.apache.thrift.meta_data.FieldMetaData("cpuTimes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CpuTime.class))));
-    tmpMap.put(_Fields.COMPLETE_SHARDS, new org.apache.thrift.meta_data.FieldMetaData("completeShards", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.TOTAL_SHARDS, new org.apache.thrift.meta_data.FieldMetaData("totalShards", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, QueryState.class)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(QueryStatus.class, metaDataMap);
-  }
-
-  public QueryStatus() {
-  }
-
-  public QueryStatus(
-    Map<String,CpuTime> cpuTimes,
-    int completeShards,
-    int totalShards,
-    QueryState state)
-  {
-    this();
-    this.cpuTimes = cpuTimes;
-    this.completeShards = completeShards;
-    setCompleteShardsIsSet(true);
-    this.totalShards = totalShards;
-    setTotalShardsIsSet(true);
-    this.state = state;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public QueryStatus(QueryStatus other) {
-    __isset_bitfield = other.__isset_bitfield;
-    if (other.isSetCpuTimes()) {
-      Map<String,CpuTime> __this__cpuTimes = new HashMap<String,CpuTime>();
-      for (Map.Entry<String, CpuTime> other_element : other.cpuTimes.entrySet()) {
-
-        String other_element_key = other_element.getKey();
-        CpuTime other_element_value = other_element.getValue();
-
-        String __this__cpuTimes_copy_key = other_element_key;
-
-        CpuTime __this__cpuTimes_copy_value = new CpuTime(other_element_value);
-
-        __this__cpuTimes.put(__this__cpuTimes_copy_key, __this__cpuTimes_copy_value);
-      }
-      this.cpuTimes = __this__cpuTimes;
-    }
-    this.completeShards = other.completeShards;
-    this.totalShards = other.totalShards;
-    if (other.isSetState()) {
-      this.state = other.state;
-    }
-  }
-
-  public QueryStatus deepCopy() {
-    return new QueryStatus(this);
-  }
-
-  @Override
-  public void clear() {
-    this.cpuTimes = null;
-    setCompleteShardsIsSet(false);
-    this.completeShards = 0;
-    setTotalShardsIsSet(false);
-    this.totalShards = 0;
-    this.state = null;
-  }
-
-  public int getCpuTimesSize() {
-    return (this.cpuTimes == null) ? 0 : this.cpuTimes.size();
-  }
-
-  public void putToCpuTimes(String key, CpuTime val) {
-    if (this.cpuTimes == null) {
-      this.cpuTimes = new HashMap<String,CpuTime>();
-    }
-    this.cpuTimes.put(key, val);
-  }
-
-  /**
-   * 
-   */
-  public Map<String,CpuTime> getCpuTimes() {
-    return this.cpuTimes;
-  }
-
-  /**
-   * 
-   */
-  public QueryStatus setCpuTimes(Map<String,CpuTime> cpuTimes) {
-    this.cpuTimes = cpuTimes;
-    return this;
-  }
-
-  public void unsetCpuTimes() {
-    this.cpuTimes = null;
-  }
-
-  /** Returns true if field cpuTimes is set (has been assigned a value) and false otherwise */
-  public boolean isSetCpuTimes() {
-    return this.cpuTimes != null;
-  }
-
-  public void setCpuTimesIsSet(boolean value) {
-    if (!value) {
-      this.cpuTimes = null;
-    }
-  }
-
-  /**
-   * 
-   */
-  public int getCompleteShards() {
-    return this.completeShards;
-  }
-
-  /**
-   * 
-   */
-  public QueryStatus setCompleteShards(int completeShards) {
-    this.completeShards = completeShards;
-    setCompleteShardsIsSet(true);
-    return this;
-  }
-
-  public void unsetCompleteShards() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COMPLETESHARDS_ISSET_ID);
-  }
-
-  /** Returns true if field completeShards is set (has been assigned a value) and false otherwise */
-  public boolean isSetCompleteShards() {
-    return EncodingUtils.testBit(__isset_bitfield, __COMPLETESHARDS_ISSET_ID);
-  }
-
-  public void setCompleteShardsIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COMPLETESHARDS_ISSET_ID, value);
-  }
-
-  /**
-   * 
-   */
-  public int getTotalShards() {
-    return this.totalShards;
-  }
-
-  /**
-   * 
-   */
-  public QueryStatus setTotalShards(int totalShards) {
-    this.totalShards = totalShards;
-    setTotalShardsIsSet(true);
-    return this;
-  }
-
-  public void unsetTotalShards() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTALSHARDS_ISSET_ID);
-  }
-
-  /** Returns true if field totalShards is set (has been assigned a value) and false otherwise */
-  public boolean isSetTotalShards() {
-    return EncodingUtils.testBit(__isset_bitfield, __TOTALSHARDS_ISSET_ID);
-  }
-
-  public void setTotalShardsIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTALSHARDS_ISSET_ID, value);
-  }
-
-  /**
-   * 
-   * 
-   * @see QueryState
-   */
-  public QueryState getState() {
-    return this.state;
-  }
-
-  /**
-   * 
-   * 
-   * @see QueryState
-   */
-  public QueryStatus setState(QueryState state) {
-    this.state = state;
-    return this;
-  }
-
-  public void unsetState() {
-    this.state = null;
-  }
-
-  /** Returns true if field state is set (has been assigned a value) and false otherwise */
-  public boolean isSetState() {
-    return this.state != null;
-  }
-
-  public void setStateIsSet(boolean value) {
-    if (!value) {
-      this.state = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case CPU_TIMES:
-      if (value == null) {
-        unsetCpuTimes();
-      } else {
-        setCpuTimes((Map<String,CpuTime>)value);
-      }
-      break;
-
-    case COMPLETE_SHARDS:
-      if (value == null) {
-        unsetCompleteShards();
-      } else {
-        setCompleteShards((Integer)value);
-      }
-      break;
-
-    case TOTAL_SHARDS:
-      if (value == null) {
-        unsetTotalShards();
-      } else {
-        setTotalShards((Integer)value);
-      }
-      break;
-
-    case STATE:
-      if (value == null) {
-        unsetState();
-      } else {
-        setState((QueryState)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case CPU_TIMES:
-      return getCpuTimes();
-
-    case COMPLETE_SHARDS:
-      return Integer.valueOf(getCompleteShards());
-
-    case TOTAL_SHARDS:
-      return Integer.valueOf(getTotalShards());
-
-    case STATE:
-      return getState();
-
-    }
-    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 CPU_TIMES:
-      return isSetCpuTimes();
-    case COMPLETE_SHARDS:
-      return isSetCompleteShards();
-    case TOTAL_SHARDS:
-      return isSetTotalShards();
-    case STATE:
-      return isSetState();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof QueryStatus)
-      return this.equals((QueryStatus)that);
-    return false;
-  }
-
-  public boolean equals(QueryStatus that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_cpuTimes = true && this.isSetCpuTimes();
-    boolean that_present_cpuTimes = true && that.isSetCpuTimes();
-    if (this_present_cpuTimes || that_present_cpuTimes) {
-      if (!(this_present_cpuTimes && that_present_cpuTimes))
-        return false;
-      if (!this.cpuTimes.equals(that.cpuTimes))
-        return false;
-    }
-
-    boolean this_present_completeShards = true;
-    boolean that_present_completeShards = true;
-    if (this_present_completeShards || that_present_completeShards) {
-      if (!(this_present_completeShards && that_present_completeShards))
-        return false;
-      if (this.completeShards != that.completeShards)
-        return false;
-    }
-
-    boolean this_present_totalShards = true;
-    boolean that_present_totalShards = true;
-    if (this_present_totalShards || that_present_totalShards) {
-      if (!(this_present_totalShards && that_present_totalShards))
-        return false;
-      if (this.totalShards != that.totalShards)
-        return false;
-    }
-
-    boolean this_present_state = true && this.isSetState();
-    boolean that_present_state = true && that.isSetState();
-    if (this_present_state || that_present_state) {
-      if (!(this_present_state && that_present_state))
-        return false;
-      if (!this.state.equals(that.state))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(QueryStatus other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    QueryStatus typedOther = (QueryStatus)other;
-
-    lastComparison = Boolean.valueOf(isSetCpuTimes()).compareTo(typedOther.isSetCpuTimes());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetCpuTimes()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpuTimes, typedOther.cpuTimes);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetCompleteShards()).compareTo(typedOther.isSetCompleteShards());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetCompleteShards()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.completeShards, typedOther.completeShards);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetTotalShards()).compareTo(typedOther.isSetTotalShards());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTotalShards()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalShards, typedOther.totalShards);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetState()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
-      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("QueryStatus(");
-    boolean first = true;
-
-    sb.append("cpuTimes:");
-    if (this.cpuTimes == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.cpuTimes);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("completeShards:");
-    sb.append(this.completeShards);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("totalShards:");
-    sb.append(this.totalShards);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("state:");
-    if (this.state == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.state);
-    }
-    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 {
-      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-      __isset_bitfield = 0;
-      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 QueryStatusStandardSchemeFactory implements SchemeFactory {
-    public QueryStatusStandardScheme getScheme() {
-      return new QueryStatusStandardScheme();
-    }
-  }
-
-  private static class QueryStatusStandardScheme extends StandardScheme<QueryStatus> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, QueryStatus 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: // CPU_TIMES
-            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
-              {
-                org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
-                struct.cpuTimes = new HashMap<String,CpuTime>(2*_map0.size);
-                for (int _i1 = 0; _i1 < _map0.size; ++_i1)
-                {
-                  String _key2; // required
-                  CpuTime _val3; // optional
-                  _key2 = iprot.readString();
-                  _val3 = new CpuTime();
-                  _val3.read(iprot);
-                  struct.cpuTimes.put(_key2, _val3);
-                }
-                iprot.readMapEnd();
-              }
-              struct.setCpuTimesIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // COMPLETE_SHARDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.completeShards = iprot.readI32();
-              struct.setCompleteShardsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // TOTAL_SHARDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.totalShards = iprot.readI32();
-              struct.setTotalShardsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // STATE
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.state = QueryState.findByValue(iprot.readI32());
-              struct.setStateIsSet(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, QueryStatus struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.cpuTimes != null) {
-        oprot.writeFieldBegin(CPU_TIMES_FIELD_DESC);
-        {
-          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.cpuTimes.size()));
-          for (Map.Entry<String, CpuTime> _iter4 : struct.cpuTimes.entrySet())
-          {
-            oprot.writeString(_iter4.getKey());
-            _iter4.getValue().write(oprot);
-          }
-          oprot.writeMapEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(COMPLETE_SHARDS_FIELD_DESC);
-      oprot.writeI32(struct.completeShards);
-      oprot.writeFieldEnd();
-      oprot.writeFieldBegin(TOTAL_SHARDS_FIELD_DESC);
-      oprot.writeI32(struct.totalShards);
-      oprot.writeFieldEnd();
-      if (struct.state != null) {
-        oprot.writeFieldBegin(STATE_FIELD_DESC);
-        oprot.writeI32(struct.state.getValue());
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class QueryStatusTupleSchemeFactory implements SchemeFactory {
-    public QueryStatusTupleScheme getScheme() {
-      return new QueryStatusTupleScheme();
-    }
-  }
-
-  private static class QueryStatusTupleScheme extends TupleScheme<QueryStatus> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, QueryStatus struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetCpuTimes()) {
-        optionals.set(0);
-      }
-      if (struct.isSetCompleteShards()) {
-        optionals.set(1);
-      }
-      if (struct.isSetTotalShards()) {
-        optionals.set(2);
-      }
-      if (struct.isSetState()) {
-        optionals.set(3);
-      }
-      oprot.writeBitSet(optionals, 4);
-      if (struct.isSetCpuTimes()) {
-        {
-          oprot.writeI32(struct.cpuTimes.size());
-          for (Map.Entry<String, CpuTime> _iter5 : struct.cpuTimes.entrySet())
-          {
-            oprot.writeString(_iter5.getKey());
-            _iter5.getValue().write(oprot);
-          }
-        }
-      }
-      if (struct.isSetCompleteShards()) {
-        oprot.writeI32(struct.completeShards);
-      }
-      if (struct.isSetTotalShards()) {
-        oprot.writeI32(struct.totalShards);
-      }
-      if (struct.isSetState()) {
-        oprot.writeI32(struct.state.getValue());
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, QueryStatus struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(4);
-      if (incoming.get(0)) {
-        {
-          org.apache.thrift.protocol.TMap _map6 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.cpuTimes = new HashMap<String,CpuTime>(2*_map6.size);
-          for (int _i7 = 0; _i7 < _map6.size; ++_i7)
-          {
-            String _key8; // required
-            CpuTime _val9; // optional
-            _key8 = iprot.readString();
-            _val9 = new CpuTime();
-            _val9.read(iprot);
-            struct.cpuTimes.put(_key8, _val9);
-          }
-        }
-        struct.setCpuTimesIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.completeShards = iprot.readI32();
-        struct.setCompleteShardsIsSet(true);
-      }
-      if (incoming.get(2)) {
-        struct.totalShards = iprot.readI32();
-        struct.setTotalShardsIsSet(true);
-      }
-      if (incoming.get(3)) {
-        struct.state = QueryState.findByValue(iprot.readI32());
-        struct.setStateIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/70b69ecb/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java b/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java
deleted file mode 100644
index c8c83fe..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * 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 java.util.Map;
-import java.util.HashMap;
-import org.apache.thrift.TEnum;
-
-public enum QueryType implements org.apache.thrift.TEnum {
-  STRING(0),
-  JSON(1),
-  BINARY(2);
-
-  private final int value;
-
-  private QueryType(int value) {
-    this.value = value;
-  }
-
-  /**
-   * Get the integer value of this enum value, as defined in the Thrift IDL.
-   */
-  public int getValue() {
-    return value;
-  }
-
-  /**
-   * Find a the enum type by its integer value, as defined in the Thrift IDL.
-   * @return null if the value is not found.
-   */
-  public static QueryType findByValue(int value) { 
-    switch (value) {
-      case 0:
-        return STRING;
-      case 1:
-        return JSON;
-      case 2:
-        return BINARY;
-      default:
-        return null;
-    }
-  }
-}


Mime
View raw message