incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [30/51] [abbrv] Massive changes to the the thrift API. Getting closer to the final version, this commit also removes the controller from the architecture.
Date Tue, 11 Dec 2012 02:20:59 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/interface/gen-java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java b/interface/gen-java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java
deleted file mode 100644
index 38a3688..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/ColumnFamilyDefinition.java
+++ /dev/null
@@ -1,602 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.blur.thrift.generated;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * 
- */
-public class ColumnFamilyDefinition implements org.apache.thrift.TBase<ColumnFamilyDefinition, ColumnFamilyDefinition._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnFamilyDefinition");
-
-  private static final org.apache.thrift.protocol.TField DEFAULT_DEFINITION_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultDefinition", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-  private static final org.apache.thrift.protocol.TField COLUMN_DEFINITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("columnDefinitions", org.apache.thrift.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.thrift.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.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.DEFAULT_DEFINITION, new org.apache.thrift.meta_data.FieldMetaData("defaultDefinition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDefinition.class)));
-    tmpMap.put(_Fields.COLUMN_DEFINITIONS, new org.apache.thrift.meta_data.FieldMetaData("columnDefinitions", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDefinition.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.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.thrift.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.thrift.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.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("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.thrift.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.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class ColumnFamilyDefinitionStandardSchemeFactory implements SchemeFactory {
-    public ColumnFamilyDefinitionStandardScheme getScheme() {
-      return new ColumnFamilyDefinitionStandardScheme();
-    }
-  }
-
-  private static class ColumnFamilyDefinitionStandardScheme extends StandardScheme<ColumnFamilyDefinition> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnFamilyDefinition struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // DEFAULT_DEFINITION
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
-              struct.defaultDefinition = new ColumnDefinition();
-              struct.defaultDefinition.read(iprot);
-              struct.setDefaultDefinitionIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // COLUMN_DEFINITIONS
-            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
-              {
-                org.apache.thrift.protocol.TMap _map38 = iprot.readMapBegin();
-                struct.columnDefinitions = new HashMap<String,ColumnDefinition>(2*_map38.size);
-                for (int _i39 = 0; _i39 < _map38.size; ++_i39)
-                {
-                  String _key40; // required
-                  ColumnDefinition _val41; // optional
-                  _key40 = iprot.readString();
-                  _val41 = new ColumnDefinition();
-                  _val41.read(iprot);
-                  struct.columnDefinitions.put(_key40, _val41);
-                }
-                iprot.readMapEnd();
-              }
-              struct.setColumnDefinitionsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-
-      // check for required fields of primitive type, which can't be checked in the validate method
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnFamilyDefinition struct) throws org.apache.thrift.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.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.columnDefinitions.size()));
-          for (Map.Entry<String, ColumnDefinition> _iter42 : struct.columnDefinitions.entrySet())
-          {
-            oprot.writeString(_iter42.getKey());
-            _iter42.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.thrift.protocol.TProtocol prot, ColumnFamilyDefinition struct) throws org.apache.thrift.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> _iter43 : struct.columnDefinitions.entrySet())
-          {
-            oprot.writeString(_iter43.getKey());
-            _iter43.getValue().write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ColumnFamilyDefinition struct) throws org.apache.thrift.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.thrift.protocol.TMap _map44 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.columnDefinitions = new HashMap<String,ColumnDefinition>(2*_map44.size);
-          for (int _i45 = 0; _i45 < _map44.size; ++_i45)
-          {
-            String _key46; // required
-            ColumnDefinition _val47; // optional
-            _key46 = iprot.readString();
-            _val47 = new ColumnDefinition();
-            _val47.read(iprot);
-            struct.columnDefinitions.put(_key46, _val47);
-          }
-        }
-        struct.setColumnDefinitionsIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/interface/gen-java/org/apache/blur/thrift/generated/ColumnPreCache.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/ColumnPreCache.java b/interface/gen-java/org/apache/blur/thrift/generated/ColumnPreCache.java
deleted file mode 100644
index 11d6b4e..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/ColumnPreCache.java
+++ /dev/null
@@ -1,472 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.blur.thrift.generated;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * 
- */
-public class ColumnPreCache implements org.apache.thrift.TBase<ColumnPreCache, ColumnPreCache._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnPreCache");
-
-  private static final org.apache.thrift.protocol.TField PRE_CACHE_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("preCacheCols", org.apache.thrift.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.thrift.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.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.PRE_CACHE_COLS, new org.apache.thrift.meta_data.FieldMetaData("preCacheCols", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.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.thrift.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.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("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.thrift.TException {
-    // check for required fields
-    // check for sub-struct validity
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class ColumnPreCacheStandardSchemeFactory implements SchemeFactory {
-    public ColumnPreCacheStandardScheme getScheme() {
-      return new ColumnPreCacheStandardScheme();
-    }
-  }
-
-  private static class ColumnPreCacheStandardScheme extends StandardScheme<ColumnPreCache> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnPreCache struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // PRE_CACHE_COLS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list58 = iprot.readListBegin();
-                struct.preCacheCols = new ArrayList<String>(_list58.size);
-                for (int _i59 = 0; _i59 < _list58.size; ++_i59)
-                {
-                  String _elem60; // required
-                  _elem60 = iprot.readString();
-                  struct.preCacheCols.add(_elem60);
-                }
-                iprot.readListEnd();
-              }
-              struct.setPreCacheColsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-
-      // check for required fields of primitive type, which can't be checked in the validate method
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnPreCache struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.preCacheCols != null) {
-        oprot.writeFieldBegin(PRE_CACHE_COLS_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.preCacheCols.size()));
-          for (String _iter61 : struct.preCacheCols)
-          {
-            oprot.writeString(_iter61);
-          }
-          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.thrift.protocol.TProtocol prot, ColumnPreCache struct) throws org.apache.thrift.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 _iter62 : struct.preCacheCols)
-          {
-            oprot.writeString(_iter62);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ColumnPreCache struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(1);
-      if (incoming.get(0)) {
-        {
-          org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-          struct.preCacheCols = new ArrayList<String>(_list63.size);
-          for (int _i64 = 0; _i64 < _list63.size; ++_i64)
-          {
-            String _elem65; // required
-            _elem65 = iprot.readString();
-            struct.preCacheCols.add(_elem65);
-          }
-        }
-        struct.setPreCacheColsIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/interface/gen-java/org/apache/blur/thrift/generated/DocLocation.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/DocLocation.java b/interface/gen-java/org/apache/blur/thrift/generated/DocLocation.java
deleted file mode 100644
index 2312d4a..0000000
--- a/interface/gen-java/org/apache/blur/thrift/generated/DocLocation.java
+++ /dev/null
@@ -1,497 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-package org.apache.blur.thrift.generated;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class DocLocation implements org.apache.thrift.TBase<DocLocation, DocLocation._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DocLocation");
-
-  private static final org.apache.thrift.protocol.TField DOC_FIELD_DESC = new org.apache.thrift.protocol.TField("doc", org.apache.thrift.protocol.TType.I32, (short)1);
-  private static final org.apache.thrift.protocol.TField SHARD_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("shardIndex", org.apache.thrift.protocol.TType.I32, (short)2);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new DocLocationStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new DocLocationTupleSchemeFactory());
-  }
-
-  public int doc; // required
-  public int shardIndex; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    DOC((short)1, "doc"),
-    SHARD_INDEX((short)2, "shardIndex");
-
-    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: // DOC
-          return DOC;
-        case 2: // SHARD_INDEX
-          return SHARD_INDEX;
-        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 __DOC_ISSET_ID = 0;
-  private static final int __SHARDINDEX_ISSET_ID = 1;
-  private byte __isset_bitfield = 0;
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.DOC, new org.apache.thrift.meta_data.FieldMetaData("doc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.SHARD_INDEX, new org.apache.thrift.meta_data.FieldMetaData("shardIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DocLocation.class, metaDataMap);
-  }
-
-  public DocLocation() {
-  }
-
-  public DocLocation(
-    int doc,
-    int shardIndex)
-  {
-    this();
-    this.doc = doc;
-    setDocIsSet(true);
-    this.shardIndex = shardIndex;
-    setShardIndexIsSet(true);
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public DocLocation(DocLocation other) {
-    __isset_bitfield = other.__isset_bitfield;
-    this.doc = other.doc;
-    this.shardIndex = other.shardIndex;
-  }
-
-  public DocLocation deepCopy() {
-    return new DocLocation(this);
-  }
-
-  @Override
-  public void clear() {
-    setDocIsSet(false);
-    this.doc = 0;
-    setShardIndexIsSet(false);
-    this.shardIndex = 0;
-  }
-
-  public int getDoc() {
-    return this.doc;
-  }
-
-  public DocLocation setDoc(int doc) {
-    this.doc = doc;
-    setDocIsSet(true);
-    return this;
-  }
-
-  public void unsetDoc() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DOC_ISSET_ID);
-  }
-
-  /** Returns true if field doc is set (has been assigned a value) and false otherwise */
-  public boolean isSetDoc() {
-    return EncodingUtils.testBit(__isset_bitfield, __DOC_ISSET_ID);
-  }
-
-  public void setDocIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DOC_ISSET_ID, value);
-  }
-
-  public int getShardIndex() {
-    return this.shardIndex;
-  }
-
-  public DocLocation setShardIndex(int shardIndex) {
-    this.shardIndex = shardIndex;
-    setShardIndexIsSet(true);
-    return this;
-  }
-
-  public void unsetShardIndex() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHARDINDEX_ISSET_ID);
-  }
-
-  /** Returns true if field shardIndex is set (has been assigned a value) and false otherwise */
-  public boolean isSetShardIndex() {
-    return EncodingUtils.testBit(__isset_bitfield, __SHARDINDEX_ISSET_ID);
-  }
-
-  public void setShardIndexIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHARDINDEX_ISSET_ID, value);
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case DOC:
-      if (value == null) {
-        unsetDoc();
-      } else {
-        setDoc((Integer)value);
-      }
-      break;
-
-    case SHARD_INDEX:
-      if (value == null) {
-        unsetShardIndex();
-      } else {
-        setShardIndex((Integer)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case DOC:
-      return Integer.valueOf(getDoc());
-
-    case SHARD_INDEX:
-      return Integer.valueOf(getShardIndex());
-
-    }
-    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 DOC:
-      return isSetDoc();
-    case SHARD_INDEX:
-      return isSetShardIndex();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof DocLocation)
-      return this.equals((DocLocation)that);
-    return false;
-  }
-
-  public boolean equals(DocLocation that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_doc = true;
-    boolean that_present_doc = true;
-    if (this_present_doc || that_present_doc) {
-      if (!(this_present_doc && that_present_doc))
-        return false;
-      if (this.doc != that.doc)
-        return false;
-    }
-
-    boolean this_present_shardIndex = true;
-    boolean that_present_shardIndex = true;
-    if (this_present_shardIndex || that_present_shardIndex) {
-      if (!(this_present_shardIndex && that_present_shardIndex))
-        return false;
-      if (this.shardIndex != that.shardIndex)
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(DocLocation other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    DocLocation typedOther = (DocLocation)other;
-
-    lastComparison = Boolean.valueOf(isSetDoc()).compareTo(typedOther.isSetDoc());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetDoc()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doc, typedOther.doc);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetShardIndex()).compareTo(typedOther.isSetShardIndex());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetShardIndex()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shardIndex, typedOther.shardIndex);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("DocLocation(");
-    boolean first = true;
-
-    sb.append("doc:");
-    sb.append(this.doc);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("shardIndex:");
-    sb.append(this.shardIndex);
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.thrift.TException {
-    // check for required fields
-    // check for sub-struct validity
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-      __isset_bitfield = 0;
-      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-    } catch (org.apache.thrift.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class DocLocationStandardSchemeFactory implements SchemeFactory {
-    public DocLocationStandardScheme getScheme() {
-      return new DocLocationStandardScheme();
-    }
-  }
-
-  private static class DocLocationStandardScheme extends StandardScheme<DocLocation> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, DocLocation struct) throws org.apache.thrift.TException {
-      org.apache.thrift.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // DOC
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.doc = iprot.readI32();
-              struct.setDocIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // SHARD_INDEX
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.shardIndex = iprot.readI32();
-              struct.setShardIndexIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-
-      // check for required fields of primitive type, which can't be checked in the validate method
-      struct.validate();
-    }
-
-    public void write(org.apache.thrift.protocol.TProtocol oprot, DocLocation struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      oprot.writeFieldBegin(DOC_FIELD_DESC);
-      oprot.writeI32(struct.doc);
-      oprot.writeFieldEnd();
-      oprot.writeFieldBegin(SHARD_INDEX_FIELD_DESC);
-      oprot.writeI32(struct.shardIndex);
-      oprot.writeFieldEnd();
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class DocLocationTupleSchemeFactory implements SchemeFactory {
-    public DocLocationTupleScheme getScheme() {
-      return new DocLocationTupleScheme();
-    }
-  }
-
-  private static class DocLocationTupleScheme extends TupleScheme<DocLocation> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, DocLocation struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetDoc()) {
-        optionals.set(0);
-      }
-      if (struct.isSetShardIndex()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetDoc()) {
-        oprot.writeI32(struct.doc);
-      }
-      if (struct.isSetShardIndex()) {
-        oprot.writeI32(struct.shardIndex);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, DocLocation struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.doc = iprot.readI32();
-        struct.setDocIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.shardIndex = iprot.readI32();
-        struct.setShardIndexIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/interface/gen-java/org/apache/blur/thrift/generated/Document.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/Document.java b/interface/gen-java/org/apache/blur/thrift/generated/Document.java
index c52b410..d533c99 100644
--- a/interface/gen-java/org/apache/blur/thrift/generated/Document.java
+++ b/interface/gen-java/org/apache/blur/thrift/generated/Document.java
@@ -61,14 +61,14 @@ public class Document implements org.apache.thrift.TBase<Document, Document._Fie
   }
 
   /**
-   * 
+   * This list of fields to be indexed.  The same field name can be used across fields and the order of the fields will be maintained.
    */
   public List<Field> fields; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
   public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     /**
-     * 
+     * This list of fields to be indexed.  The same field name can be used across fields and the order of the fields will be maintained.
      */
     FIELDS((short)1, "fields");
 
