incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [16/51] [partial] Restructuring the distribution projects to allow for seperate hadoop2 and hadoop1 binaries.
Date Tue, 29 Apr 2014 21:51:34 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7395b9cb/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
----------------------------------------------------------------------
diff --git a/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
new file mode 100644
index 0000000..2fb5811
--- /dev/null
+++ b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ColumnDefinition.java
@@ -0,0 +1,1187 @@
+/**
+ * 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;
+
+/**
+ * The ColumnDefinition defines how a given Column should be interpreted (indexed/stored)
+ */
+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 FAMILY_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("family", 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 COLUMN_NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("columnName", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)2);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField SUB_COLUMN_NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("subColumnName", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)3);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FIELD_LESS_INDEXED_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("fieldLessIndexed", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL, (short)4);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FIELD_TYPE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("fieldType", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)5);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("properties", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, (short)6);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField SORTABLE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("sortable", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL, (short)7);
+
+  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());
+  }
+
+  /**
+   * Required. The family that this column exists within.
+   */
+  public String family; // required
+  /**
+   * Required. The column name.
+   */
+  public String columnName; // required
+  /**
+   * If this column definition is for a sub column then provide the sub column name.  Otherwise leave this field null.
+   */
+  public String subColumnName; // required
+  /**
+   * If this column should be searchable without having to specify the name of the column in the query.
+   * NOTE: This will index the column as a full text field in a default field, so that means it's going to be indexed twice.
+   */
+  public boolean fieldLessIndexed; // required
+  /**
+   * The field type for the column.  The built in types are:
+   * <ul>
+   * <li>text - Full text indexing.</li>
+   * <li>string - Indexed string literal</li>
+   * <li>int - Converted to an integer and indexed numerically.</li>
+   * <li>long - Converted to an long and indexed numerically.</li>
+   * <li>float - Converted to an float and indexed numerically.</li>
+   * <li>double - Converted to an double and indexed numerically.</li>
+   * <li>stored - Not indexed, only stored.</li>
+   * </ul>
+   */
+  public String fieldType; // required
+  /**
+   * For any custom field types, you can pass in configuration properties.
+   */
+  public Map<String,String> properties; // required
+  /**
+   * This will attempt to enable sorting for this column, if the type does not support sorting then an exception will be thrown.
+   */
+  public boolean sortable; // 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 {
+    /**
+     * Required. The family that this column exists within.
+     */
+    FAMILY((short)1, "family"),
+    /**
+     * Required. The column name.
+     */
+    COLUMN_NAME((short)2, "columnName"),
+    /**
+     * If this column definition is for a sub column then provide the sub column name.  Otherwise leave this field null.
+     */
+    SUB_COLUMN_NAME((short)3, "subColumnName"),
+    /**
+     * If this column should be searchable without having to specify the name of the column in the query.
+     * NOTE: This will index the column as a full text field in a default field, so that means it's going to be indexed twice.
+     */
+    FIELD_LESS_INDEXED((short)4, "fieldLessIndexed"),
+    /**
+     * The field type for the column.  The built in types are:
+     * <ul>
+     * <li>text - Full text indexing.</li>
+     * <li>string - Indexed string literal</li>
+     * <li>int - Converted to an integer and indexed numerically.</li>
+     * <li>long - Converted to an long and indexed numerically.</li>
+     * <li>float - Converted to an float and indexed numerically.</li>
+     * <li>double - Converted to an double and indexed numerically.</li>
+     * <li>stored - Not indexed, only stored.</li>
+     * </ul>
+     */
+    FIELD_TYPE((short)5, "fieldType"),
+    /**
+     * For any custom field types, you can pass in configuration properties.
+     */
+    PROPERTIES((short)6, "properties"),
+    /**
+     * This will attempt to enable sorting for this column, if the type does not support sorting then an exception will be thrown.
+     */
+    SORTABLE((short)7, "sortable");
+
+    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: // FAMILY
+          return FAMILY;
+        case 2: // COLUMN_NAME
+          return COLUMN_NAME;
+        case 3: // SUB_COLUMN_NAME
+          return SUB_COLUMN_NAME;
+        case 4: // FIELD_LESS_INDEXED
+          return FIELD_LESS_INDEXED;
+        case 5: // FIELD_TYPE
+          return FIELD_TYPE;
+        case 6: // PROPERTIES
+          return PROPERTIES;
+        case 7: // SORTABLE
+          return SORTABLE;
+        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 __FIELDLESSINDEXED_ISSET_ID = 0;
+  private static final int __SORTABLE_ISSET_ID = 1;
+  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.FAMILY, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("family", 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.COLUMN_NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("columnName", 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.SUB_COLUMN_NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("subColumnName", 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.FIELD_LESS_INDEXED, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("fieldLessIndexed", 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.FIELD_TYPE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("fieldType", 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.PROPERTIES, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("properties", 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.STRING))));
+    tmpMap.put(_Fields.SORTABLE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("sortable", 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)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(ColumnDefinition.class, metaDataMap);
+  }
+
+  public ColumnDefinition() {
+  }
+
+  public ColumnDefinition(
+    String family,
+    String columnName,
+    String subColumnName,
+    boolean fieldLessIndexed,
+    String fieldType,
+    Map<String,String> properties,
+    boolean sortable)
+  {
+    this();
+    this.family = family;
+    this.columnName = columnName;
+    this.subColumnName = subColumnName;
+    this.fieldLessIndexed = fieldLessIndexed;
+    setFieldLessIndexedIsSet(true);
+    this.fieldType = fieldType;
+    this.properties = properties;
+    this.sortable = sortable;
+    setSortableIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnDefinition(ColumnDefinition other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetFamily()) {
+      this.family = other.family;
+    }
+    if (other.isSetColumnName()) {
+      this.columnName = other.columnName;
+    }
+    if (other.isSetSubColumnName()) {
+      this.subColumnName = other.subColumnName;
+    }
+    this.fieldLessIndexed = other.fieldLessIndexed;
+    if (other.isSetFieldType()) {
+      this.fieldType = other.fieldType;
+    }
+    if (other.isSetProperties()) {
+      Map<String,String> __this__properties = new HashMap<String,String>();
+      for (Map.Entry<String, String> other_element : other.properties.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        String other_element_value = other_element.getValue();
+
+        String __this__properties_copy_key = other_element_key;
+
+        String __this__properties_copy_value = other_element_value;
+
+        __this__properties.put(__this__properties_copy_key, __this__properties_copy_value);
+      }
+      this.properties = __this__properties;
+    }
+    this.sortable = other.sortable;
+  }
+
+  public ColumnDefinition deepCopy() {
+    return new ColumnDefinition(this);
+  }
+
+  @Override
+  public void clear() {
+    this.family = null;
+    this.columnName = null;
+    this.subColumnName = null;
+    setFieldLessIndexedIsSet(false);
+    this.fieldLessIndexed = false;
+    this.fieldType = null;
+    this.properties = null;
+    setSortableIsSet(false);
+    this.sortable = false;
+  }
+
+  /**
+   * Required. The family that this column exists within.
+   */
+  public String getFamily() {
+    return this.family;
+  }
+
+  /**
+   * Required. The family that this column exists within.
+   */
+  public ColumnDefinition setFamily(String family) {
+    this.family = family;
+    return this;
+  }
+
+  public void unsetFamily() {
+    this.family = null;
+  }
+
+  /** Returns true if field family is set (has been assigned a value) and false otherwise */
+  public boolean isSetFamily() {
+    return this.family != null;
+  }
+
+  public void setFamilyIsSet(boolean value) {
+    if (!value) {
+      this.family = null;
+    }
+  }
+
+  /**
+   * Required. The column name.
+   */
+  public String getColumnName() {
+    return this.columnName;
+  }
+
+  /**
+   * Required. The column name.
+   */
+  public ColumnDefinition setColumnName(String columnName) {
+    this.columnName = columnName;
+    return this;
+  }
+
+  public void unsetColumnName() {
+    this.columnName = null;
+  }
+
+  /** Returns true if field columnName is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnName() {
+    return this.columnName != null;
+  }
+
+  public void setColumnNameIsSet(boolean value) {
+    if (!value) {
+      this.columnName = null;
+    }
+  }
+
+  /**
+   * If this column definition is for a sub column then provide the sub column name.  Otherwise leave this field null.
+   */
+  public String getSubColumnName() {
+    return this.subColumnName;
+  }
+
+  /**
+   * If this column definition is for a sub column then provide the sub column name.  Otherwise leave this field null.
+   */
+  public ColumnDefinition setSubColumnName(String subColumnName) {
+    this.subColumnName = subColumnName;
+    return this;
+  }
+
+  public void unsetSubColumnName() {
+    this.subColumnName = null;
+  }
+
+  /** Returns true if field subColumnName is set (has been assigned a value) and false otherwise */
+  public boolean isSetSubColumnName() {
+    return this.subColumnName != null;
+  }
+
+  public void setSubColumnNameIsSet(boolean value) {
+    if (!value) {
+      this.subColumnName = null;
+    }
+  }
+
+  /**
+   * If this column should be searchable without having to specify the name of the column in the query.
+   * NOTE: This will index the column as a full text field in a default field, so that means it's going to be indexed twice.
+   */
+  public boolean isFieldLessIndexed() {
+    return this.fieldLessIndexed;
+  }
+
+  /**
+   * If this column should be searchable without having to specify the name of the column in the query.
+   * NOTE: This will index the column as a full text field in a default field, so that means it's going to be indexed twice.
+   */
+  public ColumnDefinition setFieldLessIndexed(boolean fieldLessIndexed) {
+    this.fieldLessIndexed = fieldLessIndexed;
+    setFieldLessIndexedIsSet(true);
+    return this;
+  }
+
+  public void unsetFieldLessIndexed() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FIELDLESSINDEXED_ISSET_ID);
+  }
+
+  /** Returns true if field fieldLessIndexed is set (has been assigned a value) and false otherwise */
+  public boolean isSetFieldLessIndexed() {
+    return EncodingUtils.testBit(__isset_bitfield, __FIELDLESSINDEXED_ISSET_ID);
+  }
+
+  public void setFieldLessIndexedIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FIELDLESSINDEXED_ISSET_ID, value);
+  }
+
+  /**
+   * The field type for the column.  The built in types are:
+   * <ul>
+   * <li>text - Full text indexing.</li>
+   * <li>string - Indexed string literal</li>
+   * <li>int - Converted to an integer and indexed numerically.</li>
+   * <li>long - Converted to an long and indexed numerically.</li>
+   * <li>float - Converted to an float and indexed numerically.</li>
+   * <li>double - Converted to an double and indexed numerically.</li>
+   * <li>stored - Not indexed, only stored.</li>
+   * </ul>
+   */
+  public String getFieldType() {
+    return this.fieldType;
+  }
+
+  /**
+   * The field type for the column.  The built in types are:
+   * <ul>
+   * <li>text - Full text indexing.</li>
+   * <li>string - Indexed string literal</li>
+   * <li>int - Converted to an integer and indexed numerically.</li>
+   * <li>long - Converted to an long and indexed numerically.</li>
+   * <li>float - Converted to an float and indexed numerically.</li>
+   * <li>double - Converted to an double and indexed numerically.</li>
+   * <li>stored - Not indexed, only stored.</li>
+   * </ul>
+   */
+  public ColumnDefinition setFieldType(String fieldType) {
+    this.fieldType = fieldType;
+    return this;
+  }
+
+  public void unsetFieldType() {
+    this.fieldType = null;
+  }
+
+  /** Returns true if field fieldType is set (has been assigned a value) and false otherwise */
+  public boolean isSetFieldType() {
+    return this.fieldType != null;
+  }
+
+  public void setFieldTypeIsSet(boolean value) {
+    if (!value) {
+      this.fieldType = null;
+    }
+  }
+
+  public int getPropertiesSize() {
+    return (this.properties == null) ? 0 : this.properties.size();
+  }
+
+  public void putToProperties(String key, String val) {
+    if (this.properties == null) {
+      this.properties = new HashMap<String,String>();
+    }
+    this.properties.put(key, val);
+  }
+
+  /**
+   * For any custom field types, you can pass in configuration properties.
+   */
+  public Map<String,String> getProperties() {
+    return this.properties;
+  }
+
+  /**
+   * For any custom field types, you can pass in configuration properties.
+   */
+  public ColumnDefinition setProperties(Map<String,String> properties) {
+    this.properties = properties;
+    return this;
+  }
+
+  public void unsetProperties() {
+    this.properties = null;
+  }
+
+  /** Returns true if field properties is set (has been assigned a value) and false otherwise */
+  public boolean isSetProperties() {
+    return this.properties != null;
+  }
+
+  public void setPropertiesIsSet(boolean value) {
+    if (!value) {
+      this.properties = null;
+    }
+  }
+
+  /**
+   * This will attempt to enable sorting for this column, if the type does not support sorting then an exception will be thrown.
+   */
+  public boolean isSortable() {
+    return this.sortable;
+  }
+
+  /**
+   * This will attempt to enable sorting for this column, if the type does not support sorting then an exception will be thrown.
+   */
+  public ColumnDefinition setSortable(boolean sortable) {
+    this.sortable = sortable;
+    setSortableIsSet(true);
+    return this;
+  }
+
+  public void unsetSortable() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SORTABLE_ISSET_ID);
+  }
+
+  /** Returns true if field sortable is set (has been assigned a value) and false otherwise */
+  public boolean isSetSortable() {
+    return EncodingUtils.testBit(__isset_bitfield, __SORTABLE_ISSET_ID);
+  }
+
+  public void setSortableIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SORTABLE_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case FAMILY:
+      if (value == null) {
+        unsetFamily();
+      } else {
+        setFamily((String)value);
+      }
+      break;
+
+    case COLUMN_NAME:
+      if (value == null) {
+        unsetColumnName();
+      } else {
+        setColumnName((String)value);
+      }
+      break;
+
+    case SUB_COLUMN_NAME:
+      if (value == null) {
+        unsetSubColumnName();
+      } else {
+        setSubColumnName((String)value);
+      }
+      break;
+
+    case FIELD_LESS_INDEXED:
+      if (value == null) {
+        unsetFieldLessIndexed();
+      } else {
+        setFieldLessIndexed((Boolean)value);
+      }
+      break;
+
+    case FIELD_TYPE:
+      if (value == null) {
+        unsetFieldType();
+      } else {
+        setFieldType((String)value);
+      }
+      break;
+
+    case PROPERTIES:
+      if (value == null) {
+        unsetProperties();
+      } else {
+        setProperties((Map<String,String>)value);
+      }
+      break;
+
+    case SORTABLE:
+      if (value == null) {
+        unsetSortable();
+      } else {
+        setSortable((Boolean)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case FAMILY:
+      return getFamily();
+
+    case COLUMN_NAME:
+      return getColumnName();
+
+    case SUB_COLUMN_NAME:
+      return getSubColumnName();
+
+    case FIELD_LESS_INDEXED:
+      return Boolean.valueOf(isFieldLessIndexed());
+
+    case FIELD_TYPE:
+      return getFieldType();
+
+    case PROPERTIES:
+      return getProperties();
+
+    case SORTABLE:
+      return Boolean.valueOf(isSortable());
+
+    }
+    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 FAMILY:
+      return isSetFamily();
+    case COLUMN_NAME:
+      return isSetColumnName();
+    case SUB_COLUMN_NAME:
+      return isSetSubColumnName();
+    case FIELD_LESS_INDEXED:
+      return isSetFieldLessIndexed();
+    case FIELD_TYPE:
+      return isSetFieldType();
+    case PROPERTIES:
+      return isSetProperties();
+    case SORTABLE:
+      return isSetSortable();
+    }
+    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_family = true && this.isSetFamily();
+    boolean that_present_family = true && that.isSetFamily();
+    if (this_present_family || that_present_family) {
+      if (!(this_present_family && that_present_family))
+        return false;
+      if (!this.family.equals(that.family))
+        return false;
+    }
+
+    boolean this_present_columnName = true && this.isSetColumnName();
+    boolean that_present_columnName = true && that.isSetColumnName();
+    if (this_present_columnName || that_present_columnName) {
+      if (!(this_present_columnName && that_present_columnName))
+        return false;
+      if (!this.columnName.equals(that.columnName))
+        return false;
+    }
+
+    boolean this_present_subColumnName = true && this.isSetSubColumnName();
+    boolean that_present_subColumnName = true && that.isSetSubColumnName();
+    if (this_present_subColumnName || that_present_subColumnName) {
+      if (!(this_present_subColumnName && that_present_subColumnName))
+        return false;
+      if (!this.subColumnName.equals(that.subColumnName))
+        return false;
+    }
+
+    boolean this_present_fieldLessIndexed = true;
+    boolean that_present_fieldLessIndexed = true;
+    if (this_present_fieldLessIndexed || that_present_fieldLessIndexed) {
+      if (!(this_present_fieldLessIndexed && that_present_fieldLessIndexed))
+        return false;
+      if (this.fieldLessIndexed != that.fieldLessIndexed)
+        return false;
+    }
+
+    boolean this_present_fieldType = true && this.isSetFieldType();
+    boolean that_present_fieldType = true && that.isSetFieldType();
+    if (this_present_fieldType || that_present_fieldType) {
+      if (!(this_present_fieldType && that_present_fieldType))
+        return false;
+      if (!this.fieldType.equals(that.fieldType))
+        return false;
+    }
+
+    boolean this_present_properties = true && this.isSetProperties();
+    boolean that_present_properties = true && that.isSetProperties();
+    if (this_present_properties || that_present_properties) {
+      if (!(this_present_properties && that_present_properties))
+        return false;
+      if (!this.properties.equals(that.properties))
+        return false;
+    }
+
+    boolean this_present_sortable = true;
+    boolean that_present_sortable = true;
+    if (this_present_sortable || that_present_sortable) {
+      if (!(this_present_sortable && that_present_sortable))
+        return false;
+      if (this.sortable != that.sortable)
+        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(isSetFamily()).compareTo(typedOther.isSetFamily());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFamily()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.family, typedOther.family);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnName()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.columnName, typedOther.columnName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetSubColumnName()).compareTo(typedOther.isSetSubColumnName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSubColumnName()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.subColumnName, typedOther.subColumnName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFieldLessIndexed()).compareTo(typedOther.isSetFieldLessIndexed());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFieldLessIndexed()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.fieldLessIndexed, typedOther.fieldLessIndexed);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFieldType()).compareTo(typedOther.isSetFieldType());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFieldType()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.fieldType, typedOther.fieldType);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetProperties()).compareTo(typedOther.isSetProperties());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetProperties()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.properties, typedOther.properties);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetSortable()).compareTo(typedOther.isSetSortable());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSortable()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.sortable, typedOther.sortable);
+      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("family:");
+    if (this.family == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.family);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("columnName:");
+    if (this.columnName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.columnName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("subColumnName:");
+    if (this.subColumnName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.subColumnName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("fieldLessIndexed:");
+    sb.append(this.fieldLessIndexed);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("fieldType:");
+    if (this.fieldType == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.fieldType);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("properties:");
+    if (this.properties == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.properties);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("sortable:");
+    sb.append(this.sortable);
+    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: // FAMILY
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.family = iprot.readString();
+              struct.setFamilyIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // COLUMN_NAME
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.columnName = iprot.readString();
+              struct.setColumnNameIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // SUB_COLUMN_NAME
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.subColumnName = iprot.readString();
+              struct.setSubColumnNameIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // FIELD_LESS_INDEXED
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL) {
+              struct.fieldLessIndexed = iprot.readBool();
+              struct.setFieldLessIndexedIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 5: // FIELD_TYPE
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.fieldType = iprot.readString();
+              struct.setFieldTypeIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 6: // PROPERTIES
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map126 = iprot.readMapBegin();
+                struct.properties = new HashMap<String,String>(2*_map126.size);
+                for (int _i127 = 0; _i127 < _map126.size; ++_i127)
+                {
+                  String _key128; // optional
+                  String _val129; // required
+                  _key128 = iprot.readString();
+                  _val129 = iprot.readString();
+                  struct.properties.put(_key128, _val129);
+                }
+                iprot.readMapEnd();
+              }
+              struct.setPropertiesIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 7: // SORTABLE
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL) {
+              struct.sortable = iprot.readBool();
+              struct.setSortableIsSet(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.family != null) {
+        oprot.writeFieldBegin(FAMILY_FIELD_DESC);
+        oprot.writeString(struct.family);
+        oprot.writeFieldEnd();
+      }
+      if (struct.columnName != null) {
+        oprot.writeFieldBegin(COLUMN_NAME_FIELD_DESC);
+        oprot.writeString(struct.columnName);
+        oprot.writeFieldEnd();
+      }
+      if (struct.subColumnName != null) {
+        oprot.writeFieldBegin(SUB_COLUMN_NAME_FIELD_DESC);
+        oprot.writeString(struct.subColumnName);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(FIELD_LESS_INDEXED_FIELD_DESC);
+      oprot.writeBool(struct.fieldLessIndexed);
+      oprot.writeFieldEnd();
+      if (struct.fieldType != null) {
+        oprot.writeFieldBegin(FIELD_TYPE_FIELD_DESC);
+        oprot.writeString(struct.fieldType);
+        oprot.writeFieldEnd();
+      }
+      if (struct.properties != null) {
+        oprot.writeFieldBegin(PROPERTIES_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.STRING, struct.properties.size()));
+          for (Map.Entry<String, String> _iter130 : struct.properties.entrySet())
+          {
+            oprot.writeString(_iter130.getKey());
+            oprot.writeString(_iter130.getValue());
+          }
+          oprot.writeMapEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(SORTABLE_FIELD_DESC);
+      oprot.writeBool(struct.sortable);
+      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.isSetFamily()) {
+        optionals.set(0);
+      }
+      if (struct.isSetColumnName()) {
+        optionals.set(1);
+      }
+      if (struct.isSetSubColumnName()) {
+        optionals.set(2);
+      }
+      if (struct.isSetFieldLessIndexed()) {
+        optionals.set(3);
+      }
+      if (struct.isSetFieldType()) {
+        optionals.set(4);
+      }
+      if (struct.isSetProperties()) {
+        optionals.set(5);
+      }
+      if (struct.isSetSortable()) {
+        optionals.set(6);
+      }
+      oprot.writeBitSet(optionals, 7);
+      if (struct.isSetFamily()) {
+        oprot.writeString(struct.family);
+      }
+      if (struct.isSetColumnName()) {
+        oprot.writeString(struct.columnName);
+      }
+      if (struct.isSetSubColumnName()) {
+        oprot.writeString(struct.subColumnName);
+      }
+      if (struct.isSetFieldLessIndexed()) {
+        oprot.writeBool(struct.fieldLessIndexed);
+      }
+      if (struct.isSetFieldType()) {
+        oprot.writeString(struct.fieldType);
+      }
+      if (struct.isSetProperties()) {
+        {
+          oprot.writeI32(struct.properties.size());
+          for (Map.Entry<String, String> _iter131 : struct.properties.entrySet())
+          {
+            oprot.writeString(_iter131.getKey());
+            oprot.writeString(_iter131.getValue());
+          }
+        }
+      }
+      if (struct.isSetSortable()) {
+        oprot.writeBool(struct.sortable);
+      }
+    }
+
+    @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(7);
+      if (incoming.get(0)) {
+        struct.family = iprot.readString();
+        struct.setFamilyIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.columnName = iprot.readString();
+        struct.setColumnNameIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.subColumnName = iprot.readString();
+        struct.setSubColumnNameIsSet(true);
+      }
+      if (incoming.get(3)) {
+        struct.fieldLessIndexed = iprot.readBool();
+        struct.setFieldLessIndexedIsSet(true);
+      }
+      if (incoming.get(4)) {
+        struct.fieldType = iprot.readString();
+        struct.setFieldTypeIsSet(true);
+      }
+      if (incoming.get(5)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map132 = 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.STRING, iprot.readI32());
+          struct.properties = new HashMap<String,String>(2*_map132.size);
+          for (int _i133 = 0; _i133 < _map132.size; ++_i133)
+          {
+            String _key134; // optional
+            String _val135; // required
+            _key134 = iprot.readString();
+            _val135 = iprot.readString();
+            struct.properties.put(_key134, _val135);
+          }
+        }
+        struct.setPropertiesIsSet(true);
+      }
+      if (incoming.get(6)) {
+        struct.sortable = iprot.readBool();
+        struct.setSortableIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7395b9cb/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/CpuTime.java
----------------------------------------------------------------------
diff --git a/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/CpuTime.java b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/CpuTime.java
new file mode 100644
index 0000000..bbc1ab9
--- /dev/null
+++ b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/CpuTime.java
@@ -0,0 +1,524 @@
+/**
+ * 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;
+
+/**
+ * Holds the cpu time for a query executing on a single shard in a table.
+ */
+public class CpuTime implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<CpuTime, CpuTime._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("CpuTime");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField CPU_TIME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("cpuTime", 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 REAL_TIME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("realTime", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new CpuTimeStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new CpuTimeTupleSchemeFactory());
+  }
+
+  /**
+   * The total cpu time for the query on the given shard.
+   */
+  public long cpuTime; // required
+  /**
+   * The real time of the query execution for a given shard.
+   */
+  public long realTime; // 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 total cpu time for the query on the given shard.
+     */
+    CPU_TIME((short)1, "cpuTime"),
+    /**
+     * The real time of the query execution for a given shard.
+     */
+    REAL_TIME((short)2, "realTime");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // CPU_TIME
+          return CPU_TIME;
+        case 2: // REAL_TIME
+          return REAL_TIME;
+        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 __CPUTIME_ISSET_ID = 0;
+  private static final int __REALTIME_ISSET_ID = 1;
+  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.CPU_TIME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("cpuTime", 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.REAL_TIME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("realTime", 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)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(CpuTime.class, metaDataMap);
+  }
+
+  public CpuTime() {
+  }
+
+  public CpuTime(
+    long cpuTime,
+    long realTime)
+  {
+    this();
+    this.cpuTime = cpuTime;
+    setCpuTimeIsSet(true);
+    this.realTime = realTime;
+    setRealTimeIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public CpuTime(CpuTime other) {
+    __isset_bitfield = other.__isset_bitfield;
+    this.cpuTime = other.cpuTime;
+    this.realTime = other.realTime;
+  }
+
+  public CpuTime deepCopy() {
+    return new CpuTime(this);
+  }
+
+  @Override
+  public void clear() {
+    setCpuTimeIsSet(false);
+    this.cpuTime = 0;
+    setRealTimeIsSet(false);
+    this.realTime = 0;
+  }
+
+  /**
+   * The total cpu time for the query on the given shard.
+   */
+  public long getCpuTime() {
+    return this.cpuTime;
+  }
+
+  /**
+   * The total cpu time for the query on the given shard.
+   */
+  public CpuTime setCpuTime(long cpuTime) {
+    this.cpuTime = cpuTime;
+    setCpuTimeIsSet(true);
+    return this;
+  }
+
+  public void unsetCpuTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPUTIME_ISSET_ID);
+  }
+
+  /** Returns true if field cpuTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetCpuTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __CPUTIME_ISSET_ID);
+  }
+
+  public void setCpuTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPUTIME_ISSET_ID, value);
+  }
+
+  /**
+   * The real time of the query execution for a given shard.
+   */
+  public long getRealTime() {
+    return this.realTime;
+  }
+
+  /**
+   * The real time of the query execution for a given shard.
+   */
+  public CpuTime setRealTime(long realTime) {
+    this.realTime = realTime;
+    setRealTimeIsSet(true);
+    return this;
+  }
+
+  public void unsetRealTime() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REALTIME_ISSET_ID);
+  }
+
+  /** Returns true if field realTime is set (has been assigned a value) and false otherwise */
+  public boolean isSetRealTime() {
+    return EncodingUtils.testBit(__isset_bitfield, __REALTIME_ISSET_ID);
+  }
+
+  public void setRealTimeIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REALTIME_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case CPU_TIME:
+      if (value == null) {
+        unsetCpuTime();
+      } else {
+        setCpuTime((Long)value);
+      }
+      break;
+
+    case REAL_TIME:
+      if (value == null) {
+        unsetRealTime();
+      } else {
+        setRealTime((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case CPU_TIME:
+      return Long.valueOf(getCpuTime());
+
+    case REAL_TIME:
+      return Long.valueOf(getRealTime());
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case CPU_TIME:
+      return isSetCpuTime();
+    case REAL_TIME:
+      return isSetRealTime();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof CpuTime)
+      return this.equals((CpuTime)that);
+    return false;
+  }
+
+  public boolean equals(CpuTime that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_cpuTime = true;
+    boolean that_present_cpuTime = true;
+    if (this_present_cpuTime || that_present_cpuTime) {
+      if (!(this_present_cpuTime && that_present_cpuTime))
+        return false;
+      if (this.cpuTime != that.cpuTime)
+        return false;
+    }
+
+    boolean this_present_realTime = true;
+    boolean that_present_realTime = true;
+    if (this_present_realTime || that_present_realTime) {
+      if (!(this_present_realTime && that_present_realTime))
+        return false;
+      if (this.realTime != that.realTime)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(CpuTime other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    CpuTime typedOther = (CpuTime)other;
+
+    lastComparison = Boolean.valueOf(isSetCpuTime()).compareTo(typedOther.isSetCpuTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCpuTime()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.cpuTime, typedOther.cpuTime);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetRealTime()).compareTo(typedOther.isSetRealTime());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetRealTime()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.realTime, typedOther.realTime);
+      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("CpuTime(");
+    boolean first = true;
+
+    sb.append("cpuTime:");
+    sb.append(this.cpuTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("realTime:");
+    sb.append(this.realTime);
+    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 CpuTimeStandardSchemeFactory implements SchemeFactory {
+    public CpuTimeStandardScheme getScheme() {
+      return new CpuTimeStandardScheme();
+    }
+  }
+
+  private static class CpuTimeStandardScheme extends StandardScheme<CpuTime> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, CpuTime 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: // CPU_TIME
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64) {
+              struct.cpuTime = iprot.readI64();
+              struct.setCpuTimeIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // REAL_TIME
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64) {
+              struct.realTime = iprot.readI64();
+              struct.setRealTimeIsSet(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, CpuTime struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldBegin(CPU_TIME_FIELD_DESC);
+      oprot.writeI64(struct.cpuTime);
+      oprot.writeFieldEnd();
+      oprot.writeFieldBegin(REAL_TIME_FIELD_DESC);
+      oprot.writeI64(struct.realTime);
+      oprot.writeFieldEnd();
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class CpuTimeTupleSchemeFactory implements SchemeFactory {
+    public CpuTimeTupleScheme getScheme() {
+      return new CpuTimeTupleScheme();
+    }
+  }
+
+  private static class CpuTimeTupleScheme extends TupleScheme<CpuTime> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, CpuTime struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetCpuTime()) {
+        optionals.set(0);
+      }
+      if (struct.isSetRealTime()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetCpuTime()) {
+        oprot.writeI64(struct.cpuTime);
+      }
+      if (struct.isSetRealTime()) {
+        oprot.writeI64(struct.realTime);
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, CpuTime 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.cpuTime = iprot.readI64();
+        struct.setCpuTimeIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.realTime = iprot.readI64();
+        struct.setRealTimeIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7395b9cb/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ErrorType.java
----------------------------------------------------------------------
diff --git a/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ErrorType.java b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ErrorType.java
new file mode 100644
index 0000000..56c205e
--- /dev/null
+++ b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ErrorType.java
@@ -0,0 +1,83 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.blur.thrift.generated;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+import java.util.Map;
+import java.util.HashMap;
+import org.apache.blur.thirdparty.thrift_0_9_0.TEnum;
+
+/**
+ * <table class="table-bordered table-striped table-condensed">
+ * <tr><td colspan="2">The error type of a BlurException.</td></tr>
+ * <tr><td>UNKNOWN</td><td>Unknown error.</td></tr>
+ * <tr><td>QUERY_CANCEL</td><td>Query has been cancel.</td></tr>
+ * <tr><td>QUERY_TIMEOUT</td><td>Query has timed out.</td></tr>
+ * <tr><td>BACK_PRESSURE</td><td>Server has run out of memory and is trying to prevent a failure.</td></tr>
+ * <tr><td>REQUEST_TIMEOUT</td><td>The TCP connection has timed out.</td></tr>
+ * </table>
+ */
+public enum ErrorType implements org.apache.blur.thirdparty.thrift_0_9_0.TEnum {
+  UNKNOWN(0),
+  QUERY_CANCEL(1),
+  QUERY_TIMEOUT(2),
+  BACK_PRESSURE(3),
+  REQUEST_TIMEOUT(4);
+
+  private final int value;
+
+  private ErrorType(int value) {
+    this.value = value;
+  }
+
+  /**
+   * Get the integer value of this enum value, as defined in the Thrift IDL.
+   */
+  public int getValue() {
+    return value;
+  }
+
+  /**
+   * Find a the enum type by its integer value, as defined in the Thrift IDL.
+   * @return null if the value is not found.
+   */
+  public static ErrorType findByValue(int value) { 
+    switch (value) {
+      case 0:
+        return UNKNOWN;
+      case 1:
+        return QUERY_CANCEL;
+      case 2:
+        return QUERY_TIMEOUT;
+      case 3:
+        return BACK_PRESSURE;
+      case 4:
+        return REQUEST_TIMEOUT;
+      default:
+        return null;
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7395b9cb/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Facet.java
----------------------------------------------------------------------
diff --git a/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Facet.java b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Facet.java
new file mode 100644
index 0000000..b0794f0
--- /dev/null
+++ b/distribution-hadoop2/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Facet.java
@@ -0,0 +1,552 @@
+/**
+ * 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;
+
+/**
+ * Blur facet.
+ */
+public class Facet implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<Facet, Facet._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("Facet");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField QUERY_STR_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("queryStr", 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 MINIMUM_NUMBER_OF_BLUR_RESULTS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("minimumNumberOfBlurResults", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new FacetStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new FacetTupleSchemeFactory());
+  }
+
+  /**
+   * The facet query.
+   */
+  public String queryStr; // required
+  /**
+   * The minimum number of results before no longer processing the facet.  This
+   * is a good way to decrease the strain on the system while using many facets. For
+   * example if you set this attribute to 1000, then the shard server will stop
+   * processing the facet at the 1000 mark.  However because this is processed at
+   * the shard server level the controller will likely return more than the minimum
+   * because it sums the answers from the shard servers.
+   */
+  public long minimumNumberOfBlurResults; // 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 facet query.
+     */
+    QUERY_STR((short)1, "queryStr"),
+    /**
+     * The minimum number of results before no longer processing the facet.  This
+     * is a good way to decrease the strain on the system while using many facets. For
+     * example if you set this attribute to 1000, then the shard server will stop
+     * processing the facet at the 1000 mark.  However because this is processed at
+     * the shard server level the controller will likely return more than the minimum
+     * because it sums the answers from the shard servers.
+     */
+    MINIMUM_NUMBER_OF_BLUR_RESULTS((short)2, "minimumNumberOfBlurResults");
+
+    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: // QUERY_STR
+          return QUERY_STR;
+        case 2: // MINIMUM_NUMBER_OF_BLUR_RESULTS
+          return MINIMUM_NUMBER_OF_BLUR_RESULTS;
+        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 __MINIMUMNUMBEROFBLURRESULTS_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.QUERY_STR, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("queryStr", 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.MINIMUM_NUMBER_OF_BLUR_RESULTS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("minimumNumberOfBlurResults", 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)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(Facet.class, metaDataMap);
+  }
+
+  public Facet() {
+    this.minimumNumberOfBlurResults = 9223372036854775807L;
+
+  }
+
+  public Facet(
+    String queryStr,
+    long minimumNumberOfBlurResults)
+  {
+    this();
+    this.queryStr = queryStr;
+    this.minimumNumberOfBlurResults = minimumNumberOfBlurResults;
+    setMinimumNumberOfBlurResultsIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public Facet(Facet other) {
+    __isset_bitfield = other.__isset_bitfield;
+    if (other.isSetQueryStr()) {
+      this.queryStr = other.queryStr;
+    }
+    this.minimumNumberOfBlurResults = other.minimumNumberOfBlurResults;
+  }
+
+  public Facet deepCopy() {
+    return new Facet(this);
+  }
+
+  @Override
+  public void clear() {
+    this.queryStr = null;
+    this.minimumNumberOfBlurResults = 9223372036854775807L;
+
+  }
+
+  /**
+   * The facet query.
+   */
+  public String getQueryStr() {
+    return this.queryStr;
+  }
+
+  /**
+   * The facet query.
+   */
+  public Facet setQueryStr(String queryStr) {
+    this.queryStr = queryStr;
+    return this;
+  }
+
+  public void unsetQueryStr() {
+    this.queryStr = null;
+  }
+
+  /** Returns true if field queryStr is set (has been assigned a value) and false otherwise */
+  public boolean isSetQueryStr() {
+    return this.queryStr != null;
+  }
+
+  public void setQueryStrIsSet(boolean value) {
+    if (!value) {
+      this.queryStr = null;
+    }
+  }
+
+  /**
+   * The minimum number of results before no longer processing the facet.  This
+   * is a good way to decrease the strain on the system while using many facets. For
+   * example if you set this attribute to 1000, then the shard server will stop
+   * processing the facet at the 1000 mark.  However because this is processed at
+   * the shard server level the controller will likely return more than the minimum
+   * because it sums the answers from the shard servers.
+   */
+  public long getMinimumNumberOfBlurResults() {
+    return this.minimumNumberOfBlurResults;
+  }
+
+  /**
+   * The minimum number of results before no longer processing the facet.  This
+   * is a good way to decrease the strain on the system while using many facets. For
+   * example if you set this attribute to 1000, then the shard server will stop
+   * processing the facet at the 1000 mark.  However because this is processed at
+   * the shard server level the controller will likely return more than the minimum
+   * because it sums the answers from the shard servers.
+   */
+  public Facet setMinimumNumberOfBlurResults(long minimumNumberOfBlurResults) {
+    this.minimumNumberOfBlurResults = minimumNumberOfBlurResults;
+    setMinimumNumberOfBlurResultsIsSet(true);
+    return this;
+  }
+
+  public void unsetMinimumNumberOfBlurResults() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MINIMUMNUMBEROFBLURRESULTS_ISSET_ID);
+  }
+
+  /** Returns true if field minimumNumberOfBlurResults is set (has been assigned a value) and false otherwise */
+  public boolean isSetMinimumNumberOfBlurResults() {
+    return EncodingUtils.testBit(__isset_bitfield, __MINIMUMNUMBEROFBLURRESULTS_ISSET_ID);
+  }
+
+  public void setMinimumNumberOfBlurResultsIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MINIMUMNUMBEROFBLURRESULTS_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case QUERY_STR:
+      if (value == null) {
+        unsetQueryStr();
+      } else {
+        setQueryStr((String)value);
+      }
+      break;
+
+    case MINIMUM_NUMBER_OF_BLUR_RESULTS:
+      if (value == null) {
+        unsetMinimumNumberOfBlurResults();
+      } else {
+        setMinimumNumberOfBlurResults((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case QUERY_STR:
+      return getQueryStr();
+
+    case MINIMUM_NUMBER_OF_BLUR_RESULTS:
+      return Long.valueOf(getMinimumNumberOfBlurResults());
+
+    }
+    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 QUERY_STR:
+      return isSetQueryStr();
+    case MINIMUM_NUMBER_OF_BLUR_RESULTS:
+      return isSetMinimumNumberOfBlurResults();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof Facet)
+      return this.equals((Facet)that);
+    return false;
+  }
+
+  public boolean equals(Facet that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_queryStr = true && this.isSetQueryStr();
+    boolean that_present_queryStr = true && that.isSetQueryStr();
+    if (this_present_queryStr || that_present_queryStr) {
+      if (!(this_present_queryStr && that_present_queryStr))
+        return false;
+      if (!this.queryStr.equals(that.queryStr))
+        return false;
+    }
+
+    boolean this_present_minimumNumberOfBlurResults = true;
+    boolean that_present_minimumNumberOfBlurResults = true;
+    if (this_present_minimumNumberOfBlurResults || that_present_minimumNumberOfBlurResults) {
+      if (!(this_present_minimumNumberOfBlurResults && that_present_minimumNumberOfBlurResults))
+        return false;
+      if (this.minimumNumberOfBlurResults != that.minimumNumberOfBlurResults)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(Facet other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    Facet typedOther = (Facet)other;
+
+    lastComparison = Boolean.valueOf(isSetQueryStr()).compareTo(typedOther.isSetQueryStr());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQueryStr()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.queryStr, typedOther.queryStr);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetMinimumNumberOfBlurResults()).compareTo(typedOther.isSetMinimumNumberOfBlurResults());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetMinimumNumberOfBlurResults()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.minimumNumberOfBlurResults, typedOther.minimumNumberOfBlurResults);
+      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("Facet(");
+    boolean first = true;
+
+    sb.append("queryStr:");
+    if (this.queryStr == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.queryStr);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("minimumNumberOfBlurResults:");
+    sb.append(this.minimumNumberOfBlurResults);
+    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 FacetStandardSchemeFactory implements SchemeFactory {
+    public FacetStandardScheme getScheme() {
+      return new FacetStandardScheme();
+    }
+  }
+
+  private static class FacetStandardScheme extends StandardScheme<Facet> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, Facet 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: // QUERY_STR
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.queryStr = iprot.readString();
+              struct.setQueryStrIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // MINIMUM_NUMBER_OF_BLUR_RESULTS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64) {
+              struct.minimumNumberOfBlurResults = iprot.readI64();
+              struct.setMinimumNumberOfBlurResultsIsSet(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, Facet struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.queryStr != null) {
+        oprot.writeFieldBegin(QUERY_STR_FIELD_DESC);
+        oprot.writeString(struct.queryStr);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldBegin(MINIMUM_NUMBER_OF_BLUR_RESULTS_FIELD_DESC);
+      oprot.writeI64(struct.minimumNumberOfBlurResults);
+      oprot.writeFieldEnd();
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class FacetTupleSchemeFactory implements SchemeFactory {
+    public FacetTupleScheme getScheme() {
+      return new FacetTupleScheme();
+    }
+  }
+
+  private static class FacetTupleScheme extends TupleScheme<Facet> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Facet struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetQueryStr()) {
+        optionals.set(0);
+      }
+      if (struct.isSetMinimumNumberOfBlurResults()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetQueryStr()) {
+        oprot.writeString(struct.queryStr);
+      }
+      if (struct.isSetMinimumNumberOfBlurResults()) {
+        oprot.writeI64(struct.minimumNumberOfBlurResults);
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, Facet 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.queryStr = iprot.readString();
+        struct.setQueryStrIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.minimumNumberOfBlurResults = iprot.readI64();
+        struct.setMinimumNumberOfBlurResultsIsSet(true);
+      }
+    }
+  }
+
+}
+


Mime
View raw message