incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [13/51] [partial] Fixed BLUR-126.
Date Thu, 06 Jun 2013 18:57:45 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java
new file mode 100644
index 0000000..aaaeb04
--- /dev/null
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java
@@ -0,0 +1,602 @@
+/**
+ * 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 ColumnFamilyDefinition implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<ColumnFamilyDefinition, ColumnFamilyDefinition._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("ColumnFamilyDefinition");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField DEFAULT_DEFINITION_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("defaultDefinition", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField COLUMN_DEFINITIONS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("columnDefinitions", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ColumnFamilyDefinitionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ColumnFamilyDefinitionTupleSchemeFactory());
+  }
+
+  /**
+   * 
+   */
+  public ColumnDefinition defaultDefinition; // required
+  /**
+   * 
+   */
+  public Map<String,ColumnDefinition> columnDefinitions; // 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 {
+    /**
+     * 
+     */
+    DEFAULT_DEFINITION((short)1, "defaultDefinition"),
+    /**
+     * 
+     */
+    COLUMN_DEFINITIONS((short)2, "columnDefinitions");
+
+    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: // DEFAULT_DEFINITION
+          return DEFAULT_DEFINITION;
+        case 2: // COLUMN_DEFINITIONS
+          return 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
+  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.DEFAULT_DEFINITION, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("defaultDefinition", 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, ColumnDefinition.class)));
+    tmpMap.put(_Fields.COLUMN_DEFINITIONS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("columnDefinitions", 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, ColumnDefinition.class))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(ColumnFamilyDefinition.class, metaDataMap);
+  }
+
+  public ColumnFamilyDefinition() {
+  }
+
+  public ColumnFamilyDefinition(
+    ColumnDefinition defaultDefinition,
+    Map<String,ColumnDefinition> columnDefinitions)
+  {
+    this();
+    this.defaultDefinition = defaultDefinition;
+    this.columnDefinitions = columnDefinitions;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnFamilyDefinition(ColumnFamilyDefinition other) {
+    if (other.isSetDefaultDefinition()) {
+      this.defaultDefinition = new ColumnDefinition(other.defaultDefinition);
+    }
+    if (other.isSetColumnDefinitions()) {
+      Map<String,ColumnDefinition> __this__columnDefinitions = new HashMap<String,ColumnDefinition>();
+      for (Map.Entry<String, ColumnDefinition> other_element : other.columnDefinitions.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        ColumnDefinition other_element_value = other_element.getValue();
+
+        String __this__columnDefinitions_copy_key = other_element_key;
+
+        ColumnDefinition __this__columnDefinitions_copy_value = new ColumnDefinition(other_element_value);
+
+        __this__columnDefinitions.put(__this__columnDefinitions_copy_key, __this__columnDefinitions_copy_value);
+      }
+      this.columnDefinitions = __this__columnDefinitions;
+    }
+  }
+
+  public ColumnFamilyDefinition deepCopy() {
+    return new ColumnFamilyDefinition(this);
+  }
+
+  @Override
+  public void clear() {
+    this.defaultDefinition = null;
+    this.columnDefinitions = null;
+  }
+
+  /**
+   * 
+   */
+  public ColumnDefinition getDefaultDefinition() {
+    return this.defaultDefinition;
+  }
+
+  /**
+   * 
+   */
+  public ColumnFamilyDefinition setDefaultDefinition(ColumnDefinition defaultDefinition) {
+    this.defaultDefinition = defaultDefinition;
+    return this;
+  }
+
+  public void unsetDefaultDefinition() {
+    this.defaultDefinition = null;
+  }
+
+  /** Returns true if field defaultDefinition is set (has been assigned a value) and false otherwise */
+  public boolean isSetDefaultDefinition() {
+    return this.defaultDefinition != null;
+  }
+
+  public void setDefaultDefinitionIsSet(boolean value) {
+    if (!value) {
+      this.defaultDefinition = null;
+    }
+  }
+
+  public int getColumnDefinitionsSize() {
+    return (this.columnDefinitions == null) ? 0 : this.columnDefinitions.size();
+  }
+
+  public void putToColumnDefinitions(String key, ColumnDefinition val) {
+    if (this.columnDefinitions == null) {
+      this.columnDefinitions = new HashMap<String,ColumnDefinition>();
+    }
+    this.columnDefinitions.put(key, val);
+  }
+
+  /**
+   * 
+   */
+  public Map<String,ColumnDefinition> getColumnDefinitions() {
+    return this.columnDefinitions;
+  }
+
+  /**
+   * 
+   */
+  public ColumnFamilyDefinition setColumnDefinitions(Map<String,ColumnDefinition> columnDefinitions) {
+    this.columnDefinitions = columnDefinitions;
+    return this;
+  }
+
+  public void unsetColumnDefinitions() {
+    this.columnDefinitions = null;
+  }
+
+  /** Returns true if field columnDefinitions is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnDefinitions() {
+    return this.columnDefinitions != null;
+  }
+
+  public void setColumnDefinitionsIsSet(boolean value) {
+    if (!value) {
+      this.columnDefinitions = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case DEFAULT_DEFINITION:
+      if (value == null) {
+        unsetDefaultDefinition();
+      } else {
+        setDefaultDefinition((ColumnDefinition)value);
+      }
+      break;
+
+    case COLUMN_DEFINITIONS:
+      if (value == null) {
+        unsetColumnDefinitions();
+      } else {
+        setColumnDefinitions((Map<String,ColumnDefinition>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case DEFAULT_DEFINITION:
+      return getDefaultDefinition();
+
+    case COLUMN_DEFINITIONS:
+      return getColumnDefinitions();
+
+    }
+    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 DEFAULT_DEFINITION:
+      return isSetDefaultDefinition();
+    case COLUMN_DEFINITIONS:
+      return isSetColumnDefinitions();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ColumnFamilyDefinition)
+      return this.equals((ColumnFamilyDefinition)that);
+    return false;
+  }
+
+  public boolean equals(ColumnFamilyDefinition that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_defaultDefinition = true && this.isSetDefaultDefinition();
+    boolean that_present_defaultDefinition = true && that.isSetDefaultDefinition();
+    if (this_present_defaultDefinition || that_present_defaultDefinition) {
+      if (!(this_present_defaultDefinition && that_present_defaultDefinition))
+        return false;
+      if (!this.defaultDefinition.equals(that.defaultDefinition))
+        return false;
+    }
+
+    boolean this_present_columnDefinitions = true && this.isSetColumnDefinitions();
+    boolean that_present_columnDefinitions = true && that.isSetColumnDefinitions();
+    if (this_present_columnDefinitions || that_present_columnDefinitions) {
+      if (!(this_present_columnDefinitions && that_present_columnDefinitions))
+        return false;
+      if (!this.columnDefinitions.equals(that.columnDefinitions))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(ColumnFamilyDefinition other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    ColumnFamilyDefinition typedOther = (ColumnFamilyDefinition)other;
+
+    lastComparison = Boolean.valueOf(isSetDefaultDefinition()).compareTo(typedOther.isSetDefaultDefinition());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetDefaultDefinition()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.defaultDefinition, typedOther.defaultDefinition);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColumnDefinitions()).compareTo(typedOther.isSetColumnDefinitions());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnDefinitions()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.columnDefinitions, typedOther.columnDefinitions);
+      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("ColumnFamilyDefinition(");
+    boolean first = true;
+
+    sb.append("defaultDefinition:");
+    if (this.defaultDefinition == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.defaultDefinition);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("columnDefinitions:");
+    if (this.columnDefinitions == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.columnDefinitions);
+    }
+    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 (defaultDefinition != null) {
+      defaultDefinition.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 {
+      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 ColumnFamilyDefinitionStandardSchemeFactory implements SchemeFactory {
+    public ColumnFamilyDefinitionStandardScheme getScheme() {
+      return new ColumnFamilyDefinitionStandardScheme();
+    }
+  }
+
+  private static class ColumnFamilyDefinitionStandardScheme extends StandardScheme<ColumnFamilyDefinition> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, ColumnFamilyDefinition 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: // DEFAULT_DEFINITION
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) {
+              struct.defaultDefinition = new ColumnDefinition();
+              struct.defaultDefinition.read(iprot);
+              struct.setDefaultDefinitionIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // 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 _map138 = iprot.readMapBegin();
+                struct.columnDefinitions = new HashMap<String,ColumnDefinition>(2*_map138.size);
+                for (int _i139 = 0; _i139 < _map138.size; ++_i139)
+                {
+                  String _key140; // required
+                  ColumnDefinition _val141; // optional
+                  _key140 = iprot.readString();
+                  _val141 = new ColumnDefinition();
+                  _val141.read(iprot);
+                  struct.columnDefinitions.put(_key140, _val141);
+                }
+                iprot.readMapEnd();
+              }
+              struct.setColumnDefinitionsIsSet(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, ColumnFamilyDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.defaultDefinition != null) {
+        oprot.writeFieldBegin(DEFAULT_DEFINITION_FIELD_DESC);
+        struct.defaultDefinition.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.columnDefinitions != null) {
+        oprot.writeFieldBegin(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.columnDefinitions.size()));
+          for (Map.Entry<String, ColumnDefinition> _iter142 : struct.columnDefinitions.entrySet())
+          {
+            oprot.writeString(_iter142.getKey());
+            _iter142.getValue().write(oprot);
+          }
+          oprot.writeMapEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ColumnFamilyDefinitionTupleSchemeFactory implements SchemeFactory {
+    public ColumnFamilyDefinitionTupleScheme getScheme() {
+      return new ColumnFamilyDefinitionTupleScheme();
+    }
+  }
+
+  private static class ColumnFamilyDefinitionTupleScheme extends TupleScheme<ColumnFamilyDefinition> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ColumnFamilyDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetDefaultDefinition()) {
+        optionals.set(0);
+      }
+      if (struct.isSetColumnDefinitions()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetDefaultDefinition()) {
+        struct.defaultDefinition.write(oprot);
+      }
+      if (struct.isSetColumnDefinitions()) {
+        {
+          oprot.writeI32(struct.columnDefinitions.size());
+          for (Map.Entry<String, ColumnDefinition> _iter143 : struct.columnDefinitions.entrySet())
+          {
+            oprot.writeString(_iter143.getKey());
+            _iter143.getValue().write(oprot);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ColumnFamilyDefinition 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.defaultDefinition = new ColumnDefinition();
+        struct.defaultDefinition.read(iprot);
+        struct.setDefaultDefinitionIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map144 = 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.columnDefinitions = new HashMap<String,ColumnDefinition>(2*_map144.size);
+          for (int _i145 = 0; _i145 < _map144.size; ++_i145)
+          {
+            String _key146; // required
+            ColumnDefinition _val147; // optional
+            _key146 = iprot.readString();
+            _val147 = new ColumnDefinition();
+            _val147.read(iprot);
+            struct.columnDefinitions.put(_key146, _val147);
+          }
+        }
+        struct.setColumnDefinitionsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnPreCache.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnPreCache.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnPreCache.java
new file mode 100644
index 0000000..6d1d69a
--- /dev/null
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnPreCache.java
@@ -0,0 +1,472 @@
+/**
+ * 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 ColumnPreCache implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<ColumnPreCache, ColumnPreCache._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("ColumnPreCache");
+
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField PRE_CACHE_COLS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("preCacheCols", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST, (short)1);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new ColumnPreCacheStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ColumnPreCacheTupleSchemeFactory());
+  }
+
+  /**
+   * This map sets what column families and columns to prefetch into block cache on shard open.
+   */
+  public List<String> preCacheCols; // 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 {
+    /**
+     * This map sets what column families and columns to prefetch into block cache on shard open.
+     */
+    PRE_CACHE_COLS((short)1, "preCacheCols");
+
+    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: // PRE_CACHE_COLS
+          return PRE_CACHE_COLS;
+        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.PRE_CACHE_COLS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("preCacheCols", 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.STRING))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(ColumnPreCache.class, metaDataMap);
+  }
+
+  public ColumnPreCache() {
+  }
+
+  public ColumnPreCache(
+    List<String> preCacheCols)
+  {
+    this();
+    this.preCacheCols = preCacheCols;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnPreCache(ColumnPreCache other) {
+    if (other.isSetPreCacheCols()) {
+      List<String> __this__preCacheCols = new ArrayList<String>();
+      for (String other_element : other.preCacheCols) {
+        __this__preCacheCols.add(other_element);
+      }
+      this.preCacheCols = __this__preCacheCols;
+    }
+  }
+
+  public ColumnPreCache deepCopy() {
+    return new ColumnPreCache(this);
+  }
+
+  @Override
+  public void clear() {
+    this.preCacheCols = null;
+  }
+
+  public int getPreCacheColsSize() {
+    return (this.preCacheCols == null) ? 0 : this.preCacheCols.size();
+  }
+
+  public java.util.Iterator<String> getPreCacheColsIterator() {
+    return (this.preCacheCols == null) ? null : this.preCacheCols.iterator();
+  }
+
+  public void addToPreCacheCols(String elem) {
+    if (this.preCacheCols == null) {
+      this.preCacheCols = new ArrayList<String>();
+    }
+    this.preCacheCols.add(elem);
+  }
+
+  /**
+   * This map sets what column families and columns to prefetch into block cache on shard open.
+   */
+  public List<String> getPreCacheCols() {
+    return this.preCacheCols;
+  }
+
+  /**
+   * This map sets what column families and columns to prefetch into block cache on shard open.
+   */
+  public ColumnPreCache setPreCacheCols(List<String> preCacheCols) {
+    this.preCacheCols = preCacheCols;
+    return this;
+  }
+
+  public void unsetPreCacheCols() {
+    this.preCacheCols = null;
+  }
+
+  /** Returns true if field preCacheCols is set (has been assigned a value) and false otherwise */
+  public boolean isSetPreCacheCols() {
+    return this.preCacheCols != null;
+  }
+
+  public void setPreCacheColsIsSet(boolean value) {
+    if (!value) {
+      this.preCacheCols = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case PRE_CACHE_COLS:
+      if (value == null) {
+        unsetPreCacheCols();
+      } else {
+        setPreCacheCols((List<String>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case PRE_CACHE_COLS:
+      return getPreCacheCols();
+
+    }
+    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 PRE_CACHE_COLS:
+      return isSetPreCacheCols();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ColumnPreCache)
+      return this.equals((ColumnPreCache)that);
+    return false;
+  }
+
+  public boolean equals(ColumnPreCache that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_preCacheCols = true && this.isSetPreCacheCols();
+    boolean that_present_preCacheCols = true && that.isSetPreCacheCols();
+    if (this_present_preCacheCols || that_present_preCacheCols) {
+      if (!(this_present_preCacheCols && that_present_preCacheCols))
+        return false;
+      if (!this.preCacheCols.equals(that.preCacheCols))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(ColumnPreCache other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    ColumnPreCache typedOther = (ColumnPreCache)other;
+
+    lastComparison = Boolean.valueOf(isSetPreCacheCols()).compareTo(typedOther.isSetPreCacheCols());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPreCacheCols()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.preCacheCols, typedOther.preCacheCols);
+      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("ColumnPreCache(");
+    boolean first = true;
+
+    sb.append("preCacheCols:");
+    if (this.preCacheCols == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.preCacheCols);
+    }
+    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 ColumnPreCacheStandardSchemeFactory implements SchemeFactory {
+    public ColumnPreCacheStandardScheme getScheme() {
+      return new ColumnPreCacheStandardScheme();
+    }
+  }
+
+  private static class ColumnPreCacheStandardScheme extends StandardScheme<ColumnPreCache> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, ColumnPreCache 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: // PRE_CACHE_COLS
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.LIST) {
+              {
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list158 = iprot.readListBegin();
+                struct.preCacheCols = new ArrayList<String>(_list158.size);
+                for (int _i159 = 0; _i159 < _list158.size; ++_i159)
+                {
+                  String _elem160; // required
+                  _elem160 = iprot.readString();
+                  struct.preCacheCols.add(_elem160);
+                }
+                iprot.readListEnd();
+              }
+              struct.setPreCacheColsIsSet(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, ColumnPreCache struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.preCacheCols != null) {
+        oprot.writeFieldBegin(PRE_CACHE_COLS_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.STRING, struct.preCacheCols.size()));
+          for (String _iter161 : struct.preCacheCols)
+          {
+            oprot.writeString(_iter161);
+          }
+          oprot.writeListEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ColumnPreCacheTupleSchemeFactory implements SchemeFactory {
+    public ColumnPreCacheTupleScheme getScheme() {
+      return new ColumnPreCacheTupleScheme();
+    }
+  }
+
+  private static class ColumnPreCacheTupleScheme extends TupleScheme<ColumnPreCache> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ColumnPreCache struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetPreCacheCols()) {
+        optionals.set(0);
+      }
+      oprot.writeBitSet(optionals, 1);
+      if (struct.isSetPreCacheCols()) {
+        {
+          oprot.writeI32(struct.preCacheCols.size());
+          for (String _iter162 : struct.preCacheCols)
+          {
+            oprot.writeString(_iter162);
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ColumnPreCache struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(1);
+      if (incoming.get(0)) {
+        {
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list163 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.preCacheCols = new ArrayList<String>(_list163.size);
+          for (int _i164 = 0; _i164 < _list163.size; ++_i164)
+          {
+            String _elem165; // required
+            _elem165 = iprot.readString();
+            struct.preCacheCols.add(_elem165);
+          }
+        }
+        struct.setPreCacheColsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/CpuTime.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/CpuTime.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/CpuTime.java
new file mode 100644
index 0000000..bbc1ab9
--- /dev/null
+++ b/blur-thrift/src/main/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/b0e26648/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ExpertQuery.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ExpertQuery.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ExpertQuery.java
new file mode 100644
index 0000000..1072974
--- /dev/null
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ExpertQuery.java
@@ -0,0 +1,554 @@
+/**
+ * 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 expert query allows for submission of a serialized query and filter object to be executed against all the queries.
+ */
+public class ExpertQuery implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<ExpertQuery, ExpertQuery._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("ExpertQuery");
+
+  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.STRING, (short)1);
+  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FILTER_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("filter", 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 ExpertQueryStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ExpertQueryTupleSchemeFactory());
+  }
+
+  /**
+   * The serialized query.
+   */
+  public ByteBuffer query; // required
+  /**
+   * The serialized filter.
+   */
+  public ByteBuffer filter; // 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 serialized query.
+     */
+    QUERY((short)1, "query"),
+    /**
+     * The serialized filter.
+     */
+    FILTER((short)2, "filter");
+
+    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
+          return QUERY;
+        case 2: // FILTER
+          return FILTER;
+        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.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.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING        , true)));
+    tmpMap.put(_Fields.FILTER, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("filter", 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        , true)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(ExpertQuery.class, metaDataMap);
+  }
+
+  public ExpertQuery() {
+  }
+
+  public ExpertQuery(
+    ByteBuffer query,
+    ByteBuffer filter)
+  {
+    this();
+    this.query = query;
+    this.filter = filter;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ExpertQuery(ExpertQuery other) {
+    if (other.isSetQuery()) {
+      this.query = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.copyBinary(other.query);
+;
+    }
+    if (other.isSetFilter()) {
+      this.filter = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.copyBinary(other.filter);
+;
+    }
+  }
+
+  public ExpertQuery deepCopy() {
+    return new ExpertQuery(this);
+  }
+
+  @Override
+  public void clear() {
+    this.query = null;
+    this.filter = null;
+  }
+
+  /**
+   * The serialized query.
+   */
+  public byte[] getQuery() {
+    setQuery(org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.rightSize(query));
+    return query == null ? null : query.array();
+  }
+
+  public ByteBuffer bufferForQuery() {
+    return query;
+  }
+
+  /**
+   * The serialized query.
+   */
+  public ExpertQuery setQuery(byte[] query) {
+    setQuery(query == null ? (ByteBuffer)null : ByteBuffer.wrap(query));
+    return this;
+  }
+
+  public ExpertQuery setQuery(ByteBuffer 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;
+    }
+  }
+
+  /**
+   * The serialized filter.
+   */
+  public byte[] getFilter() {
+    setFilter(org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.rightSize(filter));
+    return filter == null ? null : filter.array();
+  }
+
+  public ByteBuffer bufferForFilter() {
+    return filter;
+  }
+
+  /**
+   * The serialized filter.
+   */
+  public ExpertQuery setFilter(byte[] filter) {
+    setFilter(filter == null ? (ByteBuffer)null : ByteBuffer.wrap(filter));
+    return this;
+  }
+
+  public ExpertQuery setFilter(ByteBuffer filter) {
+    this.filter = filter;
+    return this;
+  }
+
+  public void unsetFilter() {
+    this.filter = null;
+  }
+
+  /** Returns true if field filter is set (has been assigned a value) and false otherwise */
+  public boolean isSetFilter() {
+    return this.filter != null;
+  }
+
+  public void setFilterIsSet(boolean value) {
+    if (!value) {
+      this.filter = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case QUERY:
+      if (value == null) {
+        unsetQuery();
+      } else {
+        setQuery((ByteBuffer)value);
+      }
+      break;
+
+    case FILTER:
+      if (value == null) {
+        unsetFilter();
+      } else {
+        setFilter((ByteBuffer)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case QUERY:
+      return getQuery();
+
+    case FILTER:
+      return getFilter();
+
+    }
+    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:
+      return isSetQuery();
+    case FILTER:
+      return isSetFilter();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ExpertQuery)
+      return this.equals((ExpertQuery)that);
+    return false;
+  }
+
+  public boolean equals(ExpertQuery that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_query = true && this.isSetQuery();
+    boolean that_present_query = true && that.isSetQuery();
+    if (this_present_query || that_present_query) {
+      if (!(this_present_query && that_present_query))
+        return false;
+      if (!this.query.equals(that.query))
+        return false;
+    }
+
+    boolean this_present_filter = true && this.isSetFilter();
+    boolean that_present_filter = true && that.isSetFilter();
+    if (this_present_filter || that_present_filter) {
+      if (!(this_present_filter && that_present_filter))
+        return false;
+      if (!this.filter.equals(that.filter))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(ExpertQuery other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    ExpertQuery typedOther = (ExpertQuery)other;
+
+    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;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetFilter()) {
+      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.filter, typedOther.filter);
+      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("ExpertQuery(");
+    boolean first = true;
+
+    sb.append("query:");
+    if (this.query == null) {
+      sb.append("null");
+    } else {
+      org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.toString(this.query, sb);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("filter:");
+    if (this.filter == null) {
+      sb.append("null");
+    } else {
+      org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.toString(this.filter, sb);
+    }
+    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 ExpertQueryStandardSchemeFactory implements SchemeFactory {
+    public ExpertQueryStandardScheme getScheme() {
+      return new ExpertQueryStandardScheme();
+    }
+  }
+
+  private static class ExpertQueryStandardScheme extends StandardScheme<ExpertQuery> {
+
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, ExpertQuery 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
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.query = iprot.readBinary();
+              struct.setQueryIsSet(true);
+            } else { 
+              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // FILTER
+            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
+              struct.filter = iprot.readBinary();
+              struct.setFilterIsSet(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, ExpertQuery struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.query != null) {
+        oprot.writeFieldBegin(QUERY_FIELD_DESC);
+        oprot.writeBinary(struct.query);
+        oprot.writeFieldEnd();
+      }
+      if (struct.filter != null) {
+        oprot.writeFieldBegin(FILTER_FIELD_DESC);
+        oprot.writeBinary(struct.filter);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ExpertQueryTupleSchemeFactory implements SchemeFactory {
+    public ExpertQueryTupleScheme getScheme() {
+      return new ExpertQueryTupleScheme();
+    }
+  }
+
+  private static class ExpertQueryTupleScheme extends TupleScheme<ExpertQuery> {
+
+    @Override
+    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ExpertQuery struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetQuery()) {
+        optionals.set(0);
+      }
+      if (struct.isSetFilter()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetQuery()) {
+        oprot.writeBinary(struct.query);
+      }
+      if (struct.isSetFilter()) {
+        oprot.writeBinary(struct.filter);
+      }
+    }
+
+    @Override
+    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, ExpertQuery 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.query = iprot.readBinary();
+        struct.setQueryIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.filter = iprot.readBinary();
+        struct.setFilterIsSet(true);
+      }
+    }
+  }
+
+}
+


Mime
View raw message