@@ -185,14 +185,14 @@ public class Document implements org.apache.thrift.TBase<Document, Document._Fie
   }
 
   /**
-   * 
+   * This list of fields to be indexed.  The same field name can be used across fields and the order of the fields will be maintained.
    */
   public List<Field> getFields() {
     return this.fields;
   }
 
   /**
-   * 
+   * This list of fields to be indexed.  The same field name can be used across fields and the order of the fields will be maintained.
    */
   public Document setFields(List<Field> fields) {
     this.fields = fields;
@@ -370,14 +370,14 @@ public class Document implements org.apache.thrift.TBase<Document, Document._Fie
           case 1: // FIELDS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list124 = iprot.readListBegin();
-                struct.fields = new ArrayList<Field>(_list124.size);
-                for (int _i125 = 0; _i125 < _list124.size; ++_i125)
+                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
+                struct.fields = new ArrayList<Field>(_list104.size);
+                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
                 {
-                  Field _elem126; // required
-                  _elem126 = new Field();
-                  _elem126.read(iprot);
-                  struct.fields.add(_elem126);
+                  Field _elem106; // required
+                  _elem106 = new Field();
+                  _elem106.read(iprot);
+                  struct.fields.add(_elem106);
                 }
                 iprot.readListEnd();
               }
@@ -405,9 +405,9 @@ public class Document implements org.apache.thrift.TBase<Document, Document._Fie
         oprot.writeFieldBegin(FIELDS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fields.size()));
