incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [14/92] [abbrv] [partial] Fixed BLUR-126.
Date Tue, 11 Jun 2013 02:41:00 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java
new file mode 100644
index 0000000..dddb63d
--- /dev/null
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurResults.java
@@ -0,0 +1,1208 @@
+/**
+ * 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.blur.thirdparty.thrift_0_9_0.scheme.IScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.SchemeFactory;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.StandardScheme;
+
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.TupleScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolException;
+import org.apache.blur.thirdparty.thrift_0_9_0.EncodingUtils;
+import org.apache.blur.thirdparty.thrift_0_9_0.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 BlurResults implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<BlurResults, BlurResults._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("BlurResults");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TOTAL_RESULTS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("totalResults", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, (short)1);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField SHARD_INFO_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("shardInfo", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, (short)2);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField RESULTS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("results", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, (short)3);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FACET_COUNTS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("facetCounts", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, (short)4);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField EXCEPTIONS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("exceptions", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, (short)5);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField QUERY_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("query", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)6);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new BlurResultsStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new BlurResultsTupleSchemeFactory());
+  }
+
+  /**
+   * 
+   */
+  public long totalResults; // required
+  /**
+   * 
+   */
+  public Map<String,Long> shardInfo; // required
+  /**
+   * 
+   */
+  public List<BlurResult> results; // required
+  /**
+   * 
+   */
+  public List<Long> facetCounts; // required
+  /**
+   * 
+   */
+  public List<BlurException> exceptions; // required
+  /**
+   * 
+   */
+  public BlurQuery query; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
+    /**
+     * 
+     */
+    TOTAL_RESULTS((short)1, "totalResults"),
+    /**
+     * 
+     */
+    SHARD_INFO((short)2, "shardInfo"),
+    /**
+     * 
+     */
+    RESULTS((short)3, "results"),
+    /**
+     * 
+     */
+    FACET_COUNTS((short)4, "facetCounts"),
+    /**
+     * 
+     */
+    EXCEPTIONS((short)5, "exceptions"),
+    /**
+     * 
+     */
+    QUERY((short)6, "query");
+
+    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: // TOTAL_RESULTS
+          return TOTAL_RESULTS;
+        case 2: // SHARD_INFO
+          return SHARD_INFO;
+        case 3: // RESULTS
+          return RESULTS;
+        case 4: // FACET_COUNTS
+          return FACET_COUNTS;
+        case 5: // EXCEPTIONS
+          return EXCEPTIONS;
+        case 6: // QUERY
+          return QUERY;
+        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 __TOTALRESULTS_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.TOTAL_RESULTS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("totalResults", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64)));
+    tmpMap.put(_Fields.SHARD_INFO, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("shardInfo", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.MapMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING), 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64))));
+    tmpMap.put(_Fields.RESULTS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("results", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.ListMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, BlurResult.class))));
+    tmpMap.put(_Fields.FACET_COUNTS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("facetCounts", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.ListMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64))));
+    tmpMap.put(_Fields.EXCEPTIONS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("exceptions", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.ListMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT))));
+    tmpMap.put(_Fields.QUERY, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("query", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, BlurQuery.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(BlurResults.class, metaDataMap);
+  }
+
+  public BlurResults() {
+    this.totalResults = 0L;
+
+  }
+
+  public BlurResults(
+    long totalResults,
+    Map<String,Long> shardInfo,
+    List<BlurResult> results,
+    List<Long> facetCounts,
+    List<BlurException> exceptions,
+    BlurQuery query)
+  {
+    this();
+    this.totalResults = totalResults;
+    setTotalResultsIsSet(true);
+    this.shardInfo = shardInfo;
+    this.results = results;
+    this.facetCounts = facetCounts;
+    this.exceptions = exceptions;
+    this.query = query;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public BlurResults(BlurResults other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.totalResults = other.totalResults;
+    if (other.isSetShardInfo()) {
+      Map<String,Long> __this__shardInfo = new HashMap<String,Long>();
+      for (Map.Entry<String, Long> other_element : other.shardInfo.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        Long other_element_value = other_element.getValue();
+
+        String __this__shardInfo_copy_key = other_element_key;
+
+        Long __this__shardInfo_copy_value = other_element_value;
+
+        __this__shardInfo.put(__this__shardInfo_copy_key, __this__shardInfo_copy_value);
+      }
+      this.shardInfo = __this__shardInfo;
+    }
+    if (other.isSetResults()) {
+      List<BlurResult> __this__results = new ArrayList<BlurResult>();
+      for (BlurResult other_element : other.results) {
+        __this__results.add(new BlurResult(other_element));
+      }
+      this.results = __this__results;
+    }
+    if (other.isSetFacetCounts()) {
+      List<Long> __this__facetCounts = new ArrayList<Long>();
+      for (Long other_element : other.facetCounts) {
+        __this__facetCounts.add(other_element);
+      }
+      this.facetCounts = __this__facetCounts;
+    }
+    if (other.isSetExceptions()) {
+      List<BlurException> __this__exceptions = new ArrayList<BlurException>();
+      for (BlurException other_element : other.exceptions) {
+        __this__exceptions.add(new BlurException(other_element));
+      }
+      this.exceptions = __this__exceptions;
+    }
+    if (other.isSetQuery()) {
+      this.query = new BlurQuery(other.query);
+    }
+  }
+
+  public BlurResults deepCopy() {
+    return new BlurResults(this);
+  }
+
+  @Override
+  public void clear() {
+    this.totalResults = 0L;
+
+    this.shardInfo = null;
+    this.results = null;
+    this.facetCounts = null;
+    this.exceptions = null;
+    this.query = null;
+  }
+
+  /**
+   * 
+   */
+  public long getTotalResults() {
+    return this.totalResults;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setTotalResults(long totalResults) {
+    this.totalResults = totalResults;
+    setTotalResultsIsSet(true);
+    return this;
+  }
+
+  public void unsetTotalResults() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTALRESULTS_ISSET_ID);
+  }
+
+  /** Returns true if field totalResults is set (has been assigned a value) and false otherwise */
+  public boolean isSetTotalResults() {
+    return EncodingUtils.testBit(__isset_bitfield, __TOTALRESULTS_ISSET_ID);
+  }
+
+  public void setTotalResultsIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTALRESULTS_ISSET_ID, value);
+  }
+
+  public int getShardInfoSize() {
+    return (this.shardInfo == null) ? 0 : this.shardInfo.size();
+  }
+
+  public void putToShardInfo(String key, long val) {
+    if (this.shardInfo == null) {
+      this.shardInfo = new HashMap<String,Long>();
+    }
+    this.shardInfo.put(key, val);
+  }
+
+  /**
+   * 
+   */
+  public Map<String,Long> getShardInfo() {
+    return this.shardInfo;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setShardInfo(Map<String,Long> shardInfo) {
+    this.shardInfo = shardInfo;
+    return this;
+  }
+
+  public void unsetShardInfo() {
+    this.shardInfo = null;
+  }
+
+  /** Returns true if field shardInfo is set (has been assigned a value) and false otherwise */
+  public boolean isSetShardInfo() {
+    return this.shardInfo != null;
+  }
+
+  public void setShardInfoIsSet(boolean value) {
+    if (!value) {
+      this.shardInfo = null;
+    }
+  }
+
+  public int getResultsSize() {
+    return (this.results == null) ? 0 : this.results.size();
+  }
+
+  public java.util.Iterator<BlurResult> getResultsIterator() {
+    return (this.results == null) ? null : this.results.iterator();
+  }
+
+  public void addToResults(BlurResult elem) {
+    if (this.results == null) {
+      this.results = new ArrayList<BlurResult>();
+    }
+    this.results.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public List<BlurResult> getResults() {
+    return this.results;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setResults(List<BlurResult> results) {
+    this.results = results;
+    return this;
+  }
+
+  public void unsetResults() {
+    this.results = null;
+  }
+
+  /** Returns true if field results is set (has been assigned a value) and false otherwise */
+  public boolean isSetResults() {
+    return this.results != null;
+  }
+
+  public void setResultsIsSet(boolean value) {
+    if (!value) {
+      this.results = null;
+    }
+  }
+
+  public int getFacetCountsSize() {
+    return (this.facetCounts == null) ? 0 : this.facetCounts.size();
+  }
+
+  public java.util.Iterator<Long> getFacetCountsIterator() {
+    return (this.facetCounts == null) ? null : this.facetCounts.iterator();
+  }
+
+  public void addToFacetCounts(long elem) {
+    if (this.facetCounts == null) {
+      this.facetCounts = new ArrayList<Long>();
+    }
+    this.facetCounts.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public List<Long> getFacetCounts() {
+    return this.facetCounts;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setFacetCounts(List<Long> facetCounts) {
+    this.facetCounts = facetCounts;
+    return this;
+  }
+
+  public void unsetFacetCounts() {
+    this.facetCounts = null;
+  }
+
+  /** Returns true if field facetCounts is set (has been assigned a value) and false otherwise */
+  public boolean isSetFacetCounts() {
+    return this.facetCounts != null;
+  }
+
+  public void setFacetCountsIsSet(boolean value) {
+    if (!value) {
+      this.facetCounts = null;
+    }
+  }
+
+  public int getExceptionsSize() {
+    return (this.exceptions == null) ? 0 : this.exceptions.size();
+  }
+
+  public java.util.Iterator<BlurException> getExceptionsIterator() {
+    return (this.exceptions == null) ? null : this.exceptions.iterator();
+  }
+
+  public void addToExceptions(BlurException elem) {
+    if (this.exceptions == null) {
+      this.exceptions = new ArrayList<BlurException>();
+    }
+    this.exceptions.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public List<BlurException> getExceptions() {
+    return this.exceptions;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setExceptions(List<BlurException> exceptions) {
+    this.exceptions = exceptions;
+    return this;
+  }
+
+  public void unsetExceptions() {
+    this.exceptions = null;
+  }
+
+  /** Returns true if field exceptions is set (has been assigned a value) and false otherwise */
+  public boolean isSetExceptions() {
+    return this.exceptions != null;
+  }
+
+  public void setExceptionsIsSet(boolean value) {
+    if (!value) {
+      this.exceptions = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public BlurQuery getQuery() {
+    return this.query;
+  }
+
+  /**
+   * 
+   */
+  public BlurResults setQuery(BlurQuery query) {
+    this.query = query;
+    return this;
+  }
+
+  public void unsetQuery() {
+    this.query = null;
+  }
+
+  /** Returns true if field query is set (has been assigned a value) and false otherwise */
+  public boolean isSetQuery() {
+    return this.query != null;
+  }
+
+  public void setQueryIsSet(boolean value) {
+    if (!value) {
+      this.query = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case TOTAL_RESULTS:
+      if (value == null) {
+        unsetTotalResults();
+      } else {
+        setTotalResults((Long)value);
+      }
+      break;
+
+    case SHARD_INFO:
+      if (value == null) {
+        unsetShardInfo();
+      } else {
+        setShardInfo((Map<String,Long>)value);
+      }
+      break;
+
+    case RESULTS:
+      if (value == null) {
+        unsetResults();
+      } else {
+        setResults((List<BlurResult>)value);
+      }
+      break;
+
+    case FACET_COUNTS:
+      if (value == null) {
+        unsetFacetCounts();
+      } else {
+        setFacetCounts((List<Long>)value);
+      }
+      break;
+
+    case EXCEPTIONS:
+      if (value == null) {
+        unsetExceptions();
+      } else {
+        setExceptions((List<BlurException>)value);
+      }
+      break;
+
+    case QUERY:
+      if (value == null) {
+        unsetQuery();
+      } else {
+        setQuery((BlurQuery)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case TOTAL_RESULTS:
+      return Long.valueOf(getTotalResults());
+
+    case SHARD_INFO:
+      return getShardInfo();
+
+    case RESULTS:
+      return getResults();
+
+    case FACET_COUNTS:
+      return getFacetCounts();
+
+    case EXCEPTIONS:
+      return getExceptions();
+
+    case QUERY:
+      return getQuery();
+
+    }
+    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 TOTAL_RESULTS:
+      return isSetTotalResults();
+    case SHARD_INFO:
+      return isSetShardInfo();
+    case RESULTS:
+      return isSetResults();
+    case FACET_COUNTS:
+      return isSetFacetCounts();
+    case EXCEPTIONS:
+      return isSetExceptions();
+    case QUERY:
+      return isSetQuery();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof BlurResults)
+      return this.equals((BlurResults)that);
+    return false;
+  }
+
+  public boolean equals(BlurResults that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_totalResults = true;
+    boolean that_present_totalResults = true;
+    if (this_present_totalResults || that_present_totalResults) {
+      if (!(this_present_totalResults && that_present_totalResults))
+        return false;
+      if (this.totalResults != that.totalResults)
+        return false;
+    }
+
+    boolean this_present_shardInfo = true && this.isSetShardInfo();
+    boolean that_present_shardInfo = true && that.isSetShardInfo();
+    if (this_present_shardInfo || that_present_shardInfo) {
+      if (!(this_present_shardInfo && that_present_shardInfo))
+        return false;
+      if (!this.shardInfo.equals(that.shardInfo))
+        return false;
+    }
+
+    boolean this_present_results = true && this.isSetResults();
+    boolean that_present_results = true && that.isSetResults();
+    if (this_present_results || that_present_results) {
+      if (!(this_present_results && that_present_results))
+        return false;
+      if (!this.results.equals(that.results))
+        return false;
+    }
+
+    boolean this_present_facetCounts = true && this.isSetFacetCounts();
+    boolean that_present_facetCounts = true && that.isSetFacetCounts();
+    if (this_present_facetCounts || that_present_facetCounts) {
+      if (!(this_present_facetCounts && that_present_facetCounts))
+        return false;
+      if (!this.facetCounts.equals(that.facetCounts))
+        return false;
+    }
+
+    boolean this_present_exceptions = true && this.isSetExceptions();
+    boolean that_present_exceptions = true && that.isSetExceptions();
+    if (this_present_exceptions || that_present_exceptions) {
+      if (!(this_present_exceptions && that_present_exceptions))
+        return false;
+      if (!this.exceptions.equals(that.exceptions))
+        return false;
+    }
+
+    boolean this_present_query = true && this.isSetQuery();
+    boolean that_present_query = true && that.isSetQuery();
+    if (this_present_query || that_present_query) {
+      if (!(this_present_query && that_present_query))
+        return false;
+      if (!this.query.equals(that.query))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(BlurResults other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    BlurResults typedOther = (BlurResults)other;
+
+    lastComparison = Boolean.valueOf(isSetTotalResults()).compareTo(typedOther.isSetTotalResults());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTotalResults()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.totalResults, typedOther.totalResults);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetShardInfo()).compareTo(typedOther.isSetShardInfo());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetShardInfo()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.shardInfo, typedOther.shardInfo);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetResults()).compareTo(typedOther.isSetResults());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetResults()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.results, typedOther.results);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFacetCounts()).compareTo(typedOther.isSetFacetCounts());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFacetCounts()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.facetCounts, typedOther.facetCounts);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetExceptions()).compareTo(typedOther.isSetExceptions());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetExceptions()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.exceptions, typedOther.exceptions);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQuery()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.query, typedOther.query);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("BlurResults(");
+    boolean first = true;
+
+    sb.append("totalResults:");
+    sb.append(this.totalResults);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("shardInfo:");
+    if (this.shardInfo == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.shardInfo);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("results:");
+    if (this.results == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.results);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("facetCounts:");
+    if (this.facetCounts == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.facetCounts);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("exceptions:");
+    if (this.exceptions == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.exceptions);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("query:");
+    if (this.query == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.query);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    // check for required fields
+    // check for sub-struct validity
+    if (query != null) {
+      query.validate();
+    }
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(out)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(in)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class BlurResultsStandardSchemeFactory implements SchemeFactory {
+    public BlurResultsStandardScheme getScheme() {
+      return new BlurResultsStandardScheme();
+    }
+  }
+
+  private static class BlurResultsStandardScheme extends StandardScheme<BlurResults> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, BlurResults struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // TOTAL_RESULTS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64) {
+              struct.totalResults = iprot.readI64();
+              struct.setTotalResultsIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // SHARD_INFO
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map58 = iprot.readMapBegin();
+                struct.shardInfo = new HashMap<String,Long>(2*_map58.size);
+                for (int _i59 = 0; _i59 < _map58.size; ++_i59)
+                {
+                  String _key60; // required
+                  long _val61; // optional
+                  _key60 = iprot.readString();
+                  _val61 = iprot.readI64();
+                  struct.shardInfo.put(_key60, _val61);
+                }
+                iprot.readMapEnd();
+              }
+              struct.setShardInfoIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // RESULTS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list62 = iprot.readListBegin();
+                struct.results = new ArrayList<BlurResult>(_list62.size);
+                for (int _i63 = 0; _i63 < _list62.size; ++_i63)
+                {
+                  BlurResult _elem64; // required
+                  _elem64 = new BlurResult();
+                  _elem64.read(iprot);
+                  struct.results.add(_elem64);
+                }
+                iprot.readListEnd();
+              }
+              struct.setResultsIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // FACET_COUNTS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list65 = iprot.readListBegin();
+                struct.facetCounts = new ArrayList<Long>(_list65.size);
+                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
+                {
+                  long _elem67; // required
+                  _elem67 = iprot.readI64();
+                  struct.facetCounts.add(_elem67);
+                }
+                iprot.readListEnd();
+              }
+              struct.setFacetCountsIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // EXCEPTIONS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list68 = iprot.readListBegin();
+                struct.exceptions = new ArrayList<BlurException>(_list68.size);
+                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
+                {
+                  BlurException _elem70; // required
+                  _elem70 = new BlurException();
+                  _elem70.read(iprot);
+                  struct.exceptions.add(_elem70);
+                }
+                iprot.readListEnd();
+              }
+              struct.setExceptionsIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // QUERY
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) {
+              struct.query = new BlurQuery();
+              struct.query.read(iprot);
+              struct.setQueryIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, BlurResults struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(TOTAL_RESULTS_FIELD_DESC);
+      oprot.writeI64(struct.totalResults);
+      oprot.writeFieldEnd();
+      if (struct.shardInfo != null) {
+        oprot.writeFieldBegin(SHARD_INFO_FIELD_DESC);
+        {
+          oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, struct.shardInfo.size()));
+          for (Map.Entry<String, Long> _iter71 : struct.shardInfo.entrySet())
+          {
+            oprot.writeString(_iter71.getKey());
+            oprot.writeI64(_iter71.getValue());
+          }
+          oprot.writeMapEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      if (struct.results != null) {
+        oprot.writeFieldBegin(RESULTS_FIELD_DESC);
+        {
+          oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.results.size()));
+          for (BlurResult _iter72 : struct.results)
+          {
+            _iter72.write(oprot);
+          }
+          oprot.writeListEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      if (struct.facetCounts != null) {
+        oprot.writeFieldBegin(FACET_COUNTS_FIELD_DESC);
+        {
+          oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, struct.facetCounts.size()));
+          for (long _iter73 : struct.facetCounts)
+          {
+            oprot.writeI64(_iter73);
+          }
+          oprot.writeListEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      if (struct.exceptions != null) {
+        oprot.writeFieldBegin(EXCEPTIONS_FIELD_DESC);
+        {
+          oprot.writeListBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.exceptions.size()));
+          for (BlurException _iter74 : struct.exceptions)
+          {
+            _iter74.write(oprot);
+          }
+          oprot.writeListEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      if (struct.query != null) {
+        oprot.writeFieldBegin(QUERY_FIELD_DESC);
+        struct.query.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class BlurResultsTupleSchemeFactory implements SchemeFactory {
+    public BlurResultsTupleScheme getScheme() {
+      return new BlurResultsTupleScheme();
+    }
+  }
+
+  private static class BlurResultsTupleScheme extends TupleScheme<BlurResults> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurResults struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetTotalResults()) {
+        optionals.set(0);
+      }
+      if (struct.isSetShardInfo()) {
+        optionals.set(1);
+      }
+      if (struct.isSetResults()) {
+        optionals.set(2);
+      }
+      if (struct.isSetFacetCounts()) {
+        optionals.set(3);
+      }
+      if (struct.isSetExceptions()) {
+        optionals.set(4);
+      }
+      if (struct.isSetQuery()) {
+        optionals.set(5);
+      }
+      oprot.writeBitSet(optionals, 6);
+      if (struct.isSetTotalResults()) {
+        oprot.writeI64(struct.totalResults);
+      }
+      if (struct.isSetShardInfo()) {
+        {
+          oprot.writeI32(struct.shardInfo.size());
+          for (Map.Entry<String, Long> _iter75 : struct.shardInfo.entrySet())
+          {
+            oprot.writeString(_iter75.getKey());
+            oprot.writeI64(_iter75.getValue());
+          }
+        }
+      }
+      if (struct.isSetResults()) {
+        {
+          oprot.writeI32(struct.results.size());
+          for (BlurResult _iter76 : struct.results)
+          {
+            _iter76.write(oprot);
+          }
+        }
+      }
+      if (struct.isSetFacetCounts()) {
+        {
+          oprot.writeI32(struct.facetCounts.size());
+          for (long _iter77 : struct.facetCounts)
+          {
+            oprot.writeI64(_iter77);
+          }
+        }
+      }
+      if (struct.isSetExceptions()) {
+        {
+          oprot.writeI32(struct.exceptions.size());
+          for (BlurException _iter78 : struct.exceptions)
+          {
+            _iter78.write(oprot);
+          }
+        }
+      }
+      if (struct.isSetQuery()) {
+        struct.query.write(oprot);
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurResults struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(6);
+      if (incoming.get(0)) {
+        struct.totalResults = iprot.readI64();
+        struct.setTotalResultsIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map79 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
+          struct.shardInfo = new HashMap<String,Long>(2*_map79.size);
+          for (int _i80 = 0; _i80 < _map79.size; ++_i80)
+          {
+            String _key81; // required
+            long _val82; // optional
+            _key81 = iprot.readString();
+            _val82 = iprot.readI64();
+            struct.shardInfo.put(_key81, _val82);
+          }
+        }
+        struct.setShardInfoIsSet(true);
+      }
+      if (incoming.get(2)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list83 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.results = new ArrayList<BlurResult>(_list83.size);
+          for (int _i84 = 0; _i84 < _list83.size; ++_i84)
+          {
+            BlurResult _elem85; // required
+            _elem85 = new BlurResult();
+            _elem85.read(iprot);
+            struct.results.add(_elem85);
+          }
+        }
+        struct.setResultsIsSet(true);
+      }
+      if (incoming.get(3)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list86 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
+          struct.facetCounts = new ArrayList<Long>(_list86.size);
+          for (int _i87 = 0; _i87 < _list86.size; ++_i87)
+          {
+            long _elem88; // required
+            _elem88 = iprot.readI64();
+            struct.facetCounts.add(_elem88);
+          }
+        }
+        struct.setFacetCountsIsSet(true);
+      }
+      if (incoming.get(4)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list89 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.exceptions = new ArrayList<BlurException>(_list89.size);
+          for (int _i90 = 0; _i90 < _list89.size; ++_i90)
+          {
+            BlurException _elem91; // required
+            _elem91 = new BlurException();
+            _elem91.read(iprot);
+            struct.exceptions.add(_elem91);
+          }
+        }
+        struct.setExceptionsIsSet(true);
+      }
+      if (incoming.get(5)) {
+        struct.query = new BlurQuery();
+        struct.query.read(iprot);
+        struct.setQueryIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java
new file mode 100644
index 0000000..a46920a
--- /dev/null
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Column.java
@@ -0,0 +1,532 @@
+/**
+ * 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.blur.thirdparty.thrift_0_9_0.scheme.IScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.SchemeFactory;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.StandardScheme;
+
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.TupleScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolException;
+import org.apache.blur.thirdparty.thrift_0_9_0.EncodingUtils;
+import org.apache.blur.thirdparty.thrift_0_9_0.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;
+
+/**
+ * Column is the lowest storage element in Blur, it stores a single name and value pair.
+ */
+public class Column implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Column, Column._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("Column");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("name", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField VALUE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("value", org.apache.blur.thirdparty.thrift_0_9_0.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 ColumnStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ColumnTupleSchemeFactory());
+  }
+
+  /**
+   * The name of the column.
+   */
+  public String name; // required
+  /**
+   * The value to be indexed and stored.
+   */
+  public String value; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
+    /**
+     * The name of the column.
+     */
+    NAME((short)1, "name"),
+    /**
+     * The value to be indexed and stored.
+     */
+    VALUE((short)2, "value");
+
+    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: // NAME
+          return NAME;
+        case 2: // VALUE
+          return 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
+  public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("name", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING)));
+    tmpMap.put(_Fields.VALUE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("value", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(Column.class, metaDataMap);
+  }
+
+  public Column() {
+  }
+
+  public Column(
+    String name,
+    String value)
+  {
+    this();
+    this.name = name;
+    this.value = value;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public Column(Column other) {
+    if (other.isSetName()) {
+      this.name = other.name;
+    }
+    if (other.isSetValue()) {
+      this.value = other.value;
+    }
+  }
+
+  public Column deepCopy() {
+    return new Column(this);
+  }
+
+  @Override
+  public void clear() {
+    this.name = null;
+    this.value = null;
+  }
+
+  /**
+   * The name of the column.
+   */
+  public String getName() {
+    return this.name;
+  }
+
+  /**
+   * The name of the column.
+   */
+  public Column setName(String name) {
+    this.name = name;
+    return this;
+  }
+
+  public void unsetName() {
+    this.name = null;
+  }
+
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
+  public boolean isSetName() {
+    return this.name != null;
+  }
+
+  public void setNameIsSet(boolean value) {
+    if (!value) {
+      this.name = null;
+    }
+  }
+
+  /**
+   * The value to be indexed and stored.
+   */
+  public String getValue() {
+    return this.value;
+  }
+
+  /**
+   * The value to be indexed and stored.
+   */
+  public Column setValue(String value) {
+    this.value = value;
+    return this;
+  }
+
+  public void unsetValue() {
+    this.value = null;
+  }
+
+  /** Returns true if field value is set (has been assigned a value) and false otherwise */
+  public boolean isSetValue() {
+    return this.value != null;
+  }
+
+  public void setValueIsSet(boolean value) {
+    if (!value) {
+      this.value = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case NAME:
+      if (value == null) {
+        unsetName();
+      } else {
+        setName((String)value);
+      }
+      break;
+
+    case VALUE:
+      if (value == null) {
+        unsetValue();
+      } else {
+        setValue((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case NAME:
+      return getName();
+
+    case VALUE:
+      return getValue();
+
+    }
+    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 NAME:
+      return isSetName();
+    case VALUE:
+      return isSetValue();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof Column)
+      return this.equals((Column)that);
+    return false;
+  }
+
+  public boolean equals(Column that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_name = true && this.isSetName();
+    boolean that_present_name = true && that.isSetName();
+    if (this_present_name || that_present_name) {
+      if (!(this_present_name && that_present_name))
+        return false;
+      if (!this.name.equals(that.name))
+        return false;
+    }
+
+    boolean this_present_value = true && this.isSetValue();
+    boolean that_present_value = true && that.isSetValue();
+    if (this_present_value || that_present_value) {
+      if (!(this_present_value && that_present_value))
+        return false;
+      if (!this.value.equals(that.value))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(Column other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    Column typedOther = (Column)other;
+
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetName()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.name, typedOther.name);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetValue()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.value, typedOther.value);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("Column(");
+    boolean first = true;
+
+    sb.append("name:");
+    if (this.name == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.name);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("value:");
+    if (this.value == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.value);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(out)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(in)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class ColumnStandardSchemeFactory implements SchemeFactory {
+    public ColumnStandardScheme getScheme() {
+      return new ColumnStandardScheme();
+    }
+  }
+
+  private static class ColumnStandardScheme extends StandardScheme<Column> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, Column struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // NAME
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.name = iprot.readString();
+              struct.setNameIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // VALUE
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.value = iprot.readString();
+              struct.setValueIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, Column struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.name != null) {
+        oprot.writeFieldBegin(NAME_FIELD_DESC);
+        oprot.writeString(struct.name);
+        oprot.writeFieldEnd();
+      }
+      if (struct.value != null) {
+        oprot.writeFieldBegin(VALUE_FIELD_DESC);
+        oprot.writeString(struct.value);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ColumnTupleSchemeFactory implements SchemeFactory {
+    public ColumnTupleScheme getScheme() {
+      return new ColumnTupleScheme();
+    }
+  }
+
+  private static class ColumnTupleScheme extends TupleScheme<Column> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Column struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetName()) {
+        optionals.set(0);
+      }
+      if (struct.isSetValue()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetName()) {
+        oprot.writeString(struct.name);
+      }
+      if (struct.isSetValue()) {
+        oprot.writeString(struct.value);
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Column struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.name = iprot.readString();
+        struct.setNameIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.value = iprot.readString();
+        struct.setValueIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java
new file mode 100644
index 0000000..7025e63
--- /dev/null
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java
@@ -0,0 +1,674 @@
+/**
+ * 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.blur.thirdparty.thrift_0_9_0.scheme.IScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.SchemeFactory;
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.StandardScheme;
+
+import org.apache.blur.thirdparty.thrift_0_9_0.scheme.TupleScheme;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol;
+import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolException;
+import org.apache.blur.thirdparty.thrift_0_9_0.EncodingUtils;
+import org.apache.blur.thirdparty.thrift_0_9_0.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 ColumnDefinition implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<ColumnDefinition, ColumnDefinition._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("ColumnDefinition");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField ANALYZER_CLASS_NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("analyzerClassName", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FULL_TEXT_INDEX_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("fullTextIndex", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL, (short)2);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField ALTERNATE_COLUMN_DEFINITIONS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("alternateColumnDefinitions", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, (short)3);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ColumnDefinitionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ColumnDefinitionTupleSchemeFactory());
+  }
+
+  public String analyzerClassName; // required
+  public boolean fullTextIndex; // required
+  public Map<String,AlternateColumnDefinition> alternateColumnDefinitions; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
+    ANALYZER_CLASS_NAME((short)1, "analyzerClassName"),
+    FULL_TEXT_INDEX((short)2, "fullTextIndex"),
+    ALTERNATE_COLUMN_DEFINITIONS((short)3, "alternateColumnDefinitions");
+
+    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: // ANALYZER_CLASS_NAME
+          return ANALYZER_CLASS_NAME;
+        case 2: // FULL_TEXT_INDEX
+          return FULL_TEXT_INDEX;
+        case 3: // ALTERNATE_COLUMN_DEFINITIONS
+          return ALTERNATE_COLUMN_DEFINITIONS;
+        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 __FULLTEXTINDEX_ISSET_ID = 0;
+  private byte __isset_bitfield = 0;
+  public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.ANALYZER_CLASS_NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("analyzerClassName", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING)));
+    tmpMap.put(_Fields.FULL_TEXT_INDEX, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("fullTextIndex", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.ALTERNATE_COLUMN_DEFINITIONS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("alternateColumnDefinitions", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
+        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.MapMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING), 
+            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, AlternateColumnDefinition.class))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(ColumnDefinition.class, metaDataMap);
+  }
+
+  public ColumnDefinition() {
+    this.analyzerClassName = "org.apache.lucene.analysis.standard.StandardAnalyzer";
+
+  }
+
+  public ColumnDefinition(
+    String analyzerClassName,
+    boolean fullTextIndex,
+    Map<String,AlternateColumnDefinition> alternateColumnDefinitions)
+  {
+    this();
+    this.analyzerClassName = analyzerClassName;
+    this.fullTextIndex = fullTextIndex;
+    setFullTextIndexIsSet(true);
+    this.alternateColumnDefinitions = alternateColumnDefinitions;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnDefinition(ColumnDefinition other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetAnalyzerClassName()) {
+      this.analyzerClassName = other.analyzerClassName;
+    }
+    this.fullTextIndex = other.fullTextIndex;
+    if (other.isSetAlternateColumnDefinitions()) {
+      Map<String,AlternateColumnDefinition> __this__alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>();
+      for (Map.Entry<String, AlternateColumnDefinition> other_element : other.alternateColumnDefinitions.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        AlternateColumnDefinition other_element_value = other_element.getValue();
+
+        String __this__alternateColumnDefinitions_copy_key = other_element_key;
+
+        AlternateColumnDefinition __this__alternateColumnDefinitions_copy_value = new AlternateColumnDefinition(other_element_value);
+
+        __this__alternateColumnDefinitions.put(__this__alternateColumnDefinitions_copy_key, __this__alternateColumnDefinitions_copy_value);
+      }
+      this.alternateColumnDefinitions = __this__alternateColumnDefinitions;
+    }
+  }
+
+  public ColumnDefinition deepCopy() {
+    return new ColumnDefinition(this);
+  }
+
+  @Override
+  public void clear() {
+    this.analyzerClassName = "org.apache.lucene.analysis.standard.StandardAnalyzer";
+
+    setFullTextIndexIsSet(false);
+    this.fullTextIndex = false;
+    this.alternateColumnDefinitions = null;
+  }
+
+  public String getAnalyzerClassName() {
+    return this.analyzerClassName;
+  }
+
+  public ColumnDefinition setAnalyzerClassName(String analyzerClassName) {
+    this.analyzerClassName = analyzerClassName;
+    return this;
+  }
+
+  public void unsetAnalyzerClassName() {
+    this.analyzerClassName = null;
+  }
+
+  /** Returns true if field analyzerClassName is set (has been assigned a value) and false otherwise */
+  public boolean isSetAnalyzerClassName() {
+    return this.analyzerClassName != null;
+  }
+
+  public void setAnalyzerClassNameIsSet(boolean value) {
+    if (!value) {
+      this.analyzerClassName = null;
+    }
+  }
+
+  public boolean isFullTextIndex() {
+    return this.fullTextIndex;
+  }
+
+  public ColumnDefinition setFullTextIndex(boolean fullTextIndex) {
+    this.fullTextIndex = fullTextIndex;
+    setFullTextIndexIsSet(true);
+    return this;
+  }
+
+  public void unsetFullTextIndex() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FULLTEXTINDEX_ISSET_ID);
+  }
+
+  /** Returns true if field fullTextIndex is set (has been assigned a value) and false otherwise */
+  public boolean isSetFullTextIndex() {
+    return EncodingUtils.testBit(__isset_bitfield, __FULLTEXTINDEX_ISSET_ID);
+  }
+
+  public void setFullTextIndexIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FULLTEXTINDEX_ISSET_ID, value);
+  }
+
+  public int getAlternateColumnDefinitionsSize() {
+    return (this.alternateColumnDefinitions == null) ? 0 : this.alternateColumnDefinitions.size();
+  }
+
+  public void putToAlternateColumnDefinitions(String key, AlternateColumnDefinition val) {
+    if (this.alternateColumnDefinitions == null) {
+      this.alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>();
+    }
+    this.alternateColumnDefinitions.put(key, val);
+  }
+
+  public Map<String,AlternateColumnDefinition> getAlternateColumnDefinitions() {
+    return this.alternateColumnDefinitions;
+  }
+
+  public ColumnDefinition setAlternateColumnDefinitions(Map<String,AlternateColumnDefinition> alternateColumnDefinitions) {
+    this.alternateColumnDefinitions = alternateColumnDefinitions;
+    return this;
+  }
+
+  public void unsetAlternateColumnDefinitions() {
+    this.alternateColumnDefinitions = null;
+  }
+
+  /** Returns true if field alternateColumnDefinitions is set (has been assigned a value) and false otherwise */
+  public boolean isSetAlternateColumnDefinitions() {
+    return this.alternateColumnDefinitions != null;
+  }
+
+  public void setAlternateColumnDefinitionsIsSet(boolean value) {
+    if (!value) {
+      this.alternateColumnDefinitions = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case ANALYZER_CLASS_NAME:
+      if (value == null) {
+        unsetAnalyzerClassName();
+      } else {
+        setAnalyzerClassName((String)value);
+      }
+      break;
+
+    case FULL_TEXT_INDEX:
+      if (value == null) {
+        unsetFullTextIndex();
+      } else {
+        setFullTextIndex((Boolean)value);
+      }
+      break;
+
+    case ALTERNATE_COLUMN_DEFINITIONS:
+      if (value == null) {
+        unsetAlternateColumnDefinitions();
+      } else {
+        setAlternateColumnDefinitions((Map<String,AlternateColumnDefinition>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case ANALYZER_CLASS_NAME:
+      return getAnalyzerClassName();
+
+    case FULL_TEXT_INDEX:
+      return Boolean.valueOf(isFullTextIndex());
+
+    case ALTERNATE_COLUMN_DEFINITIONS:
+      return getAlternateColumnDefinitions();
+
+    }
+    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 ANALYZER_CLASS_NAME:
+      return isSetAnalyzerClassName();
+    case FULL_TEXT_INDEX:
+      return isSetFullTextIndex();
+    case ALTERNATE_COLUMN_DEFINITIONS:
+      return isSetAlternateColumnDefinitions();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ColumnDefinition)
+      return this.equals((ColumnDefinition)that);
+    return false;
+  }
+
+  public boolean equals(ColumnDefinition that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_analyzerClassName = true && this.isSetAnalyzerClassName();
+    boolean that_present_analyzerClassName = true && that.isSetAnalyzerClassName();
+    if (this_present_analyzerClassName || that_present_analyzerClassName) {
+      if (!(this_present_analyzerClassName && that_present_analyzerClassName))
+        return false;
+      if (!this.analyzerClassName.equals(that.analyzerClassName))
+        return false;
+    }
+
+    boolean this_present_fullTextIndex = true;
+    boolean that_present_fullTextIndex = true;
+    if (this_present_fullTextIndex || that_present_fullTextIndex) {
+      if (!(this_present_fullTextIndex && that_present_fullTextIndex))
+        return false;
+      if (this.fullTextIndex != that.fullTextIndex)
+        return false;
+    }
+
+    boolean this_present_alternateColumnDefinitions = true && this.isSetAlternateColumnDefinitions();
+    boolean that_present_alternateColumnDefinitions = true && that.isSetAlternateColumnDefinitions();
+    if (this_present_alternateColumnDefinitions || that_present_alternateColumnDefinitions) {
+      if (!(this_present_alternateColumnDefinitions && that_present_alternateColumnDefinitions))
+        return false;
+      if (!this.alternateColumnDefinitions.equals(that.alternateColumnDefinitions))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(ColumnDefinition other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    ColumnDefinition typedOther = (ColumnDefinition)other;
+
+    lastComparison = Boolean.valueOf(isSetAnalyzerClassName()).compareTo(typedOther.isSetAnalyzerClassName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAnalyzerClassName()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.analyzerClassName, typedOther.analyzerClassName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFullTextIndex()).compareTo(typedOther.isSetFullTextIndex());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFullTextIndex()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.fullTextIndex, typedOther.fullTextIndex);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAlternateColumnDefinitions()).compareTo(typedOther.isSetAlternateColumnDefinitions());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAlternateColumnDefinitions()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.alternateColumnDefinitions, typedOther.alternateColumnDefinitions);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("ColumnDefinition(");
+    boolean first = true;
+
+    sb.append("analyzerClassName:");
+    if (this.analyzerClassName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.analyzerClassName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("fullTextIndex:");
+    sb.append(this.fullTextIndex);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("alternateColumnDefinitions:");
+    if (this.alternateColumnDefinitions == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.alternateColumnDefinitions);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(out)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(in)));
+    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class ColumnDefinitionStandardSchemeFactory implements SchemeFactory {
+    public ColumnDefinitionStandardScheme getScheme() {
+      return new ColumnDefinitionStandardScheme();
+    }
+  }
+
+  private static class ColumnDefinitionStandardScheme extends StandardScheme<ColumnDefinition> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, ColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // ANALYZER_CLASS_NAME
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.analyzerClassName = iprot.readString();
+              struct.setAnalyzerClassNameIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // FULL_TEXT_INDEX
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL) {
+              struct.fullTextIndex = iprot.readBool();
+              struct.setFullTextIndexIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // ALTERNATE_COLUMN_DEFINITIONS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map128 = iprot.readMapBegin();
+                struct.alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>(2*_map128.size);
+                for (int _i129 = 0; _i129 < _map128.size; ++_i129)
+                {
+                  String _key130; // required
+                  AlternateColumnDefinition _val131; // optional
+                  _key130 = iprot.readString();
+                  _val131 = new AlternateColumnDefinition();
+                  _val131.read(iprot);
+                  struct.alternateColumnDefinitions.put(_key130, _val131);
+                }
+                iprot.readMapEnd();
+              }
+              struct.setAlternateColumnDefinitionsIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.blur.thirdparty.thrift_0_9_0.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.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, ColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.analyzerClassName != null) {
+        oprot.writeFieldBegin(ANALYZER_CLASS_NAME_FIELD_DESC);
+        oprot.writeString(struct.analyzerClassName);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(FULL_TEXT_INDEX_FIELD_DESC);
+      oprot.writeBool(struct.fullTextIndex);
+      oprot.writeFieldEnd();
+      if (struct.alternateColumnDefinitions != null) {
+        oprot.writeFieldBegin(ALTERNATE_COLUMN_DEFINITIONS_FIELD_DESC);
+        {
+          oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.alternateColumnDefinitions.size()));
+          for (Map.Entry<String, AlternateColumnDefinition> _iter132 : struct.alternateColumnDefinitions.entrySet())
+          {
+            oprot.writeString(_iter132.getKey());
+            _iter132.getValue().write(oprot);
+          }
+          oprot.writeMapEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ColumnDefinitionTupleSchemeFactory implements SchemeFactory {
+    public ColumnDefinitionTupleScheme getScheme() {
+      return new ColumnDefinitionTupleScheme();
+    }
+  }
+
+  private static class ColumnDefinitionTupleScheme extends TupleScheme<ColumnDefinition> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetAnalyzerClassName()) {
+        optionals.set(0);
+      }
+      if (struct.isSetFullTextIndex()) {
+        optionals.set(1);
+      }
+      if (struct.isSetAlternateColumnDefinitions()) {
+        optionals.set(2);
+      }
+      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetAnalyzerClassName()) {
+        oprot.writeString(struct.analyzerClassName);
+      }
+      if (struct.isSetFullTextIndex()) {
+        oprot.writeBool(struct.fullTextIndex);
+      }
+      if (struct.isSetAlternateColumnDefinitions()) {
+        {
+          oprot.writeI32(struct.alternateColumnDefinitions.size());
+          for (Map.Entry<String, AlternateColumnDefinition> _iter133 : struct.alternateColumnDefinitions.entrySet())
+          {
+            oprot.writeString(_iter133.getKey());
+            _iter133.getValue().write(oprot);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(3);
+      if (incoming.get(0)) {
+        struct.analyzerClassName = iprot.readString();
+        struct.setAnalyzerClassNameIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.fullTextIndex = iprot.readBool();
+        struct.setFullTextIndexIsSet(true);
+      }
+      if (incoming.get(2)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map134 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
+          struct.alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>(2*_map134.size);
+          for (int _i135 = 0; _i135 < _map134.size; ++_i135)
+          {
+            String _key136; // required
+            AlternateColumnDefinition _val137; // optional
+            _key136 = iprot.readString();
+            _val137 = new AlternateColumnDefinition();
+            _val137.read(iprot);
+            struct.alternateColumnDefinitions.put(_key136, _val137);
+          }
+        }
+        struct.setAlternateColumnDefinitionsIsSet(true);
+      }
+    }
+  }
+
+}
+


Mime
View raw message