incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [3/3] More changes to simplify.
Date Fri, 05 Oct 2012 02:33:34 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/320f9de8/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadResult.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadResult.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadResult.java
deleted file mode 100644
index f600b84..0000000
--- a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadResult.java
+++ /dev/null
@@ -1,320 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.7.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-package org.apache.blur.thrift.generated;
-
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class ReadResult implements org.apache.thrift.TBase<ReadResult, ReadResult._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReadResult");
-
-  private static final org.apache.thrift.protocol.TField TUPLE_FIELD_DESC = new org.apache.thrift.protocol.TField("tuple", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
-  public Tuple tuple; // 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 {
-    TUPLE((short)1, "tuple");
-
-    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: // TUPLE
-          return TUPLE;
-        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.TUPLE, new org.apache.thrift.meta_data.FieldMetaData("tuple", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Tuple.class)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReadResult.class, metaDataMap);
-  }
-
-  public ReadResult() {
-  }
-
-  public ReadResult(
-    Tuple tuple)
-  {
-    this();
-    this.tuple = tuple;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ReadResult(ReadResult other) {
-    if (other.isSetTuple()) {
-      this.tuple = new Tuple(other.tuple);
-    }
-  }
-
-  public ReadResult deepCopy() {
-    return new ReadResult(this);
-  }
-
-  @Override
-  public void clear() {
-    this.tuple = null;
-  }
-
-  public Tuple getTuple() {
-    return this.tuple;
-  }
-
-  public ReadResult setTuple(Tuple tuple) {
-    this.tuple = tuple;
-    return this;
-  }
-
-  public void unsetTuple() {
-    this.tuple = null;
-  }
-
-  /** Returns true if field tuple is set (has been assigned a value) and false otherwise */
-  public boolean isSetTuple() {
-    return this.tuple != null;
-  }
-
-  public void setTupleIsSet(boolean value) {
-    if (!value) {
-      this.tuple = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case TUPLE:
-      if (value == null) {
-        unsetTuple();
-      } else {
-        setTuple((Tuple)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case TUPLE:
-      return getTuple();
-
-    }
-    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 TUPLE:
-      return isSetTuple();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ReadResult)
-      return this.equals((ReadResult)that);
-    return false;
-  }
-
-  public boolean equals(ReadResult that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_tuple = true && this.isSetTuple();
-    boolean that_present_tuple = true && that.isSetTuple();
-    if (this_present_tuple || that_present_tuple) {
-      if (!(this_present_tuple && that_present_tuple))
-        return false;
-      if (!this.tuple.equals(that.tuple))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(ReadResult other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    ReadResult typedOther = (ReadResult)other;
-
-    lastComparison = Boolean.valueOf(isSetTuple()).compareTo(typedOther.isSetTuple());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTuple()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tuple, typedOther.tuple);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    org.apache.thrift.protocol.TField field;
-    iprot.readStructBegin();
-    while (true)
-    {
-      field = iprot.readFieldBegin();
-      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-        break;
-      }
-      switch (field.id) {
-        case 1: // TUPLE
-          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-            this.tuple = new Tuple();
-            this.tuple.read(iprot);
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        default:
-          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-      }
-      iprot.readFieldEnd();
-    }
-    iprot.readStructEnd();
-
-    // check for required fields of primitive type, which can't be checked in the validate method
-    validate();
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    validate();
-
-    oprot.writeStructBegin(STRUCT_DESC);
-    if (this.tuple != null) {
-      oprot.writeFieldBegin(TUPLE_FIELD_DESC);
-      this.tuple.write(oprot);
-      oprot.writeFieldEnd();
-    }
-    oprot.writeFieldStop();
-    oprot.writeStructEnd();
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("ReadResult(");
-    boolean first = true;
-
-    sb.append("tuple:");
-    if (this.tuple == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.tuple);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/320f9de8/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadSession.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadSession.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadSession.java
deleted file mode 100644
index cd3f3a5..0000000
--- a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/ReadSession.java
+++ /dev/null
@@ -1,319 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.7.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-package org.apache.blur.thrift.generated;
-
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class ReadSession implements org.apache.thrift.TBase<ReadSession, ReadSession._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReadSession");
-
-  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);
-
-  public String sessionId; // 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");
-
-    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;
-        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)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReadSession.class, metaDataMap);
-  }
-
-  public ReadSession() {
-  }
-
-  public ReadSession(
-    String sessionId)
-  {
-    this();
-    this.sessionId = sessionId;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ReadSession(ReadSession other) {
-    if (other.isSetSessionId()) {
-      this.sessionId = other.sessionId;
-    }
-  }
-
-  public ReadSession deepCopy() {
-    return new ReadSession(this);
-  }
-
-  @Override
-  public void clear() {
-    this.sessionId = null;
-  }
-
-  public String getSessionId() {
-    return this.sessionId;
-  }
-
-  public ReadSession 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 void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case SESSION_ID:
-      if (value == null) {
-        unsetSessionId();
-      } else {
-        setSessionId((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case SESSION_ID:
-      return getSessionId();
-
-    }
-    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();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ReadSession)
-      return this.equals((ReadSession)that);
-    return false;
-  }
-
-  public boolean equals(ReadSession 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;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(ReadSession other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    ReadSession typedOther = (ReadSession)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;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    org.apache.thrift.protocol.TField field;
-    iprot.readStructBegin();
-    while (true)
-    {
-      field = iprot.readFieldBegin();
-      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-        break;
-      }
-      switch (field.id) {
-        case 1: // SESSION_ID
-          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-            this.sessionId = iprot.readString();
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        default:
-          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-      }
-      iprot.readFieldEnd();
-    }
-    iprot.readStructEnd();
-
-    // check for required fields of primitive type, which can't be checked in the validate method
-    validate();
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    validate();
-
-    oprot.writeStructBegin(STRUCT_DESC);
-    if (this.sessionId != null) {
-      oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
-      oprot.writeString(this.sessionId);
-      oprot.writeFieldEnd();
-    }
-    oprot.writeFieldStop();
-    oprot.writeStructEnd();
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("ReadSession(");
-    boolean first = true;
-
-    sb.append("sessionId:");
-    if (this.sessionId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.sessionId);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/320f9de8/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Session.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Session.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Session.java
new file mode 100644
index 0000000..cb0a4dc
--- /dev/null
+++ b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Session.java
@@ -0,0 +1,319 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class 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);
+
+  public String sessionId; // 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");
+
+    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;
+        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)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Session.class, metaDataMap);
+  }
+
+  public Session() {
+  }
+
+  public Session(
+    String sessionId)
+  {
+    this();
+    this.sessionId = sessionId;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public Session(Session other) {
+    if (other.isSetSessionId()) {
+      this.sessionId = other.sessionId;
+    }
+  }
+
+  public Session deepCopy() {
+    return new Session(this);
+  }
+
+  @Override
+  public void clear() {
+    this.sessionId = 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 void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case SESSION_ID:
+      if (value == null) {
+        unsetSessionId();
+      } else {
+        setSessionId((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case SESSION_ID:
+      return getSessionId();
+
+    }
+    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();
+    }
+    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;
+    }
+
+    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;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // SESSION_ID
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.sessionId = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.sessionId != null) {
+      oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
+      oprot.writeString(this.sessionId);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @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;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/320f9de8/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/TYPE.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/TYPE.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/TYPE.java
index 083c566..66eff59 100644
--- a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/TYPE.java
+++ b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/TYPE.java
@@ -16,8 +16,9 @@ public enum TYPE implements org.apache.thrift.TEnum {
   SHORT(2),
   INT(3),
   LONG(4),
-  DOUBLE(5),
-  BINARY(6);
+  FLOAT(5),
+  DOUBLE(6),
+  BINARY(7);
 
   private final int value;
 
@@ -49,8 +50,10 @@ public enum TYPE implements org.apache.thrift.TEnum {
       case 4:
         return LONG;
       case 5:
-        return DOUBLE;
+        return FLOAT;
       case 6:
+        return DOUBLE;
+      case 7:
         return BINARY;
       default:
         return null;

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/320f9de8/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Value.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Value.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Value.java
deleted file mode 100644
index 27abd09..0000000
--- a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/Value.java
+++ /dev/null
@@ -1,949 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.7.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-package org.apache.blur.thrift.generated;
-
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class Value implements org.apache.thrift.TBase<Value, Value._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Value");
-
-  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1);
-  private static final org.apache.thrift.protocol.TField STRING_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("stringValue", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField BOOL_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("boolValue", org.apache.thrift.protocol.TType.BOOL, (short)3);
-  private static final org.apache.thrift.protocol.TField SHORT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("shortValue", org.apache.thrift.protocol.TType.I16, (short)4);
-  private static final org.apache.thrift.protocol.TField INT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("intValue", org.apache.thrift.protocol.TType.I32, (short)5);
-  private static final org.apache.thrift.protocol.TField LONG_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("longValue", org.apache.thrift.protocol.TType.I64, (short)6);
-  private static final org.apache.thrift.protocol.TField DOUBLE_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("doubleValue", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
-  private static final org.apache.thrift.protocol.TField BINARY_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("binaryValue", org.apache.thrift.protocol.TType.STRING, (short)8);
-
-  /**
-   * 
-   * @see TYPE
-   */
-  public TYPE type; // required
-  public String stringValue; // required
-  public boolean boolValue; // required
-  public short shortValue; // required
-  public int intValue; // required
-  public long longValue; // required
-  public double doubleValue; // required
-  public ByteBuffer binaryValue; // 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 {
-    /**
-     * 
-     * @see TYPE
-     */
-    TYPE((short)1, "type"),
-    STRING_VALUE((short)2, "stringValue"),
-    BOOL_VALUE((short)3, "boolValue"),
-    SHORT_VALUE((short)4, "shortValue"),
-    INT_VALUE((short)5, "intValue"),
-    LONG_VALUE((short)6, "longValue"),
-    DOUBLE_VALUE((short)7, "doubleValue"),
-    BINARY_VALUE((short)8, "binaryValue");
-
-    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: // TYPE
-          return TYPE;
-        case 2: // STRING_VALUE
-          return STRING_VALUE;
-        case 3: // BOOL_VALUE
-          return BOOL_VALUE;
-        case 4: // SHORT_VALUE
-          return SHORT_VALUE;
-        case 5: // INT_VALUE
-          return INT_VALUE;
-        case 6: // LONG_VALUE
-          return LONG_VALUE;
-        case 7: // DOUBLE_VALUE
-          return DOUBLE_VALUE;
-        case 8: // BINARY_VALUE
-          return BINARY_VALUE;
-        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 __BOOLVALUE_ISSET_ID = 0;
-  private static final int __SHORTVALUE_ISSET_ID = 1;
-  private static final int __INTVALUE_ISSET_ID = 2;
-  private static final int __LONGVALUE_ISSET_ID = 3;
-  private static final int __DOUBLEVALUE_ISSET_ID = 4;
-  private BitSet __isset_bit_vector = new BitSet(5);
-
-  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.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TYPE.class)));
-    tmpMap.put(_Fields.STRING_VALUE, new org.apache.thrift.meta_data.FieldMetaData("stringValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.BOOL_VALUE, new org.apache.thrift.meta_data.FieldMetaData("boolValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.SHORT_VALUE, new org.apache.thrift.meta_data.FieldMetaData("shortValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
-    tmpMap.put(_Fields.INT_VALUE, new org.apache.thrift.meta_data.FieldMetaData("intValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.LONG_VALUE, new org.apache.thrift.meta_data.FieldMetaData("longValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    tmpMap.put(_Fields.DOUBLE_VALUE, new org.apache.thrift.meta_data.FieldMetaData("doubleValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-    tmpMap.put(_Fields.BINARY_VALUE, new org.apache.thrift.meta_data.FieldMetaData("binaryValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        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(Value.class, metaDataMap);
-  }
-
-  public Value() {
-  }
-
-  public Value(
-    TYPE type,
-    String stringValue,
-    boolean boolValue,
-    short shortValue,
-    int intValue,
-    long longValue,
-    double doubleValue,
-    ByteBuffer binaryValue)
-  {
-    this();
-    this.type = type;
-    this.stringValue = stringValue;
-    this.boolValue = boolValue;
-    setBoolValueIsSet(true);
-    this.shortValue = shortValue;
-    setShortValueIsSet(true);
-    this.intValue = intValue;
-    setIntValueIsSet(true);
-    this.longValue = longValue;
-    setLongValueIsSet(true);
-    this.doubleValue = doubleValue;
-    setDoubleValueIsSet(true);
-    this.binaryValue = binaryValue;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public Value(Value other) {
-    __isset_bit_vector.clear();
-    __isset_bit_vector.or(other.__isset_bit_vector);
-    if (other.isSetType()) {
-      this.type = other.type;
-    }
-    if (other.isSetStringValue()) {
-      this.stringValue = other.stringValue;
-    }
-    this.boolValue = other.boolValue;
-    this.shortValue = other.shortValue;
-    this.intValue = other.intValue;
-    this.longValue = other.longValue;
-    this.doubleValue = other.doubleValue;
-    if (other.isSetBinaryValue()) {
-      this.binaryValue = org.apache.thrift.TBaseHelper.copyBinary(other.binaryValue);
-;
-    }
-  }
-
-  public Value deepCopy() {
-    return new Value(this);
-  }
-
-  @Override
-  public void clear() {
-    this.type = null;
-    this.stringValue = null;
-    setBoolValueIsSet(false);
-    this.boolValue = false;
-    setShortValueIsSet(false);
-    this.shortValue = 0;
-    setIntValueIsSet(false);
-    this.intValue = 0;
-    setLongValueIsSet(false);
-    this.longValue = 0;
-    setDoubleValueIsSet(false);
-    this.doubleValue = 0.0;
-    this.binaryValue = null;
-  }
-
-  /**
-   * 
-   * @see TYPE
-   */
-  public TYPE getType() {
-    return this.type;
-  }
-
-  /**
-   * 
-   * @see TYPE
-   */
-  public Value setType(TYPE type) {
-    this.type = type;
-    return this;
-  }
-
-  public void unsetType() {
-    this.type = null;
-  }
-
-  /** Returns true if field type is set (has been assigned a value) and false otherwise */
-  public boolean isSetType() {
-    return this.type != null;
-  }
-
-  public void setTypeIsSet(boolean value) {
-    if (!value) {
-      this.type = null;
-    }
-  }
-
-  public String getStringValue() {
-    return this.stringValue;
-  }
-
-  public Value setStringValue(String stringValue) {
-    this.stringValue = stringValue;
-    return this;
-  }
-
-  public void unsetStringValue() {
-    this.stringValue = null;
-  }
-
-  /** Returns true if field stringValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetStringValue() {
-    return this.stringValue != null;
-  }
-
-  public void setStringValueIsSet(boolean value) {
-    if (!value) {
-      this.stringValue = null;
-    }
-  }
-
-  public boolean isBoolValue() {
-    return this.boolValue;
-  }
-
-  public Value setBoolValue(boolean boolValue) {
-    this.boolValue = boolValue;
-    setBoolValueIsSet(true);
-    return this;
-  }
-
-  public void unsetBoolValue() {
-    __isset_bit_vector.clear(__BOOLVALUE_ISSET_ID);
-  }
-
-  /** Returns true if field boolValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetBoolValue() {
-    return __isset_bit_vector.get(__BOOLVALUE_ISSET_ID);
-  }
-
-  public void setBoolValueIsSet(boolean value) {
-    __isset_bit_vector.set(__BOOLVALUE_ISSET_ID, value);
-  }
-
-  public short getShortValue() {
-    return this.shortValue;
-  }
-
-  public Value setShortValue(short shortValue) {
-    this.shortValue = shortValue;
-    setShortValueIsSet(true);
-    return this;
-  }
-
-  public void unsetShortValue() {
-    __isset_bit_vector.clear(__SHORTVALUE_ISSET_ID);
-  }
-
-  /** Returns true if field shortValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetShortValue() {
-    return __isset_bit_vector.get(__SHORTVALUE_ISSET_ID);
-  }
-
-  public void setShortValueIsSet(boolean value) {
-    __isset_bit_vector.set(__SHORTVALUE_ISSET_ID, value);
-  }
-
-  public int getIntValue() {
-    return this.intValue;
-  }
-
-  public Value setIntValue(int intValue) {
-    this.intValue = intValue;
-    setIntValueIsSet(true);
-    return this;
-  }
-
-  public void unsetIntValue() {
-    __isset_bit_vector.clear(__INTVALUE_ISSET_ID);
-  }
-
-  /** Returns true if field intValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetIntValue() {
-    return __isset_bit_vector.get(__INTVALUE_ISSET_ID);
-  }
-
-  public void setIntValueIsSet(boolean value) {
-    __isset_bit_vector.set(__INTVALUE_ISSET_ID, value);
-  }
-
-  public long getLongValue() {
-    return this.longValue;
-  }
-
-  public Value setLongValue(long longValue) {
-    this.longValue = longValue;
-    setLongValueIsSet(true);
-    return this;
-  }
-
-  public void unsetLongValue() {
-    __isset_bit_vector.clear(__LONGVALUE_ISSET_ID);
-  }
-
-  /** Returns true if field longValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetLongValue() {
-    return __isset_bit_vector.get(__LONGVALUE_ISSET_ID);
-  }
-
-  public void setLongValueIsSet(boolean value) {
-    __isset_bit_vector.set(__LONGVALUE_ISSET_ID, value);
-  }
-
-  public double getDoubleValue() {
-    return this.doubleValue;
-  }
-
-  public Value setDoubleValue(double doubleValue) {
-    this.doubleValue = doubleValue;
-    setDoubleValueIsSet(true);
-    return this;
-  }
-
-  public void unsetDoubleValue() {
-    __isset_bit_vector.clear(__DOUBLEVALUE_ISSET_ID);
-  }
-
-  /** Returns true if field doubleValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetDoubleValue() {
-    return __isset_bit_vector.get(__DOUBLEVALUE_ISSET_ID);
-  }
-
-  public void setDoubleValueIsSet(boolean value) {
-    __isset_bit_vector.set(__DOUBLEVALUE_ISSET_ID, value);
-  }
-
-  public byte[] getBinaryValue() {
-    setBinaryValue(org.apache.thrift.TBaseHelper.rightSize(binaryValue));
-    return binaryValue == null ? null : binaryValue.array();
-  }
-
-  public ByteBuffer bufferForBinaryValue() {
-    return binaryValue;
-  }
-
-  public Value setBinaryValue(byte[] binaryValue) {
-    setBinaryValue(binaryValue == null ? (ByteBuffer)null : ByteBuffer.wrap(binaryValue));
-    return this;
-  }
-
-  public Value setBinaryValue(ByteBuffer binaryValue) {
-    this.binaryValue = binaryValue;
-    return this;
-  }
-
-  public void unsetBinaryValue() {
-    this.binaryValue = null;
-  }
-
-  /** Returns true if field binaryValue is set (has been assigned a value) and false otherwise */
-  public boolean isSetBinaryValue() {
-    return this.binaryValue != null;
-  }
-
-  public void setBinaryValueIsSet(boolean value) {
-    if (!value) {
-      this.binaryValue = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case TYPE:
-      if (value == null) {
-        unsetType();
-      } else {
-        setType((TYPE)value);
-      }
-      break;
-
-    case STRING_VALUE:
-      if (value == null) {
-        unsetStringValue();
-      } else {
-        setStringValue((String)value);
-      }
-      break;
-
-    case BOOL_VALUE:
-      if (value == null) {
-        unsetBoolValue();
-      } else {
-        setBoolValue((Boolean)value);
-      }
-      break;
-
-    case SHORT_VALUE:
-      if (value == null) {
-        unsetShortValue();
-      } else {
-        setShortValue((Short)value);
-      }
-      break;
-
-    case INT_VALUE:
-      if (value == null) {
-        unsetIntValue();
-      } else {
-        setIntValue((Integer)value);
-      }
-      break;
-
-    case LONG_VALUE:
-      if (value == null) {
-        unsetLongValue();
-      } else {
-        setLongValue((Long)value);
-      }
-      break;
-
-    case DOUBLE_VALUE:
-      if (value == null) {
-        unsetDoubleValue();
-      } else {
-        setDoubleValue((Double)value);
-      }
-      break;
-
-    case BINARY_VALUE:
-      if (value == null) {
-        unsetBinaryValue();
-      } else {
-        setBinaryValue((ByteBuffer)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case TYPE:
-      return getType();
-
-    case STRING_VALUE:
-      return getStringValue();
-
-    case BOOL_VALUE:
-      return Boolean.valueOf(isBoolValue());
-
-    case SHORT_VALUE:
-      return Short.valueOf(getShortValue());
-
-    case INT_VALUE:
-      return Integer.valueOf(getIntValue());
-
-    case LONG_VALUE:
-      return Long.valueOf(getLongValue());
-
-    case DOUBLE_VALUE:
-      return Double.valueOf(getDoubleValue());
-
-    case BINARY_VALUE:
-      return getBinaryValue();
-
-    }
-    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 TYPE:
-      return isSetType();
-    case STRING_VALUE:
-      return isSetStringValue();
-    case BOOL_VALUE:
-      return isSetBoolValue();
-    case SHORT_VALUE:
-      return isSetShortValue();
-    case INT_VALUE:
-      return isSetIntValue();
-    case LONG_VALUE:
-      return isSetLongValue();
-    case DOUBLE_VALUE:
-      return isSetDoubleValue();
-    case BINARY_VALUE:
-      return isSetBinaryValue();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof Value)
-      return this.equals((Value)that);
-    return false;
-  }
-
-  public boolean equals(Value that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_type = true && this.isSetType();
-    boolean that_present_type = true && that.isSetType();
-    if (this_present_type || that_present_type) {
-      if (!(this_present_type && that_present_type))
-        return false;
-      if (!this.type.equals(that.type))
-        return false;
-    }
-
-    boolean this_present_stringValue = true && this.isSetStringValue();
-    boolean that_present_stringValue = true && that.isSetStringValue();
-    if (this_present_stringValue || that_present_stringValue) {
-      if (!(this_present_stringValue && that_present_stringValue))
-        return false;
-      if (!this.stringValue.equals(that.stringValue))
-        return false;
-    }
-
-    boolean this_present_boolValue = true;
-    boolean that_present_boolValue = true;
-    if (this_present_boolValue || that_present_boolValue) {
-      if (!(this_present_boolValue && that_present_boolValue))
-        return false;
-      if (this.boolValue != that.boolValue)
-        return false;
-    }
-
-    boolean this_present_shortValue = true;
-    boolean that_present_shortValue = true;
-    if (this_present_shortValue || that_present_shortValue) {
-      if (!(this_present_shortValue && that_present_shortValue))
-        return false;
-      if (this.shortValue != that.shortValue)
-        return false;
-    }
-
-    boolean this_present_intValue = true;
-    boolean that_present_intValue = true;
-    if (this_present_intValue || that_present_intValue) {
-      if (!(this_present_intValue && that_present_intValue))
-        return false;
-      if (this.intValue != that.intValue)
-        return false;
-    }
-
-    boolean this_present_longValue = true;
-    boolean that_present_longValue = true;
-    if (this_present_longValue || that_present_longValue) {
-      if (!(this_present_longValue && that_present_longValue))
-        return false;
-      if (this.longValue != that.longValue)
-        return false;
-    }
-
-    boolean this_present_doubleValue = true;
-    boolean that_present_doubleValue = true;
-    if (this_present_doubleValue || that_present_doubleValue) {
-      if (!(this_present_doubleValue && that_present_doubleValue))
-        return false;
-      if (this.doubleValue != that.doubleValue)
-        return false;
-    }
-
-    boolean this_present_binaryValue = true && this.isSetBinaryValue();
-    boolean that_present_binaryValue = true && that.isSetBinaryValue();
-    if (this_present_binaryValue || that_present_binaryValue) {
-      if (!(this_present_binaryValue && that_present_binaryValue))
-        return false;
-      if (!this.binaryValue.equals(that.binaryValue))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(Value other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    Value typedOther = (Value)other;
-
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetStringValue()).compareTo(typedOther.isSetStringValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetStringValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stringValue, typedOther.stringValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetBoolValue()).compareTo(typedOther.isSetBoolValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetBoolValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.boolValue, typedOther.boolValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetShortValue()).compareTo(typedOther.isSetShortValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetShortValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortValue, typedOther.shortValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetIntValue()).compareTo(typedOther.isSetIntValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetIntValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.intValue, typedOther.intValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetLongValue()).compareTo(typedOther.isSetLongValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetLongValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.longValue, typedOther.longValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetDoubleValue()).compareTo(typedOther.isSetDoubleValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetDoubleValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doubleValue, typedOther.doubleValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetBinaryValue()).compareTo(typedOther.isSetBinaryValue());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetBinaryValue()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.binaryValue, typedOther.binaryValue);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    org.apache.thrift.protocol.TField field;
-    iprot.readStructBegin();
-    while (true)
-    {
-      field = iprot.readFieldBegin();
-      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-        break;
-      }
-      switch (field.id) {
-        case 1: // TYPE
-          if (field.type == org.apache.thrift.protocol.TType.I32) {
-            this.type = TYPE.findByValue(iprot.readI32());
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 2: // STRING_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-            this.stringValue = iprot.readString();
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 3: // BOOL_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-            this.boolValue = iprot.readBool();
-            setBoolValueIsSet(true);
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 4: // SHORT_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.I16) {
-            this.shortValue = iprot.readI16();
-            setShortValueIsSet(true);
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 5: // INT_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.I32) {
-            this.intValue = iprot.readI32();
-            setIntValueIsSet(true);
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 6: // LONG_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.I64) {
-            this.longValue = iprot.readI64();
-            setLongValueIsSet(true);
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 7: // DOUBLE_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-            this.doubleValue = iprot.readDouble();
-            setDoubleValueIsSet(true);
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        case 8: // BINARY_VALUE
-          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-            this.binaryValue = iprot.readBinary();
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        default:
-          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-      }
-      iprot.readFieldEnd();
-    }
-    iprot.readStructEnd();
-
-    // check for required fields of primitive type, which can't be checked in the validate method
-    validate();
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    validate();
-
-    oprot.writeStructBegin(STRUCT_DESC);
-    if (this.type != null) {
-      oprot.writeFieldBegin(TYPE_FIELD_DESC);
-      oprot.writeI32(this.type.getValue());
-      oprot.writeFieldEnd();
-    }
-    if (this.stringValue != null) {
-      oprot.writeFieldBegin(STRING_VALUE_FIELD_DESC);
-      oprot.writeString(this.stringValue);
-      oprot.writeFieldEnd();
-    }
-    oprot.writeFieldBegin(BOOL_VALUE_FIELD_DESC);
-    oprot.writeBool(this.boolValue);
-    oprot.writeFieldEnd();
-    oprot.writeFieldBegin(SHORT_VALUE_FIELD_DESC);
-    oprot.writeI16(this.shortValue);
-    oprot.writeFieldEnd();
-    oprot.writeFieldBegin(INT_VALUE_FIELD_DESC);
-    oprot.writeI32(this.intValue);
-    oprot.writeFieldEnd();
-    oprot.writeFieldBegin(LONG_VALUE_FIELD_DESC);
-    oprot.writeI64(this.longValue);
-    oprot.writeFieldEnd();
-    oprot.writeFieldBegin(DOUBLE_VALUE_FIELD_DESC);
-    oprot.writeDouble(this.doubleValue);
-    oprot.writeFieldEnd();
-    if (this.binaryValue != null) {
-      oprot.writeFieldBegin(BINARY_VALUE_FIELD_DESC);
-      oprot.writeBinary(this.binaryValue);
-      oprot.writeFieldEnd();
-    }
-    oprot.writeFieldStop();
-    oprot.writeStructEnd();
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("Value(");
-    boolean first = true;
-
-    sb.append("type:");
-    if (this.type == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.type);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("stringValue:");
-    if (this.stringValue == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.stringValue);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("boolValue:");
-    sb.append(this.boolValue);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("shortValue:");
-    sb.append(this.shortValue);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("intValue:");
-    sb.append(this.intValue);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("longValue:");
-    sb.append(this.longValue);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("doubleValue:");
-    sb.append(this.doubleValue);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("binaryValue:");
-    if (this.binaryValue == null) {
-      sb.append("null");
-    } else {
-      org.apache.thrift.TBaseHelper.toString(this.binaryValue, sb);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-      __isset_bit_vector = new BitSet(1);
-      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);
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/320f9de8/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/WriteSession.java
----------------------------------------------------------------------
diff --git a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/WriteSession.java b/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/WriteSession.java
deleted file mode 100644
index bb66e60..0000000
--- a/src/blur-new-api-prototype/src/main/java/org/apache/blur/thrift/generated/WriteSession.java
+++ /dev/null
@@ -1,319 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.7.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-package org.apache.blur.thrift.generated;
-
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class WriteSession implements org.apache.thrift.TBase<WriteSession, WriteSession._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WriteSession");
-
-  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);
-
-  public String sessionId; // 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");
-
-    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;
-        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)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WriteSession.class, metaDataMap);
-  }
-
-  public WriteSession() {
-  }
-
-  public WriteSession(
-    String sessionId)
-  {
-    this();
-    this.sessionId = sessionId;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public WriteSession(WriteSession other) {
-    if (other.isSetSessionId()) {
-      this.sessionId = other.sessionId;
-    }
-  }
-
-  public WriteSession deepCopy() {
-    return new WriteSession(this);
-  }
-
-  @Override
-  public void clear() {
-    this.sessionId = null;
-  }
-
-  public String getSessionId() {
-    return this.sessionId;
-  }
-
-  public WriteSession 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 void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case SESSION_ID:
-      if (value == null) {
-        unsetSessionId();
-      } else {
-        setSessionId((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case SESSION_ID:
-      return getSessionId();
-
-    }
-    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();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof WriteSession)
-      return this.equals((WriteSession)that);
-    return false;
-  }
-
-  public boolean equals(WriteSession 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;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(WriteSession other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    WriteSession typedOther = (WriteSession)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;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    org.apache.thrift.protocol.TField field;
-    iprot.readStructBegin();
-    while (true)
-    {
-      field = iprot.readFieldBegin();
-      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-        break;
-      }
-      switch (field.id) {
-        case 1: // SESSION_ID
-          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-            this.sessionId = iprot.readString();
-          } else { 
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-          }
-          break;
-        default:
-          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-      }
-      iprot.readFieldEnd();
-    }
-    iprot.readStructEnd();
-
-    // check for required fields of primitive type, which can't be checked in the validate method
-    validate();
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    validate();
-
-    oprot.writeStructBegin(STRUCT_DESC);
-    if (this.sessionId != null) {
-      oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
-      oprot.writeString(this.sessionId);
-      oprot.writeFieldEnd();
-    }
-    oprot.writeFieldStop();
-    oprot.writeStructEnd();
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("WriteSession(");
-    boolean first = true;
-
-    sb.append("sessionId:");
-    if (this.sessionId == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.sessionId);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-}
-


Mime
View raw message