-          for (Field _iter127 : struct.fields)
+          for (Field _iter107 : struct.fields)
           {
-            _iter127.write(oprot);
+            _iter107.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -438,9 +438,9 @@ public class Document implements org.apache.thrift.TBase<Document, Document._Fie
       if (struct.isSetFields()) {
         {
           oprot.writeI32(struct.fields.size());
-          for (Field _iter128 : struct.fields)
+          for (Field _iter108 : struct.fields)
           {
-            _iter128.write(oprot);
+            _iter108.write(oprot);
           }
         }
       }
@@ -452,14 +452,14 @@ public class Document implements org.apache.thrift.TBase<Document, Document._Fie
       BitSet incoming = iprot.readBitSet(1);
       if (incoming.get(0)) {
         {
-          org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.fields = new ArrayList<Field>(_list129.size);
-          for (int _i130 = 0; _i130 < _list129.size; ++_i130)
+          org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.fields = new ArrayList<Field>(_list109.size);
+          for (int _i110 = 0; _i110 < _list109.size; ++_i110)
           {
-            Field _elem131; // required
-            _elem131 = new Field();
-            _elem131.read(iprot);
-            struct.fields.add(_elem131);
+            Field _elem111; // required
+            _elem111 = new Field();
+            _elem111.read(iprot);
+            struct.fields.add(_elem111);
           }
         }
         struct.setFieldsIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/interface/gen-java/org/apache/blur/thrift/generated/LiveSchema.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/LiveSchema.java b/interface/gen-java/org/apache/blur/thrift/generated/LiveSchema.java
new file mode 100644
index 0000000..a00a3b8
--- /dev/null
+++ b/interface/gen-java/org/apache/blur/thrift/generated/LiveSchema.java
@@ -0,0 +1,631 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.blur.thrift.generated;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 
+ */
+public class LiveSchema implements org.apache.thrift.TBase<LiveSchema, LiveSchema._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LiveSchema");
+
+  private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField COLUMN_FAMILIES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnFamilies", org.apache.thrift.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 LiveSchemaStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new LiveSchemaTupleSchemeFactory());
+  }
+
+  /**
+   * 
+   */
+  public String table; // required
+  /**
+   * 
+   */
+  public Map<String,Set<String>> columnFamilies; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    /**
+     * 
+     */
+    TABLE((short)1, "table"),
+    /**
+     * 
+     */
+    COLUMN_FAMILIES((short)2, "columnFamilies");
+
+    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: // TABLE
+          return TABLE;
+        case 2: // COLUMN_FAMILIES
+          return COLUMN_FAMILIES;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.COLUMN_FAMILIES, new org.apache.thrift.meta_data.FieldMetaData("columnFamilies", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
+            new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, 
+                new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LiveSchema.class, metaDataMap);
+  }
+
+  public LiveSchema() {
+  }
+
+  public LiveSchema(
+    String table,
+    Map<String,Set<String>> columnFamilies)
+  {
+    this();
+    this.table = table;
+    this.columnFamilies = columnFamilies;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public LiveSchema(LiveSchema other) {
+    if (other.isSetTable()) {
+      this.table = other.table;
+    }
+    if (other.isSetColumnFamilies()) {
+      Map<String,Set<String>> __this__columnFamilies = new HashMap<String,Set<String>>();
+      for (Map.Entry<String, Set<String>> other_element : other.columnFamilies.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        Set<String> other_element_value = other_element.getValue();
+
+        String __this__columnFamilies_copy_key = other_element_key;
+
+        Set<String> __this__columnFamilies_copy_value = new HashSet<String>();
+        for (String other_element_value_element : other_element_value) {
+          __this__columnFamilies_copy_value.add(other_element_value_element);
+        }
+
+        __this__columnFamilies.put(__this__columnFamilies_copy_key, __this__columnFamilies_copy_value);
+      }
+      this.columnFamilies = __this__columnFamilies;
+    }
+  }
+
+  public LiveSchema deepCopy() {
+    return new LiveSchema(this);
+  }
+
+  @Override
+  public void clear() {
+    this.table = null;
+    this.columnFamilies = null;
+  }
+
+  /**
+   * 
+   */
+  public String getTable() {
+    return this.table;
+  }
+
+  /**
+   * 
+   */
+  public LiveSchema setTable(String table) {
+    this.table = table;
+    return this;
+  }
+
+  public void unsetTable() {
+    this.table = null;
+  }
+
+  /** Returns true if field table is set (has been assigned a value) and false otherwise */
+  public boolean isSetTable() {
+    return this.table != null;
+  }
+
+  public void setTableIsSet(boolean value) {
+    if (!value) {
+      this.table = null;
+    }
+  }
+
+  public int getColumnFamiliesSize() {
+    return (this.columnFamilies == null) ? 0 : this.columnFamilies.size();
+  }
+
+  public void putToColumnFamilies(String key, Set<String> val) {
+    if (this.columnFamilies == null) {
+      this.columnFamilies = new HashMap<String,Set<String>>();
+    }
+    this.columnFamilies.put(key, val);
+  }
+
+  /**
+   * 
+   */
+  public Map<String,Set<String>> getColumnFamilies() {
+    return this.columnFamilies;
+  }
+
+  /**
+   * 
+   */
+  public LiveSchema setColumnFamilies(Map<String,Set<String>> columnFamilies) {
+    this.columnFamilies = columnFamilies;
+    return this;
+  }
+
+  public void unsetColumnFamilies() {
+    this.columnFamilies = null;
+  }
+
+  /** Returns true if field columnFamilies is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnFamilies() {
+    return this.columnFamilies != null;
+  }
+
+  public void setColumnFamiliesIsSet(boolean value) {
+    if (!value) {
+      this.columnFamilies = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case TABLE:
+      if (value == null) {
+        unsetTable();
+      } else {
+        setTable((String)value);
+      }
+      break;
+
+    case COLUMN_FAMILIES:
+      if (value == null) {
+        unsetColumnFamilies();
+      } else {
+        setColumnFamilies((Map<String,Set<String>>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case TABLE:
+      return getTable();
+
+    case COLUMN_FAMILIES:
+      return getColumnFamilies();
+
+    }
+    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 TABLE:
+      return isSetTable();
+    case COLUMN_FAMILIES:
+      return isSetColumnFamilies();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof LiveSchema)
+      return this.equals((LiveSchema)that);
+    return false;
+  }
+
+  public boolean equals(LiveSchema that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_table = true && this.isSetTable();
+    boolean that_present_table = true && that.isSetTable();
+    if (this_present_table || that_present_table) {
+      if (!(this_present_table && that_present_table))
+        return false;
+      if (!this.table.equals(that.table))
+        return false;
+    }
+
+    boolean this_present_columnFamilies = true && this.isSetColumnFamilies();
+    boolean that_present_columnFamilies = true && that.isSetColumnFamilies();
+    if (this_present_columnFamilies || that_present_columnFamilies) {
+      if (!(this_present_columnFamilies && that_present_columnFamilies))
+        return false;
+      if (!this.columnFamilies.equals(that.columnFamilies))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(LiveSchema other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    LiveSchema typedOther = (LiveSchema)other;
+
+    lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTable()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(typedOther.isSetColumnFamilies());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnFamilies()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamilies, typedOther.columnFamilies);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("LiveSchema(");
+    boolean first = true;
+
+    sb.append("table:");
+    if (this.table == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.table);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("columnFamilies:");
+    if (this.columnFamilies == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.columnFamilies);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class LiveSchemaStandardSchemeFactory implements SchemeFactory {
+    public LiveSchemaStandardScheme getScheme() {
+      return new LiveSchemaStandardScheme();
+    }
+  }
+
+  private static class LiveSchemaStandardScheme extends StandardScheme<LiveSchema> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, LiveSchema struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // TABLE
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.table = iprot.readString();
+              struct.setTableIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // COLUMN_FAMILIES
+            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
+              {
+                org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
+                struct.columnFamilies = new HashMap<String,Set<String>>(2*_map10.size);
+                for (int _i11 = 0; _i11 < _map10.size; ++_i11)
+                {
+                  String _key12; // required
+                  Set<String> _val13; // optional
+                  _key12 = iprot.readString();
+                  {
+                    org.apache.thrift.protocol.TSet _set14 = iprot.readSetBegin();
+                    _val13 = new HashSet<String>(2*_set14.size);
+                    for (int _i15 = 0; _i15 < _set14.size; ++_i15)
+                    {
+                      String _elem16; // required
+                      _elem16 = iprot.readString();
+                      _val13.add(_elem16);
+                    }
+                    iprot.readSetEnd();
+                  }
+                  struct.columnFamilies.put(_key12, _val13);
+                }
+                iprot.readMapEnd();
+              }
+              struct.setColumnFamiliesIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, LiveSchema struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.table != null) {
+        oprot.writeFieldBegin(TABLE_FIELD_DESC);
+        oprot.writeString(struct.table);
+        oprot.writeFieldEnd();
+      }
+      if (struct.columnFamilies != null) {
+        oprot.writeFieldBegin(COLUMN_FAMILIES_FIELD_DESC);
+        {
+          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.columnFamilies.size()));
+          for (Map.Entry<String, Set<String>> _iter17 : struct.columnFamilies.entrySet())
+          {
+            oprot.writeString(_iter17.getKey());
+            {
+              oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter17.getValue().size()));
+              for (String _iter18 : _iter17.getValue())
+              {
+                oprot.writeString(_iter18);
+              }
+              oprot.writeSetEnd();
+            }
+          }
+          oprot.writeMapEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class LiveSchemaTupleSchemeFactory implements SchemeFactory {
+    public LiveSchemaTupleScheme getScheme() {
+      return new LiveSchemaTupleScheme();
+    }
+  }
+
+  private static class LiveSchemaTupleScheme extends TupleScheme<LiveSchema> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, LiveSchema struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetTable()) {
+        optionals.set(0);
+      }
+      if (struct.isSetColumnFamilies()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetTable()) {
+        oprot.writeString(struct.table);
+      }
+      if (struct.isSetColumnFamilies()) {
+        {
+          oprot.writeI32(struct.columnFamilies.size());
+          for (Map.Entry<String, Set<String>> _iter19 : struct.columnFamilies.entrySet())
+          {
+            oprot.writeString(_iter19.getKey());
+            {
+              oprot.writeI32(_iter19.getValue().size());
+              for (String _iter20 : _iter19.getValue())
+              {
+                oprot.writeString(_iter20);
+              }
+            }
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, LiveSchema struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.table = iprot.readString();
+        struct.setTableIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.thrift.protocol.TMap _map21 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
+          struct.columnFamilies = new HashMap<String,Set<String>>(2*_map21.size);
+          for (int _i22 = 0; _i22 < _map21.size; ++_i22)
+          {
+            String _key23; // required
+            Set<String> _val24; // optional
+            _key23 = iprot.readString();
+            {
+              org.apache.thrift.protocol.TSet _set25 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+              _val24 = new HashSet<String>(2*_set25.size);
+              for (int _i26 = 0; _i26 < _set25.size; ++_i26)
+              {
+                String _elem27; // required
+                _elem27 = iprot.readString();
+                _val24.add(_elem27);
+              }
+            }
+            struct.columnFamilies.put(_key23, _val24);
+          }
+        }
+        struct.setColumnFamiliesIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/interface/gen-java/org/apache/blur/thrift/generated/MutateOptions.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/MutateOptions.java b/interface/gen-java/org/apache/blur/thrift/generated/MutateOptions.java
index 61cadf8..d68db32 100644
--- a/interface/gen-java/org/apache/blur/thrift/generated/MutateOptions.java
+++ b/interface/gen-java/org/apache/blur/thrift/generated/MutateOptions.java
@@ -64,38 +64,38 @@ public class MutateOptions implements org.apache.thrift.TBase<MutateOptions, Mut
   }
 
   /**
-   * 
+   * The name of the table.
    */
   public String table; // required
   /**
-   * 
+   * The index of the shard in the table that the mutate will operate against.
    */
   public int shardIndex; // required
   /**
-   * 
+   * Setting this to true will cause the mutate call to block until the mutates are visible.
    */
   public boolean waitToBeVisible; // required
   /**
-   * 
+   * Whether or not to add this mutation to the write ahead log for recovery of information during a shard server crash.
    */
   public boolean writeAheadLog; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
   public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     /**
-     * 
+     * The name of the table.
      */
     TABLE((short)1, "table"),
     /**
-     * 
+     * The index of the shard in the table that the mutate will operate against.
      */
     SHARD_INDEX((short)2, "shardIndex"),
     /**
-     * 
+     * Setting this to true will cause the mutate call to block until the mutates are visible.
      */
     WAIT_TO_BE_VISIBLE((short)3, "waitToBeVisible"),
     /**
-     * 
+     * Whether or not to add this mutation to the write ahead log for recovery of information during a shard server crash.
      */
     WRITE_AHEAD_LOG((short)4, "writeAheadLog");
 
@@ -180,6 +180,10 @@ public class MutateOptions implements org.apache.thrift.TBase<MutateOptions, Mut
   }
 
   public MutateOptions() {
+    this.waitToBeVisible = false;
+
+    this.writeAheadLog = true;
+
   }
 
   public MutateOptions(
@@ -220,21 +224,21 @@ public class MutateOptions implements org.apache.thrift.TBase<MutateOptions, Mut
     this.table = null;
     setShardIndexIsSet(false);
     this.shardIndex = 0;
-    setWaitToBeVisibleIsSet(false);
     this.waitToBeVisible = false;
-    setWriteAheadLogIsSet(false);
-    this.writeAheadLog = false;
+
+    this.writeAheadLog = true;
+
   }
 
   /**
-   * 
+   * The name of the table.
    */
   public String getTable() {
     return this.table;
   }
 
   /**
-   * 
+   * The name of the table.
    */
   public MutateOptions setTable(String table) {
     this.table = table;
@@ -257,14 +261,14 @@ public class MutateOptions implements org.apache.thrift.TBase<MutateOptions, Mut
   }
 
   /**
-   * 
+   * The index of the shard in the table that the mutate will operate against.
    */
   public int getShardIndex() {
     return this.shardIndex;
   }
 
   /**
-   * 
+   * The index of the shard in the table that the mutate will operate against.
    */
   public MutateOptions setShardIndex(int shardIndex) {
     this.shardIndex = shardIndex;
@@ -286,14 +290,14 @@ public class MutateOptions implements org.apache.thrift.TBase<MutateOptions, Mut
   }
 
   /**
-   * 
+   * Setting this to true will cause the mutate call to block until the mutates are visible.
    */
   public boolean isWaitToBeVisible() {
     return this.waitToBeVisible;
   }
 
   /**
-   * 
+   * Setting this to true will cause the mutate call to block until the mutates are visible.
    */
   public MutateOptions setWaitToBeVisible(boolean waitToBeVisible) {
     this.waitToBeVisible = waitToBeVisible;
@@ -315,14 +319,14 @@ public class MutateOptions implements org.apache.thrift.TBase<MutateOptions, Mut
   }
 
   /**
-   * 
+   * Whether or not to add this mutation to the write ahead log for recovery of information during a shard server crash.
    */
   public boolean isWriteAheadLog() {
     return this.writeAheadLog;
   }
 
   /**
-   * 
+   * Whether or not to add this mutation to the write ahead log for recovery of information during a shard server crash.
    */
   public MutateOptions setWriteAheadLog(boolean writeAheadLog) {
     this.writeAheadLog = writeAheadLog;


Mime
View raw message