incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [21/39] Massive changes to the thrift RPC defs, see mail list for details subject (Rows, Records, Session oh my).
Date Thu, 28 Feb 2013 03:07:38 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/11f5141c/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java
new file mode 100644
index 0000000..c36099c
--- /dev/null
+++ b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryStatus.java
@@ -0,0 +1,1185 @@
+/**
+ * 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;
+
+/**
+ * Contains the query status information for a query on a server.
+ */
+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 START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startTime", org.apache.thrift.protocol.TType.I64, (short)1);
+  private static final org.apache.thrift.protocol.TField END_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endTime", org.apache.thrift.protocol.TType.I64, (short)2);
+  private static final org.apache.thrift.protocol.TField CPU_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("cpuTime", org.apache.thrift.protocol.TType.I64, (short)3);
+  private static final org.apache.thrift.protocol.TField USER_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("userTime", org.apache.thrift.protocol.TType.I64, (short)4);
+  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)5);
+  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)6);
+  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)7);
+  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)8);
+
+  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());
+  }
+
+  /**
+   * The startTime as set on the server, this is when the query has started executing.  This could be different depending on the server.
+   */
+  public long startTime; // required
+  /**
+   * The endTime as set on the server, this is when the query has stopped executing.  This could be different depending on the server.
+   */
+  public long endTime; // required
+  /**
+   * The amount cpu time spent executing the given query.
+   */
+  public long cpuTime; // required
+  /**
+   * The total amount of time spent executing the query.
+   */
+  public long userTime; // required
+  /**
+   * The number of shards that this server has completed.
+   */
+  public int completeShards; // required
+  /**
+   * The number of shards that this server has to complete.
+   */
+  public int totalShards; // required
+  /**
+   * The state of the query.  This could be different depending on the server.
+   * 
+   * @see QueryState
+   */
+  public QueryState state; // required
+  /**
+   * The query that is executing.
+   */
+  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 {
+    /**
+     * The startTime as set on the server, this is when the query has started executing.  This could be different depending on the server.
+     */
+    START_TIME((short)1, "startTime"),
+    /**
+     * The endTime as set on the server, this is when the query has stopped executing.  This could be different depending on the server.
+     */
+    END_TIME((short)2, "endTime"),
+    /**
+     * The amount cpu time spent executing the given query.
+     */
+    CPU_TIME((short)3, "cpuTime"),
+    /**
+     * The total amount of time spent executing the query.
+     */
+    USER_TIME((short)4, "userTime"),
+    /**
+     * The number of shards that this server has completed.
+     */
+    COMPLETE_SHARDS((short)5, "completeShards"),
+    /**
+     * The number of shards that this server has to complete.
+     */
+    TOTAL_SHARDS((short)6, "totalShards"),
+    /**
+     * The state of the query.  This could be different depending on the server.
+     * 
+     * @see QueryState
+     */
+    STATE((short)7, "state"),
+    /**
+     * The query that is executing.
+     */
+    QUERY_ARGS((short)8, "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: // START_TIME
+          return START_TIME;
+        case 2: // END_TIME
+          return END_TIME;
+        case 3: // CPU_TIME
+          return CPU_TIME;
+        case 4: // USER_TIME
+          return USER_TIME;
+        case 5: // COMPLETE_SHARDS
+          return COMPLETE_SHARDS;
+        case 6: // TOTAL_SHARDS
+          return TOTAL_SHARDS;
+        case 7: // STATE
+          return STATE;
+        case 8: // 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
+  private static final int __STARTTIME_ISSET_ID = 0;
+  private static final int __ENDTIME_ISSET_ID = 1;
+  private static final int __CPUTIME_ISSET_ID = 2;
+  private static final int __USERTIME_ISSET_ID = 3;
+  private static final int __COMPLETESHARDS_ISSET_ID = 4;
+  private static final int __TOTALSHARDS_ISSET_ID = 5;
+  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.START_TIME, new org.apache.thrift.meta_data.FieldMetaData("startTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    tmpMap.put(_Fields.END_TIME, new org.apache.thrift.meta_data.FieldMetaData("endTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    tmpMap.put(_Fields.CPU_TIME, new org.apache.thrift.meta_data.FieldMetaData("cpuTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    tmpMap.put(_Fields.USER_TIME, new org.apache.thrift.meta_data.FieldMetaData("userTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    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)));
+    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(QueryStatus.class, metaDataMap);
+  }
+
+  public QueryStatus() {
+  }
+
+  public QueryStatus(
+    long startTime,
+    long endTime,
+    long cpuTime,
+    long userTime,
+    int completeShards,
+    int totalShards,
+    QueryState state,
+    QueryArgs queryArgs)
+  {
+    this();
+    this.startTime = startTime;
+    setStartTimeIsSet(true);
+    this.endTime = endTime;
+    setEndTimeIsSet(true);
+    this.cpuTime = cpuTime;
+    setCpuTimeIsSet(true);
+    this.userTime = userTime;
+    setUserTimeIsSet(true);
+    this.completeShards = completeShards;
+    setCompleteShardsIsSet(true);
+    this.totalShards = totalShards;
+    setTotalShardsIsSet(true);
+    this.state = state;
+    this.queryArgs = queryArgs;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public QueryStatus(QueryStatus other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.startTime = other.startTime;
+    this.endTime = other.endTime;
+    this.cpuTime = other.cpuTime;
+    this.userTime = other.userTime;
+    this.completeShards = other.completeShards;
+    this.totalShards = other.totalShards;
+    if (other.isSetState()) {
+      this.state = other.state;
+    }
+    if (other.isSetQueryArgs()) {
+      this.queryArgs = new QueryArgs(other.queryArgs);
+    }
+  }
+
+  public QueryStatus deepCopy() {
+    return new QueryStatus(this);
+  }
+
+  @Override
+  public void clear() {
+    setStartTimeIsSet(false);
+    this.startTime = 0;
+    setEndTimeIsSet(false);
+    this.endTime = 0;
+    setCpuTimeIsSet(false);
+    this.cpuTime = 0;
+    setUserTimeIsSet(false);
+    this.userTime = 0;
+    setCompleteShardsIsSet(false);
+    this.completeShards = 0;
+    setTotalShardsIsSet(false);
+    this.totalShards = 0;
+    this.state = null;
+    this.queryArgs = null;
+  }
+
+  /**
+   * The startTime as set on the server, this is when the query has started executing.  This could be different depending on the server.
+   */
+  public long getStartTime() {
+    return this.startTime;
+  }
+
+  /**
+   * The startTime as set on the server, this is when the query has started executing.  This could be different depending on the server.
+   */
+  public QueryStatus setStartTime(long startTime) {
+    this.startTime = startTime;
+    setStartTimeIsSet(true);
+    return this;
+  }
+
+  public void unsetStartTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTTIME_ISSET_ID);
+  }
+
+  /** Returns true if field startTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetStartTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);
+  }
+
+  public void setStartTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTTIME_ISSET_ID, value);
+  }
+
+  /**
+   * The endTime as set on the server, this is when the query has stopped executing.  This could be different depending on the server.
+   */
+  public long getEndTime() {
+    return this.endTime;
+  }
+
+  /**
+   * The endTime as set on the server, this is when the query has stopped executing.  This could be different depending on the server.
+   */
+  public QueryStatus setEndTime(long endTime) {
+    this.endTime = endTime;
+    setEndTimeIsSet(true);
+    return this;
+  }
+
+  public void unsetEndTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENDTIME_ISSET_ID);
+  }
+
+  /** Returns true if field endTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetEndTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);
+  }
+
+  public void setEndTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENDTIME_ISSET_ID, value);
+  }
+
+  /**
+   * The amount cpu time spent executing the given query.
+   */
+  public long getCpuTime() {
+    return this.cpuTime;
+  }
+
+  /**
+   * The amount cpu time spent executing the given query.
+   */
+  public QueryStatus setCpuTime(long cpuTime) {
+    this.cpuTime = cpuTime;
+    setCpuTimeIsSet(true);
+    return this;
+  }
+
+  public void unsetCpuTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPUTIME_ISSET_ID);
+  }
+
+  /** Returns true if field cpuTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetCpuTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __CPUTIME_ISSET_ID);
+  }
+
+  public void setCpuTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPUTIME_ISSET_ID, value);
+  }
+
+  /**
+   * The total amount of time spent executing the query.
+   */
+  public long getUserTime() {
+    return this.userTime;
+  }
+
+  /**
+   * The total amount of time spent executing the query.
+   */
+  public QueryStatus setUserTime(long userTime) {
+    this.userTime = userTime;
+    setUserTimeIsSet(true);
+    return this;
+  }
+
+  public void unsetUserTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __USERTIME_ISSET_ID);
+  }
+
+  /** Returns true if field userTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetUserTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __USERTIME_ISSET_ID);
+  }
+
+  public void setUserTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __USERTIME_ISSET_ID, value);
+  }
+
+  /**
+   * The number of shards that this server has completed.
+   */
+  public int getCompleteShards() {
+    return this.completeShards;
+  }
+
+  /**
+   * The number of shards that this server has completed.
+   */
+  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);
+  }
+
+  /**
+   * The number of shards that this server has to complete.
+   */
+  public int getTotalShards() {
+    return this.totalShards;
+  }
+
+  /**
+   * The number of shards that this server has to complete.
+   */
+  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);
+  }
+
+  /**
+   * The state of the query.  This could be different depending on the server.
+   * 
+   * @see QueryState
+   */
+  public QueryState getState() {
+    return this.state;
+  }
+
+  /**
+   * The state of the query.  This could be different depending on the server.
+   * 
+   * @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;
+    }
+  }
+
+  /**
+   * The query that is executing.
+   */
+  public QueryArgs getQueryArgs() {
+    return this.queryArgs;
+  }
+
+  /**
+   * The query that is executing.
+   */
+  public QueryStatus 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 START_TIME:
+      if (value == null) {
+        unsetStartTime();
+      } else {
+        setStartTime((Long)value);
+      }
+      break;
+
+    case END_TIME:
+      if (value == null) {
+        unsetEndTime();
+      } else {
+        setEndTime((Long)value);
+      }
+      break;
+
+    case CPU_TIME:
+      if (value == null) {
+        unsetCpuTime();
+      } else {
+        setCpuTime((Long)value);
+      }
+      break;
+
+    case USER_TIME:
+      if (value == null) {
+        unsetUserTime();
+      } else {
+        setUserTime((Long)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;
+
+    case QUERY_ARGS:
+      if (value == null) {
+        unsetQueryArgs();
+      } else {
+        setQueryArgs((QueryArgs)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case START_TIME:
+      return Long.valueOf(getStartTime());
+
+    case END_TIME:
+      return Long.valueOf(getEndTime());
+
+    case CPU_TIME:
+      return Long.valueOf(getCpuTime());
+
+    case USER_TIME:
+      return Long.valueOf(getUserTime());
+
+    case COMPLETE_SHARDS:
+      return Integer.valueOf(getCompleteShards());
+
+    case TOTAL_SHARDS:
+      return Integer.valueOf(getTotalShards());
+
+    case STATE:
+      return getState();
+
+    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 START_TIME:
+      return isSetStartTime();
+    case END_TIME:
+      return isSetEndTime();
+    case CPU_TIME:
+      return isSetCpuTime();
+    case USER_TIME:
+      return isSetUserTime();
+    case COMPLETE_SHARDS:
+      return isSetCompleteShards();
+    case TOTAL_SHARDS:
+      return isSetTotalShards();
+    case STATE:
+      return isSetState();
+    case QUERY_ARGS:
+      return isSetQueryArgs();
+    }
+    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_startTime = true;
+    boolean that_present_startTime = true;
+    if (this_present_startTime || that_present_startTime) {
+      if (!(this_present_startTime && that_present_startTime))
+        return false;
+      if (this.startTime != that.startTime)
+        return false;
+    }
+
+    boolean this_present_endTime = true;
+    boolean that_present_endTime = true;
+    if (this_present_endTime || that_present_endTime) {
+      if (!(this_present_endTime && that_present_endTime))
+        return false;
+      if (this.endTime != that.endTime)
+        return false;
+    }
+
+    boolean this_present_cpuTime = true;
+    boolean that_present_cpuTime = true;
+    if (this_present_cpuTime || that_present_cpuTime) {
+      if (!(this_present_cpuTime && that_present_cpuTime))
+        return false;
+      if (this.cpuTime != that.cpuTime)
+        return false;
+    }
+
+    boolean this_present_userTime = true;
+    boolean that_present_userTime = true;
+    if (this_present_userTime || that_present_userTime) {
+      if (!(this_present_userTime && that_present_userTime))
+        return false;
+      if (this.userTime != that.userTime)
+        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;
+    }
+
+    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(QueryStatus other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    QueryStatus typedOther = (QueryStatus)other;
+
+    lastComparison = Boolean.valueOf(isSetStartTime()).compareTo(typedOther.isSetStartTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetStartTime()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTime, typedOther.startTime);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetEndTime()).compareTo(typedOther.isSetEndTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetEndTime()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endTime, typedOther.endTime);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCpuTime()).compareTo(typedOther.isSetCpuTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCpuTime()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpuTime, typedOther.cpuTime);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetUserTime()).compareTo(typedOther.isSetUserTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetUserTime()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userTime, typedOther.userTime);
+      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;
+      }
+    }
+    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("QueryStatus(");
+    boolean first = true;
+
+    sb.append("startTime:");
+    sb.append(this.startTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("endTime:");
+    sb.append(this.endTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("cpuTime:");
+    sb.append(this.cpuTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("userTime:");
+    sb.append(this.userTime);
+    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;
+    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 (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 {
+      // 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: // START_TIME
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.startTime = iprot.readI64();
+              struct.setStartTimeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // END_TIME
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.endTime = iprot.readI64();
+              struct.setEndTimeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // CPU_TIME
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.cpuTime = iprot.readI64();
+              struct.setCpuTimeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // USER_TIME
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.userTime = iprot.readI64();
+              struct.setUserTimeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // 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 6: // 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 7: // 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;
+          case 8: // 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, QueryStatus struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(START_TIME_FIELD_DESC);
+      oprot.writeI64(struct.startTime);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(END_TIME_FIELD_DESC);
+      oprot.writeI64(struct.endTime);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(CPU_TIME_FIELD_DESC);
+      oprot.writeI64(struct.cpuTime);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(USER_TIME_FIELD_DESC);
+      oprot.writeI64(struct.userTime);
+      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();
+      }
+      if (struct.queryArgs != null) {
+        oprot.writeFieldBegin(QUERY_ARGS_FIELD_DESC);
+        struct.queryArgs.write(oprot);
+        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.isSetStartTime()) {
+        optionals.set(0);
+      }
+      if (struct.isSetEndTime()) {
+        optionals.set(1);
+      }
+      if (struct.isSetCpuTime()) {
+        optionals.set(2);
+      }
+      if (struct.isSetUserTime()) {
+        optionals.set(3);
+      }
+      if (struct.isSetCompleteShards()) {
+        optionals.set(4);
+      }
+      if (struct.isSetTotalShards()) {
+        optionals.set(5);
+      }
+      if (struct.isSetState()) {
+        optionals.set(6);
+      }
+      if (struct.isSetQueryArgs()) {
+        optionals.set(7);
+      }
+      oprot.writeBitSet(optionals, 8);
+      if (struct.isSetStartTime()) {
+        oprot.writeI64(struct.startTime);
+      }
+      if (struct.isSetEndTime()) {
+        oprot.writeI64(struct.endTime);
+      }
+      if (struct.isSetCpuTime()) {
+        oprot.writeI64(struct.cpuTime);
+      }
+      if (struct.isSetUserTime()) {
+        oprot.writeI64(struct.userTime);
+      }
+      if (struct.isSetCompleteShards()) {
+        oprot.writeI32(struct.completeShards);
+      }
+      if (struct.isSetTotalShards()) {
+        oprot.writeI32(struct.totalShards);
+      }
+      if (struct.isSetState()) {
+        oprot.writeI32(struct.state.getValue());
+      }
+      if (struct.isSetQueryArgs()) {
+        struct.queryArgs.write(oprot);
+      }
+    }
+
+    @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(8);
+      if (incoming.get(0)) {
+        struct.startTime = iprot.readI64();
+        struct.setStartTimeIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.endTime = iprot.readI64();
+        struct.setEndTimeIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.cpuTime = iprot.readI64();
+        struct.setCpuTimeIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.userTime = iprot.readI64();
+        struct.setUserTimeIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.completeShards = iprot.readI32();
+        struct.setCompleteShardsIsSet(true);
+      }
+      if (incoming.get(5)) {
+        struct.totalShards = iprot.readI32();
+        struct.setTotalShardsIsSet(true);
+      }
+      if (incoming.get(6)) {
+        struct.state = QueryState.findByValue(iprot.readI32());
+        struct.setStateIsSet(true);
+      }
+      if (incoming.get(7)) {
+        struct.queryArgs = new QueryArgs();
+        struct.queryArgs.read(iprot);
+        struct.setQueryArgsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/11f5141c/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java
new file mode 100644
index 0000000..c8c83fe
--- /dev/null
+++ b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/QueryType.java
@@ -0,0 +1,67 @@
+/**
+ * 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;
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/11f5141c/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ScoreDoc.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ScoreDoc.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ScoreDoc.java
new file mode 100644
index 0000000..b07f1c2
--- /dev/null
+++ b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ScoreDoc.java
@@ -0,0 +1,651 @@
+/**
+ * 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 ScoreDoc implements org.apache.thrift.TBase<ScoreDoc, ScoreDoc._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ScoreDoc");
+
+  private static final org.apache.thrift.protocol.TField SCORE_FIELD_DESC = new org.apache.thrift.protocol.TField("score", org.apache.thrift.protocol.TType.DOUBLE, (short)1);
+  private static final org.apache.thrift.protocol.TField DOC_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("docLocation", org.apache.thrift.protocol.TType.I64, (short)2);
+  private static final org.apache.thrift.protocol.TField FIELDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fields", org.apache.thrift.protocol.TType.LIST, (short)4);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ScoreDocStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ScoreDocTupleSchemeFactory());
+  }
+
+  public double score; // required
+  public long docLocation; // required
+  public List<ByteBuffer> fields; // 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 {
+    SCORE((short)1, "score"),
+    DOC_LOCATION((short)2, "docLocation"),
+    FIELDS((short)4, "fields");
+
+    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: // SCORE
+          return SCORE;
+        case 2: // DOC_LOCATION
+          return DOC_LOCATION;
+        case 4: // FIELDS
+          return FIELDS;
+        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 __SCORE_ISSET_ID = 0;
+  private static final int __DOCLOCATION_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.SCORE, new org.apache.thrift.meta_data.FieldMetaData("score", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
+    tmpMap.put(_Fields.DOC_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("docLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    tmpMap.put(_Fields.FIELDS, new org.apache.thrift.meta_data.FieldMetaData("fields", 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.STRING            , true))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ScoreDoc.class, metaDataMap);
+  }
+
+  public ScoreDoc() {
+  }
+
+  public ScoreDoc(
+    double score,
+    long docLocation,
+    List<ByteBuffer> fields)
+  {
+    this();
+    this.score = score;
+    setScoreIsSet(true);
+    this.docLocation = docLocation;
+    setDocLocationIsSet(true);
+    this.fields = fields;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ScoreDoc(ScoreDoc other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.score = other.score;
+    this.docLocation = other.docLocation;
+    if (other.isSetFields()) {
+      List<ByteBuffer> __this__fields = new ArrayList<ByteBuffer>();
+      for (ByteBuffer other_element : other.fields) {
+        ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element);
+;
+        __this__fields.add(temp_binary_element);
+      }
+      this.fields = __this__fields;
+    }
+  }
+
+  public ScoreDoc deepCopy() {
+    return new ScoreDoc(this);
+  }
+
+  @Override
+  public void clear() {
+    setScoreIsSet(false);
+    this.score = 0.0;
+    setDocLocationIsSet(false);
+    this.docLocation = 0;
+    this.fields = null;
+  }
+
+  public double getScore() {
+    return this.score;
+  }
+
+  public ScoreDoc setScore(double score) {
+    this.score = score;
+    setScoreIsSet(true);
+    return this;
+  }
+
+  public void unsetScore() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCORE_ISSET_ID);
+  }
+
+  /** Returns true if field score is set (has been assigned a value) and false otherwise */
+  public boolean isSetScore() {
+    return EncodingUtils.testBit(__isset_bitfield, __SCORE_ISSET_ID);
+  }
+
+  public void setScoreIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCORE_ISSET_ID, value);
+  }
+
+  public long getDocLocation() {
+    return this.docLocation;
+  }
+
+  public ScoreDoc setDocLocation(long docLocation) {
+    this.docLocation = docLocation;
+    setDocLocationIsSet(true);
+    return this;
+  }
+
+  public void unsetDocLocation() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DOCLOCATION_ISSET_ID);
+  }
+
+  /** Returns true if field docLocation is set (has been assigned a value) and false otherwise */
+  public boolean isSetDocLocation() {
+    return EncodingUtils.testBit(__isset_bitfield, __DOCLOCATION_ISSET_ID);
+  }
+
+  public void setDocLocationIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DOCLOCATION_ISSET_ID, value);
+  }
+
+  public int getFieldsSize() {
+    return (this.fields == null) ? 0 : this.fields.size();
+  }
+
+  public java.util.Iterator<ByteBuffer> getFieldsIterator() {
+    return (this.fields == null) ? null : this.fields.iterator();
+  }
+
+  public void addToFields(ByteBuffer elem) {
+    if (this.fields == null) {
+      this.fields = new ArrayList<ByteBuffer>();
+    }
+    this.fields.add(elem);
+  }
+
+  public List<ByteBuffer> getFields() {
+    return this.fields;
+  }
+
+  public ScoreDoc setFields(List<ByteBuffer> fields) {
+    this.fields = fields;
+    return this;
+  }
+
+  public void unsetFields() {
+    this.fields = null;
+  }
+
+  /** Returns true if field fields is set (has been assigned a value) and false otherwise */
+  public boolean isSetFields() {
+    return this.fields != null;
+  }
+
+  public void setFieldsIsSet(boolean value) {
+    if (!value) {
+      this.fields = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case SCORE:
+      if (value == null) {
+        unsetScore();
+      } else {
+        setScore((Double)value);
+      }
+      break;
+
+    case DOC_LOCATION:
+      if (value == null) {
+        unsetDocLocation();
+      } else {
+        setDocLocation((Long)value);
+      }
+      break;
+
+    case FIELDS:
+      if (value == null) {
+        unsetFields();
+      } else {
+        setFields((List<ByteBuffer>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case SCORE:
+      return Double.valueOf(getScore());
+
+    case DOC_LOCATION:
+      return Long.valueOf(getDocLocation());
+
+    case FIELDS:
+      return getFields();
+
+    }
+    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 SCORE:
+      return isSetScore();
+    case DOC_LOCATION:
+      return isSetDocLocation();
+    case FIELDS:
+      return isSetFields();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ScoreDoc)
+      return this.equals((ScoreDoc)that);
+    return false;
+  }
+
+  public boolean equals(ScoreDoc that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_score = true;
+    boolean that_present_score = true;
+    if (this_present_score || that_present_score) {
+      if (!(this_present_score && that_present_score))
+        return false;
+      if (this.score != that.score)
+        return false;
+    }
+
+    boolean this_present_docLocation = true;
+    boolean that_present_docLocation = true;
+    if (this_present_docLocation || that_present_docLocation) {
+      if (!(this_present_docLocation && that_present_docLocation))
+        return false;
+      if (this.docLocation != that.docLocation)
+        return false;
+    }
+
+    boolean this_present_fields = true && this.isSetFields();
+    boolean that_present_fields = true && that.isSetFields();
+    if (this_present_fields || that_present_fields) {
+      if (!(this_present_fields && that_present_fields))
+        return false;
+      if (!this.fields.equals(that.fields))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(ScoreDoc other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    ScoreDoc typedOther = (ScoreDoc)other;
+
+    lastComparison = Boolean.valueOf(isSetScore()).compareTo(typedOther.isSetScore());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetScore()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.score, typedOther.score);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetDocLocation()).compareTo(typedOther.isSetDocLocation());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetDocLocation()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.docLocation, typedOther.docLocation);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFields()).compareTo(typedOther.isSetFields());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFields()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, typedOther.fields);
+      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("ScoreDoc(");
+    boolean first = true;
+
+    sb.append("score:");
+    sb.append(this.score);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("docLocation:");
+    sb.append(this.docLocation);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("fields:");
+    if (this.fields == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.fields);
+    }
+    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 ScoreDocStandardSchemeFactory implements SchemeFactory {
+    public ScoreDocStandardScheme getScheme() {
+      return new ScoreDocStandardScheme();
+    }
+  }
+
+  private static class ScoreDocStandardScheme extends StandardScheme<ScoreDoc> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, ScoreDoc 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: // SCORE
+            if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
+              struct.score = iprot.readDouble();
+              struct.setScoreIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // DOC_LOCATION
+            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
+              struct.docLocation = iprot.readI64();
+              struct.setDocLocationIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // FIELDS
+            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+              {
+                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
+                struct.fields = new ArrayList<ByteBuffer>(_list52.size);
+                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
+                {
+                  ByteBuffer _elem54; // required
+                  _elem54 = iprot.readBinary();
+                  struct.fields.add(_elem54);
+                }
+                iprot.readListEnd();
+              }
+              struct.setFieldsIsSet(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, ScoreDoc struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(SCORE_FIELD_DESC);
+      oprot.writeDouble(struct.score);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(DOC_LOCATION_FIELD_DESC);
+      oprot.writeI64(struct.docLocation);
+      oprot.writeFieldEnd();
+      if (struct.fields != null) {
+        oprot.writeFieldBegin(FIELDS_FIELD_DESC);
+        {
+          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fields.size()));
+          for (ByteBuffer _iter55 : struct.fields)
+          {
+            oprot.writeBinary(_iter55);
+          }
+          oprot.writeListEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ScoreDocTupleSchemeFactory implements SchemeFactory {
+    public ScoreDocTupleScheme getScheme() {
+      return new ScoreDocTupleScheme();
+    }
+  }
+
+  private static class ScoreDocTupleScheme extends TupleScheme<ScoreDoc> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, ScoreDoc struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetScore()) {
+        optionals.set(0);
+      }
+      if (struct.isSetDocLocation()) {
+        optionals.set(1);
+      }
+      if (struct.isSetFields()) {
+        optionals.set(2);
+      }
+      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetScore()) {
+        oprot.writeDouble(struct.score);
+      }
+      if (struct.isSetDocLocation()) {
+        oprot.writeI64(struct.docLocation);
+      }
+      if (struct.isSetFields()) {
+        {
+          oprot.writeI32(struct.fields.size());
+          for (ByteBuffer _iter56 : struct.fields)
+          {
+            oprot.writeBinary(_iter56);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, ScoreDoc struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(3);
+      if (incoming.get(0)) {
+        struct.score = iprot.readDouble();
+        struct.setScoreIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.docLocation = iprot.readI64();
+        struct.setDocLocationIsSet(true);
+      }
+      if (incoming.get(2)) {
+        {
+          org.apache.thrift.protocol.TList _list57 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.fields = new ArrayList<ByteBuffer>(_list57.size);
+          for (int _i58 = 0; _i58 < _list57.size; ++_i58)
+          {
+            ByteBuffer _elem59; // required
+            _elem59 = iprot.readBinary();
+            struct.fields.add(_elem59);
+          }
+        }
+        struct.setFieldsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/11f5141c/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Session.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Session.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Session.java
new file mode 100644
index 0000000..283736a
--- /dev/null
+++ b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Session.java
@@ -0,0 +1,505 @@
+/**
+ * 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 Session implements org.apache.thrift.TBase<Session, Session._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Session");
+
+  private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new SessionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new SessionTupleSchemeFactory());
+  }
+
+  public String sessionId; // required
+  public String tableName; // 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_ID((short)1, "sessionId"),
+    TABLE_NAME((short)2, "tableName");
+
+    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_ID
+          return SESSION_ID;
+        case 2: // TABLE_NAME
+          return TABLE_NAME;
+        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_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", 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(Session.class, metaDataMap);
+  }
+
+  public Session() {
+  }
+
+  public Session(
+    String sessionId,
+    String tableName)
+  {
+    this();
+    this.sessionId = sessionId;
+    this.tableName = tableName;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public Session(Session other) {
+    if (other.isSetSessionId()) {
+      this.sessionId = other.sessionId;
+    }
+    if (other.isSetTableName()) {
+      this.tableName = other.tableName;
+    }
+  }
+
+  public Session deepCopy() {
+    return new Session(this);
+  }
+
+  @Override
+  public void clear() {
+    this.sessionId = null;
+    this.tableName = null;
+  }
+
+  public String getSessionId() {
+    return this.sessionId;
+  }
+
+  public Session setSessionId(String sessionId) {
+    this.sessionId = sessionId;
+    return this;
+  }
+
+  public void unsetSessionId() {
+    this.sessionId = null;
+  }
+
+  /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
+  public boolean isSetSessionId() {
+    return this.sessionId != null;
+  }
+
+  public void setSessionIdIsSet(boolean value) {
+    if (!value) {
+      this.sessionId = null;
+    }
+  }
+
+  public String getTableName() {
+    return this.tableName;
+  }
+
+  public Session setTableName(String tableName) {
+    this.tableName = tableName;
+    return this;
+  }
+
+  public void unsetTableName() {
+    this.tableName = null;
+  }
+
+  /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
+  public boolean isSetTableName() {
+    return this.tableName != null;
+  }
+
+  public void setTableNameIsSet(boolean value) {
+    if (!value) {
+      this.tableName = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case SESSION_ID:
+      if (value == null) {
+        unsetSessionId();
+      } else {
+        setSessionId((String)value);
+      }
+      break;
+
+    case TABLE_NAME:
+      if (value == null) {
+        unsetTableName();
+      } else {
+        setTableName((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case SESSION_ID:
+      return getSessionId();
+
+    case TABLE_NAME:
+      return getTableName();
+
+    }
+    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_ID:
+      return isSetSessionId();
+    case TABLE_NAME:
+      return isSetTableName();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof Session)
+      return this.equals((Session)that);
+    return false;
+  }
+
+  public boolean equals(Session that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_sessionId = true && this.isSetSessionId();
+    boolean that_present_sessionId = true && that.isSetSessionId();
+    if (this_present_sessionId || that_present_sessionId) {
+      if (!(this_present_sessionId && that_present_sessionId))
+        return false;
+      if (!this.sessionId.equals(that.sessionId))
+        return false;
+    }
+
+    boolean this_present_tableName = true && this.isSetTableName();
+    boolean that_present_tableName = true && that.isSetTableName();
+    if (this_present_tableName || that_present_tableName) {
+      if (!(this_present_tableName && that_present_tableName))
+        return false;
+      if (!this.tableName.equals(that.tableName))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(Session other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    Session typedOther = (Session)other;
+
+    lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSessionId()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTableName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
+      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("Session(");
+    boolean first = true;
+
+    sb.append("sessionId:");
+    if (this.sessionId == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.sessionId);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("tableName:");
+    if (this.tableName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.tableName);
+    }
+    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 SessionStandardSchemeFactory implements SchemeFactory {
+    public SessionStandardScheme getScheme() {
+      return new SessionStandardScheme();
+    }
+  }
+
+  private static class SessionStandardScheme extends StandardScheme<Session> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, Session 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_ID
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.sessionId = iprot.readString();
+              struct.setSessionIdIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // TABLE_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.tableName = iprot.readString();
+              struct.setTableNameIsSet(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, Session struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.sessionId != null) {
+        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
+        oprot.writeString(struct.sessionId);
+        oprot.writeFieldEnd();
+      }
+      if (struct.tableName != null) {
+        oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
+        oprot.writeString(struct.tableName);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class SessionTupleSchemeFactory implements SchemeFactory {
+    public SessionTupleScheme getScheme() {
+      return new SessionTupleScheme();
+    }
+  }
+
+  private static class SessionTupleScheme extends TupleScheme<Session> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, Session struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetSessionId()) {
+        optionals.set(0);
+      }
+      if (struct.isSetTableName()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetSessionId()) {
+        oprot.writeString(struct.sessionId);
+      }
+      if (struct.isSetTableName()) {
+        oprot.writeString(struct.tableName);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, Session struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.sessionId = iprot.readString();
+        struct.setSessionIdIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.tableName = iprot.readString();
+        struct.setTableNameIsSet(true);
+      }
+    }
+  }
+
+}
+


Mime
View raw message