incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [21/27] Massive changes to the the thrift API. Getting closer to the final version, this commit also removes the controller from the architecture.
Date Sun, 18 Nov 2012 00:52:59 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java
deleted file mode 100644
index b75c90d..0000000
--- a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/BlurQueryStatus.java
+++ /dev/null
@@ -1,927 +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 BlurQueryStatus implements org.apache.thrift.TBase<BlurQueryStatus, BlurQueryStatus._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BlurQueryStatus");
-
-  private static final org.apache.thrift.protocol.TField CPU_TIMES_FIELD_DESC = new org.apache.thrift.protocol.TField("cpuTimes", org.apache.thrift.protocol.TType.MAP, (short)2);
-  private static final org.apache.thrift.protocol.TField COMPLETE_SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("completeShards", org.apache.thrift.protocol.TType.I32, (short)3);
-  private static final org.apache.thrift.protocol.TField TOTAL_SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalShards", org.apache.thrift.protocol.TType.I32, (short)4);
-  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)5);
-  private static final org.apache.thrift.protocol.TField UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("uuid", org.apache.thrift.protocol.TType.I64, (short)6);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new BlurQueryStatusStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new BlurQueryStatusTupleSchemeFactory());
-  }
-
-  /**
-   * 
-   */
-  public Map<String,CpuTime> cpuTimes; // required
-  /**
-   * 
-   */
-  public int completeShards; // required
-  /**
-   * 
-   */
-  public int totalShards; // required
-  /**
-   * 
-   * 
-   * @see QueryState
-   */
-  public QueryState state; // required
-  /**
-   * 
-   */
-  public long uuid; // 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 {
-    /**
-     * 
-     */
-    CPU_TIMES((short)2, "cpuTimes"),
-    /**
-     * 
-     */
-    COMPLETE_SHARDS((short)3, "completeShards"),
-    /**
-     * 
-     */
-    TOTAL_SHARDS((short)4, "totalShards"),
-    /**
-     * 
-     * 
-     * @see QueryState
-     */
-    STATE((short)5, "state"),
-    /**
-     * 
-     */
-    UUID((short)6, "uuid");
-
-    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 2: // CPU_TIMES
-          return CPU_TIMES;
-        case 3: // COMPLETE_SHARDS
-          return COMPLETE_SHARDS;
-        case 4: // TOTAL_SHARDS
-          return TOTAL_SHARDS;
-        case 5: // STATE
-          return STATE;
-        case 6: // UUID
-          return UUID;
-        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 __COMPLETESHARDS_ISSET_ID = 0;
-  private static final int __TOTALSHARDS_ISSET_ID = 1;
-  private static final int __UUID_ISSET_ID = 2;
-  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.CPU_TIMES, new org.apache.thrift.meta_data.FieldMetaData("cpuTimes", 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, CpuTime.class))));
-    tmpMap.put(_Fields.COMPLETE_SHARDS, new org.apache.thrift.meta_data.FieldMetaData("completeShards", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.TOTAL_SHARDS, new org.apache.thrift.meta_data.FieldMetaData("totalShards", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-    tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, QueryState.class)));
-    tmpMap.put(_Fields.UUID, new org.apache.thrift.meta_data.FieldMetaData("uuid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BlurQueryStatus.class, metaDataMap);
-  }
-
-  public BlurQueryStatus() {
-  }
-
-  public BlurQueryStatus(
-    Map<String,CpuTime> cpuTimes,
-    int completeShards,
-    int totalShards,
-    QueryState state,
-    long uuid)
-  {
-    this();
-    this.cpuTimes = cpuTimes;
-    this.completeShards = completeShards;
-    setCompleteShardsIsSet(true);
-    this.totalShards = totalShards;
-    setTotalShardsIsSet(true);
-    this.state = state;
-    this.uuid = uuid;
-    setUuidIsSet(true);
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public BlurQueryStatus(BlurQueryStatus other) {
-    __isset_bitfield = other.__isset_bitfield;
-    if (other.isSetCpuTimes()) {
-      Map<String,CpuTime> __this__cpuTimes = new HashMap<String,CpuTime>();
-      for (Map.Entry<String, CpuTime> other_element : other.cpuTimes.entrySet()) {
-
-        String other_element_key = other_element.getKey();
-        CpuTime other_element_value = other_element.getValue();
-
-        String __this__cpuTimes_copy_key = other_element_key;
-
-        CpuTime __this__cpuTimes_copy_value = new CpuTime(other_element_value);
-
-        __this__cpuTimes.put(__this__cpuTimes_copy_key, __this__cpuTimes_copy_value);
-      }
-      this.cpuTimes = __this__cpuTimes;
-    }
-    this.completeShards = other.completeShards;
-    this.totalShards = other.totalShards;
-    if (other.isSetState()) {
-      this.state = other.state;
-    }
-    this.uuid = other.uuid;
-  }
-
-  public BlurQueryStatus deepCopy() {
-    return new BlurQueryStatus(this);
-  }
-
-  @Override
-  public void clear() {
-    this.cpuTimes = null;
-    setCompleteShardsIsSet(false);
-    this.completeShards = 0;
-    setTotalShardsIsSet(false);
-    this.totalShards = 0;
-    this.state = null;
-    setUuidIsSet(false);
-    this.uuid = 0;
-  }
-
-  public int getCpuTimesSize() {
-    return (this.cpuTimes == null) ? 0 : this.cpuTimes.size();
-  }
-
-  public void putToCpuTimes(String key, CpuTime val) {
-    if (this.cpuTimes == null) {
-      this.cpuTimes = new HashMap<String,CpuTime>();
-    }
-    this.cpuTimes.put(key, val);
-  }
-
-  /**
-   * 
-   */
-  public Map<String,CpuTime> getCpuTimes() {
-    return this.cpuTimes;
-  }
-
-  /**
-   * 
-   */
-  public BlurQueryStatus setCpuTimes(Map<String,CpuTime> cpuTimes) {
-    this.cpuTimes = cpuTimes;
-    return this;
-  }
-
-  public void unsetCpuTimes() {
-    this.cpuTimes = null;
-  }
-
-  /** Returns true if field cpuTimes is set (has been assigned a value) and false otherwise */
-  public boolean isSetCpuTimes() {
-    return this.cpuTimes != null;
-  }
-
-  public void setCpuTimesIsSet(boolean value) {
-    if (!value) {
-      this.cpuTimes = null;
-    }
-  }
-
-  /**
-   * 
-   */
-  public int getCompleteShards() {
-    return this.completeShards;
-  }
-
-  /**
-   * 
-   */
-  public BlurQueryStatus setCompleteShards(int completeShards) {
-    this.completeShards = completeShards;
-    setCompleteShardsIsSet(true);
-    return this;
-  }
-
-  public void unsetCompleteShards() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COMPLETESHARDS_ISSET_ID);
-  }
-
-  /** Returns true if field completeShards is set (has been assigned a value) and false otherwise */
-  public boolean isSetCompleteShards() {
-    return EncodingUtils.testBit(__isset_bitfield, __COMPLETESHARDS_ISSET_ID);
-  }
-
-  public void setCompleteShardsIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COMPLETESHARDS_ISSET_ID, value);
-  }
-
-  /**
-   * 
-   */
-  public int getTotalShards() {
-    return this.totalShards;
-  }
-
-  /**
-   * 
-   */
-  public BlurQueryStatus setTotalShards(int totalShards) {
-    this.totalShards = totalShards;
-    setTotalShardsIsSet(true);
-    return this;
-  }
-
-  public void unsetTotalShards() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTALSHARDS_ISSET_ID);
-  }
-
-  /** Returns true if field totalShards is set (has been assigned a value) and false otherwise */
-  public boolean isSetTotalShards() {
-    return EncodingUtils.testBit(__isset_bitfield, __TOTALSHARDS_ISSET_ID);
-  }
-
-  public void setTotalShardsIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTALSHARDS_ISSET_ID, value);
-  }
-
-  /**
-   * 
-   * 
-   * @see QueryState
-   */
-  public QueryState getState() {
-    return this.state;
-  }
-
-  /**
-   * 
-   * 
-   * @see QueryState
-   */
-  public BlurQueryStatus setState(QueryState state) {
-    this.state = state;
-    return this;
-  }
-
-  public void unsetState() {
-    this.state = null;
-  }
-
-  /** Returns true if field state is set (has been assigned a value) and false otherwise */
-  public boolean isSetState() {
-    return this.state != null;
-  }
-
-  public void setStateIsSet(boolean value) {
-    if (!value) {
-      this.state = null;
-    }
-  }
-
-  /**
-   * 
-   */
-  public long getUuid() {
-    return this.uuid;
-  }
-
-  /**
-   * 
-   */
-  public BlurQueryStatus setUuid(long uuid) {
-    this.uuid = uuid;
-    setUuidIsSet(true);
-    return this;
-  }
-
-  public void unsetUuid() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UUID_ISSET_ID);
-  }
-
-  /** Returns true if field uuid is set (has been assigned a value) and false otherwise */
-  public boolean isSetUuid() {
-    return EncodingUtils.testBit(__isset_bitfield, __UUID_ISSET_ID);
-  }
-
-  public void setUuidIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UUID_ISSET_ID, value);
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case CPU_TIMES:
-      if (value == null) {
-        unsetCpuTimes();
-      } else {
-        setCpuTimes((Map<String,CpuTime>)value);
-      }
-      break;
-
-    case COMPLETE_SHARDS:
-      if (value == null) {
-        unsetCompleteShards();
-      } else {
-        setCompleteShards((Integer)value);
-      }
-      break;
-
-    case TOTAL_SHARDS:
-      if (value == null) {
-        unsetTotalShards();
-      } else {
-        setTotalShards((Integer)value);
-      }
-      break;
-
-    case STATE:
-      if (value == null) {
-        unsetState();
-      } else {
-        setState((QueryState)value);
-      }
-      break;
-
-    case UUID:
-      if (value == null) {
-        unsetUuid();
-      } else {
-        setUuid((Long)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case CPU_TIMES:
-      return getCpuTimes();
-
-    case COMPLETE_SHARDS:
-      return Integer.valueOf(getCompleteShards());
-
-    case TOTAL_SHARDS:
-      return Integer.valueOf(getTotalShards());
-
-    case STATE:
-      return getState();
-
-    case UUID:
-      return Long.valueOf(getUuid());
-
-    }
-    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_TIMES:
-      return isSetCpuTimes();
-    case COMPLETE_SHARDS:
-      return isSetCompleteShards();
-    case TOTAL_SHARDS:
-      return isSetTotalShards();
-    case STATE:
-      return isSetState();
-    case UUID:
-      return isSetUuid();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof BlurQueryStatus)
-      return this.equals((BlurQueryStatus)that);
-    return false;
-  }
-
-  public boolean equals(BlurQueryStatus that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_cpuTimes = true && this.isSetCpuTimes();
-    boolean that_present_cpuTimes = true && that.isSetCpuTimes();
-    if (this_present_cpuTimes || that_present_cpuTimes) {
-      if (!(this_present_cpuTimes && that_present_cpuTimes))
-        return false;
-      if (!this.cpuTimes.equals(that.cpuTimes))
-        return false;
-    }
-
-    boolean this_present_completeShards = true;
-    boolean that_present_completeShards = true;
-    if (this_present_completeShards || that_present_completeShards) {
-      if (!(this_present_completeShards && that_present_completeShards))
-        return false;
-      if (this.completeShards != that.completeShards)
-        return false;
-    }
-
-    boolean this_present_totalShards = true;
-    boolean that_present_totalShards = true;
-    if (this_present_totalShards || that_present_totalShards) {
-      if (!(this_present_totalShards && that_present_totalShards))
-        return false;
-      if (this.totalShards != that.totalShards)
-        return false;
-    }
-
-    boolean this_present_state = true && this.isSetState();
-    boolean that_present_state = true && that.isSetState();
-    if (this_present_state || that_present_state) {
-      if (!(this_present_state && that_present_state))
-        return false;
-      if (!this.state.equals(that.state))
-        return false;
-    }
-
-    boolean this_present_uuid = true;
-    boolean that_present_uuid = true;
-    if (this_present_uuid || that_present_uuid) {
-      if (!(this_present_uuid && that_present_uuid))
-        return false;
-      if (this.uuid != that.uuid)
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(BlurQueryStatus other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    BlurQueryStatus typedOther = (BlurQueryStatus)other;
-
-    lastComparison = Boolean.valueOf(isSetCpuTimes()).compareTo(typedOther.isSetCpuTimes());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetCpuTimes()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpuTimes, typedOther.cpuTimes);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetCompleteShards()).compareTo(typedOther.isSetCompleteShards());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetCompleteShards()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.completeShards, typedOther.completeShards);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetTotalShards()).compareTo(typedOther.isSetTotalShards());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTotalShards()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalShards, typedOther.totalShards);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetState()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetUuid()).compareTo(typedOther.isSetUuid());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetUuid()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, typedOther.uuid);
-      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("BlurQueryStatus(");
-    boolean first = true;
-
-    sb.append("cpuTimes:");
-    if (this.cpuTimes == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.cpuTimes);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("completeShards:");
-    sb.append(this.completeShards);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("totalShards:");
-    sb.append(this.totalShards);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("state:");
-    if (this.state == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.state);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("uuid:");
-    sb.append(this.uuid);
-    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 BlurQueryStatusStandardSchemeFactory implements SchemeFactory {
-    public BlurQueryStatusStandardScheme getScheme() {
-      return new BlurQueryStatusStandardScheme();
-    }
-  }
-
-  private static class BlurQueryStatusStandardScheme extends StandardScheme<BlurQueryStatus> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, BlurQueryStatus 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 2: // CPU_TIMES
-            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
-              {
-                org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
-                struct.cpuTimes = new HashMap<String,CpuTime>(2*_map0.size);
-                for (int _i1 = 0; _i1 < _map0.size; ++_i1)
-                {
-                  String _key2; // required
-                  CpuTime _val3; // optional
-                  _key2 = iprot.readString();
-                  _val3 = new CpuTime();
-                  _val3.read(iprot);
-                  struct.cpuTimes.put(_key2, _val3);
-                }
-                iprot.readMapEnd();
-              }
-              struct.setCpuTimesIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // COMPLETE_SHARDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.completeShards = iprot.readI32();
-              struct.setCompleteShardsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // TOTAL_SHARDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.totalShards = iprot.readI32();
-              struct.setTotalShardsIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // STATE
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.state = QueryState.findByValue(iprot.readI32());
-              struct.setStateIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 6: // UUID
-            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
-              struct.uuid = iprot.readI64();
-              struct.setUuidIsSet(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, BlurQueryStatus struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.cpuTimes != null) {
-        oprot.writeFieldBegin(CPU_TIMES_FIELD_DESC);
-        {
-          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.cpuTimes.size()));
-          for (Map.Entry<String, CpuTime> _iter4 : struct.cpuTimes.entrySet())
-          {
-            oprot.writeString(_iter4.getKey());
-            _iter4.getValue().write(oprot);
-          }
-          oprot.writeMapEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(COMPLETE_SHARDS_FIELD_DESC);
-      oprot.writeI32(struct.completeShards);
-      oprot.writeFieldEnd();
-      oprot.writeFieldBegin(TOTAL_SHARDS_FIELD_DESC);
-      oprot.writeI32(struct.totalShards);
-      oprot.writeFieldEnd();
-      if (struct.state != null) {
-        oprot.writeFieldBegin(STATE_FIELD_DESC);
-        oprot.writeI32(struct.state.getValue());
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(UUID_FIELD_DESC);
-      oprot.writeI64(struct.uuid);
-      oprot.writeFieldEnd();
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class BlurQueryStatusTupleSchemeFactory implements SchemeFactory {
-    public BlurQueryStatusTupleScheme getScheme() {
-      return new BlurQueryStatusTupleScheme();
-    }
-  }
-
-  private static class BlurQueryStatusTupleScheme extends TupleScheme<BlurQueryStatus> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, BlurQueryStatus struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetCpuTimes()) {
-        optionals.set(0);
-      }
-      if (struct.isSetCompleteShards()) {
-        optionals.set(1);
-      }
-      if (struct.isSetTotalShards()) {
-        optionals.set(2);
-      }
-      if (struct.isSetState()) {
-        optionals.set(3);
-      }
-      if (struct.isSetUuid()) {
-        optionals.set(4);
-      }
-      oprot.writeBitSet(optionals, 5);
-      if (struct.isSetCpuTimes()) {
-        {
-          oprot.writeI32(struct.cpuTimes.size());
-          for (Map.Entry<String, CpuTime> _iter5 : struct.cpuTimes.entrySet())
-          {
-            oprot.writeString(_iter5.getKey());
-            _iter5.getValue().write(oprot);
-          }
-        }
-      }
-      if (struct.isSetCompleteShards()) {
-        oprot.writeI32(struct.completeShards);
-      }
-      if (struct.isSetTotalShards()) {
-        oprot.writeI32(struct.totalShards);
-      }
-      if (struct.isSetState()) {
-        oprot.writeI32(struct.state.getValue());
-      }
-      if (struct.isSetUuid()) {
-        oprot.writeI64(struct.uuid);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, BlurQueryStatus struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(5);
-      if (incoming.get(0)) {
-        {
-          org.apache.thrift.protocol.TMap _map6 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.cpuTimes = new HashMap<String,CpuTime>(2*_map6.size);
-          for (int _i7 = 0; _i7 < _map6.size; ++_i7)
-          {
-            String _key8; // required
-            CpuTime _val9; // optional
-            _key8 = iprot.readString();
-            _val9 = new CpuTime();
-            _val9.read(iprot);
-            struct.cpuTimes.put(_key8, _val9);
-          }
-        }
-        struct.setCpuTimesIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.completeShards = iprot.readI32();
-        struct.setCompleteShardsIsSet(true);
-      }
-      if (incoming.get(2)) {
-        struct.totalShards = iprot.readI32();
-        struct.setTotalShardsIsSet(true);
-      }
-      if (incoming.get(3)) {
-        struct.state = QueryState.findByValue(iprot.readI32());
-        struct.setStateIsSet(true);
-      }
-      if (incoming.get(4)) {
-        struct.uuid = iprot.readI64();
-        struct.setUuidIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ClassDefinition.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ClassDefinition.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ClassDefinition.java
new file mode 100644
index 0000000..2801749
--- /dev/null
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ClassDefinition.java
@@ -0,0 +1,569 @@
+/**
+ * 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 ClassDefinition implements org.apache.thrift.TBase<ClassDefinition, ClassDefinition._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ClassDefinition");
+
+  private static final org.apache.thrift.protocol.TField CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("className", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField ARGUMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("arguments", 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 ClassDefinitionStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new ClassDefinitionTupleSchemeFactory());
+  }
+
+  public String className; // required
+  public Map<String,ByteBuffer> arguments; // 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 {
+    CLASS_NAME((short)1, "className"),
+    ARGUMENTS((short)2, "arguments");
+
+    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: // CLASS_NAME
+          return CLASS_NAME;
+        case 2: // ARGUMENTS
+          return ARGUMENTS;
+        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.CLASS_NAME, new org.apache.thrift.meta_data.FieldMetaData("className", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.ARGUMENTS, new org.apache.thrift.meta_data.FieldMetaData("arguments", 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING            , true))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ClassDefinition.class, metaDataMap);
+  }
+
+  public ClassDefinition() {
+  }
+
+  public ClassDefinition(
+    String className,
+    Map<String,ByteBuffer> arguments)
+  {
+    this();
+    this.className = className;
+    this.arguments = arguments;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ClassDefinition(ClassDefinition other) {
+    if (other.isSetClassName()) {
+      this.className = other.className;
+    }
+    if (other.isSetArguments()) {
+      Map<String,ByteBuffer> __this__arguments = new HashMap<String,ByteBuffer>();
+      for (Map.Entry<String, ByteBuffer> other_element : other.arguments.entrySet()) {
+
+        String other_element_key = other_element.getKey();
+        ByteBuffer other_element_value = other_element.getValue();
+
+        String __this__arguments_copy_key = other_element_key;
+
+        ByteBuffer __this__arguments_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value);
+;
+
+        __this__arguments.put(__this__arguments_copy_key, __this__arguments_copy_value);
+      }
+      this.arguments = __this__arguments;
+    }
+  }
+
+  public ClassDefinition deepCopy() {
+    return new ClassDefinition(this);
+  }
+
+  @Override
+  public void clear() {
+    this.className = null;
+    this.arguments = null;
+  }
+
+  public String getClassName() {
+    return this.className;
+  }
+
+  public ClassDefinition setClassName(String className) {
+    this.className = className;
+    return this;
+  }
+
+  public void unsetClassName() {
+    this.className = null;
+  }
+
+  /** Returns true if field className is set (has been assigned a value) and false otherwise */
+  public boolean isSetClassName() {
+    return this.className != null;
+  }
+
+  public void setClassNameIsSet(boolean value) {
+    if (!value) {
+      this.className = null;
+    }
+  }
+
+  public int getArgumentsSize() {
+    return (this.arguments == null) ? 0 : this.arguments.size();
+  }
+
+  public void putToArguments(String key, ByteBuffer val) {
+    if (this.arguments == null) {
+      this.arguments = new HashMap<String,ByteBuffer>();
+    }
+    this.arguments.put(key, val);
+  }
+
+  public Map<String,ByteBuffer> getArguments() {
+    return this.arguments;
+  }
+
+  public ClassDefinition setArguments(Map<String,ByteBuffer> arguments) {
+    this.arguments = arguments;
+    return this;
+  }
+
+  public void unsetArguments() {
+    this.arguments = null;
+  }
+
+  /** Returns true if field arguments is set (has been assigned a value) and false otherwise */
+  public boolean isSetArguments() {
+    return this.arguments != null;
+  }
+
+  public void setArgumentsIsSet(boolean value) {
+    if (!value) {
+      this.arguments = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case CLASS_NAME:
+      if (value == null) {
+        unsetClassName();
+      } else {
+        setClassName((String)value);
+      }
+      break;
+
+    case ARGUMENTS:
+      if (value == null) {
+        unsetArguments();
+      } else {
+        setArguments((Map<String,ByteBuffer>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case CLASS_NAME:
+      return getClassName();
+
+    case ARGUMENTS:
+      return getArguments();
+
+    }
+    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 CLASS_NAME:
+      return isSetClassName();
+    case ARGUMENTS:
+      return isSetArguments();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ClassDefinition)
+      return this.equals((ClassDefinition)that);
+    return false;
+  }
+
+  public boolean equals(ClassDefinition that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_className = true && this.isSetClassName();
+    boolean that_present_className = true && that.isSetClassName();
+    if (this_present_className || that_present_className) {
+      if (!(this_present_className && that_present_className))
+        return false;
+      if (!this.className.equals(that.className))
+        return false;
+    }
+
+    boolean this_present_arguments = true && this.isSetArguments();
+    boolean that_present_arguments = true && that.isSetArguments();
+    if (this_present_arguments || that_present_arguments) {
+      if (!(this_present_arguments && that_present_arguments))
+        return false;
+      if (!this.arguments.equals(that.arguments))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(ClassDefinition other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    ClassDefinition typedOther = (ClassDefinition)other;
+
+    lastComparison = Boolean.valueOf(isSetClassName()).compareTo(typedOther.isSetClassName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetClassName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.className, typedOther.className);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetArguments()).compareTo(typedOther.isSetArguments());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetArguments()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.arguments, typedOther.arguments);
+      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("ClassDefinition(");
+    boolean first = true;
+
+    sb.append("className:");
+    if (this.className == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.className);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("arguments:");
+    if (this.arguments == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.arguments);
+    }
+    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 ClassDefinitionStandardSchemeFactory implements SchemeFactory {
+    public ClassDefinitionStandardScheme getScheme() {
+      return new ClassDefinitionStandardScheme();
+    }
+  }
+
+  private static class ClassDefinitionStandardScheme extends StandardScheme<ClassDefinition> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, ClassDefinition 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: // CLASS_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.className = iprot.readString();
+              struct.setClassNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // ARGUMENTS
+            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
+              {
+                org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin();
+                struct.arguments = new HashMap<String,ByteBuffer>(2*_map28.size);
+                for (int _i29 = 0; _i29 < _map28.size; ++_i29)
+                {
+                  String _key30; // required
+                  ByteBuffer _val31; // optional
+                  _key30 = iprot.readString();
+                  _val31 = iprot.readBinary();
+                  struct.arguments.put(_key30, _val31);
+                }
+                iprot.readMapEnd();
+              }
+              struct.setArgumentsIsSet(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, ClassDefinition struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.className != null) {
+        oprot.writeFieldBegin(CLASS_NAME_FIELD_DESC);
+        oprot.writeString(struct.className);
+        oprot.writeFieldEnd();
+      }
+      if (struct.arguments != null) {
+        oprot.writeFieldBegin(ARGUMENTS_FIELD_DESC);
+        {
+          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.arguments.size()));
+          for (Map.Entry<String, ByteBuffer> _iter32 : struct.arguments.entrySet())
+          {
+            oprot.writeString(_iter32.getKey());
+            oprot.writeBinary(_iter32.getValue());
+          }
+          oprot.writeMapEnd();
+        }
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class ClassDefinitionTupleSchemeFactory implements SchemeFactory {
+    public ClassDefinitionTupleScheme getScheme() {
+      return new ClassDefinitionTupleScheme();
+    }
+  }
+
+  private static class ClassDefinitionTupleScheme extends TupleScheme<ClassDefinition> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, ClassDefinition struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetClassName()) {
+        optionals.set(0);
+      }
+      if (struct.isSetArguments()) {
+        optionals.set(1);
+      }
+      oprot.writeBitSet(optionals, 2);
+      if (struct.isSetClassName()) {
+        oprot.writeString(struct.className);
+      }
+      if (struct.isSetArguments()) {
+        {
+          oprot.writeI32(struct.arguments.size());
+          for (Map.Entry<String, ByteBuffer> _iter33 : struct.arguments.entrySet())
+          {
+            oprot.writeString(_iter33.getKey());
+            oprot.writeBinary(_iter33.getValue());
+          }
+        }
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, ClassDefinition struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(2);
+      if (incoming.get(0)) {
+        struct.className = iprot.readString();
+        struct.setClassNameIsSet(true);
+      }
+      if (incoming.get(1)) {
+        {
+          org.apache.thrift.protocol.TMap _map34 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+          struct.arguments = new HashMap<String,ByteBuffer>(2*_map34.size);
+          for (int _i35 = 0; _i35 < _map34.size; ++_i35)
+          {
+            String _key36; // required
+            ByteBuffer _val37; // optional
+            _key36 = iprot.readString();
+            _val37 = iprot.readBinary();
+            struct.arguments.put(_key36, _val37);
+          }
+        }
+        struct.setArgumentsIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java
deleted file mode 100644
index cdb8452..0000000
--- a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/ColumnDefinition.java
+++ /dev/null
@@ -1,674 +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 ColumnDefinition implements org.apache.thrift.TBase<ColumnDefinition, ColumnDefinition._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnDefinition");
-
-  private static final org.apache.thrift.protocol.TField ANALYZER_CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("analyzerClassName", org.apache.thrift.protocol.TType.STRING, (short)1);
-  private static final org.apache.thrift.protocol.TField FULL_TEXT_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("fullTextIndex", org.apache.thrift.protocol.TType.BOOL, (short)2);
-  private static final org.apache.thrift.protocol.TField ALTERNATE_COLUMN_DEFINITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("alternateColumnDefinitions", org.apache.thrift.protocol.TType.MAP, (short)3);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new ColumnDefinitionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new ColumnDefinitionTupleSchemeFactory());
-  }
-
-  public String analyzerClassName; // required
-  public boolean fullTextIndex; // required
-  public Map<String,AlternateColumnDefinition> alternateColumnDefinitions; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-    ANALYZER_CLASS_NAME((short)1, "analyzerClassName"),
-    FULL_TEXT_INDEX((short)2, "fullTextIndex"),
-    ALTERNATE_COLUMN_DEFINITIONS((short)3, "alternateColumnDefinitions");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // ANALYZER_CLASS_NAME
-          return ANALYZER_CLASS_NAME;
-        case 2: // FULL_TEXT_INDEX
-          return FULL_TEXT_INDEX;
-        case 3: // ALTERNATE_COLUMN_DEFINITIONS
-          return ALTERNATE_COLUMN_DEFINITIONS;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  private static final int __FULLTEXTINDEX_ISSET_ID = 0;
-  private byte __isset_bitfield = 0;
-  public static final Map<_Fields, org.apache.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.ANALYZER_CLASS_NAME, new org.apache.thrift.meta_data.FieldMetaData("analyzerClassName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.FULL_TEXT_INDEX, new org.apache.thrift.meta_data.FieldMetaData("fullTextIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    tmpMap.put(_Fields.ALTERNATE_COLUMN_DEFINITIONS, new org.apache.thrift.meta_data.FieldMetaData("alternateColumnDefinitions", 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, AlternateColumnDefinition.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColumnDefinition.class, metaDataMap);
-  }
-
-  public ColumnDefinition() {
-    this.analyzerClassName = "org.apache.lucene.analysis.standard.StandardAnalyzer";
-
-  }
-
-  public ColumnDefinition(
-    String analyzerClassName,
-    boolean fullTextIndex,
-    Map<String,AlternateColumnDefinition> alternateColumnDefinitions)
-  {
-    this();
-    this.analyzerClassName = analyzerClassName;
-    this.fullTextIndex = fullTextIndex;
-    setFullTextIndexIsSet(true);
-    this.alternateColumnDefinitions = alternateColumnDefinitions;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ColumnDefinition(ColumnDefinition other) {
-    __isset_bitfield = other.__isset_bitfield;
-    if (other.isSetAnalyzerClassName()) {
-      this.analyzerClassName = other.analyzerClassName;
-    }
-    this.fullTextIndex = other.fullTextIndex;
-    if (other.isSetAlternateColumnDefinitions()) {
-      Map<String,AlternateColumnDefinition> __this__alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>();
-      for (Map.Entry<String, AlternateColumnDefinition> other_element : other.alternateColumnDefinitions.entrySet()) {
-
-        String other_element_key = other_element.getKey();
-        AlternateColumnDefinition other_element_value = other_element.getValue();
-
-        String __this__alternateColumnDefinitions_copy_key = other_element_key;
-
-        AlternateColumnDefinition __this__alternateColumnDefinitions_copy_value = new AlternateColumnDefinition(other_element_value);
-
-        __this__alternateColumnDefinitions.put(__this__alternateColumnDefinitions_copy_key, __this__alternateColumnDefinitions_copy_value);
-      }
-      this.alternateColumnDefinitions = __this__alternateColumnDefinitions;
-    }
-  }
-
-  public ColumnDefinition deepCopy() {
-    return new ColumnDefinition(this);
-  }
-
-  @Override
-  public void clear() {
-    this.analyzerClassName = "org.apache.lucene.analysis.standard.StandardAnalyzer";
-
-    setFullTextIndexIsSet(false);
-    this.fullTextIndex = false;
-    this.alternateColumnDefinitions = null;
-  }
-
-  public String getAnalyzerClassName() {
-    return this.analyzerClassName;
-  }
-
-  public ColumnDefinition setAnalyzerClassName(String analyzerClassName) {
-    this.analyzerClassName = analyzerClassName;
-    return this;
-  }
-
-  public void unsetAnalyzerClassName() {
-    this.analyzerClassName = null;
-  }
-
-  /** Returns true if field analyzerClassName is set (has been assigned a value) and false otherwise */
-  public boolean isSetAnalyzerClassName() {
-    return this.analyzerClassName != null;
-  }
-
-  public void setAnalyzerClassNameIsSet(boolean value) {
-    if (!value) {
-      this.analyzerClassName = null;
-    }
-  }
-
-  public boolean isFullTextIndex() {
-    return this.fullTextIndex;
-  }
-
-  public ColumnDefinition setFullTextIndex(boolean fullTextIndex) {
-    this.fullTextIndex = fullTextIndex;
-    setFullTextIndexIsSet(true);
-    return this;
-  }
-
-  public void unsetFullTextIndex() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FULLTEXTINDEX_ISSET_ID);
-  }
-
-  /** Returns true if field fullTextIndex is set (has been assigned a value) and false otherwise */
-  public boolean isSetFullTextIndex() {
-    return EncodingUtils.testBit(__isset_bitfield, __FULLTEXTINDEX_ISSET_ID);
-  }
-
-  public void setFullTextIndexIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FULLTEXTINDEX_ISSET_ID, value);
-  }
-
-  public int getAlternateColumnDefinitionsSize() {
-    return (this.alternateColumnDefinitions == null) ? 0 : this.alternateColumnDefinitions.size();
-  }
-
-  public void putToAlternateColumnDefinitions(String key, AlternateColumnDefinition val) {
-    if (this.alternateColumnDefinitions == null) {
-      this.alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>();
-    }
-    this.alternateColumnDefinitions.put(key, val);
-  }
-
-  public Map<String,AlternateColumnDefinition> getAlternateColumnDefinitions() {
-    return this.alternateColumnDefinitions;
-  }
-
-  public ColumnDefinition setAlternateColumnDefinitions(Map<String,AlternateColumnDefinition> alternateColumnDefinitions) {
-    this.alternateColumnDefinitions = alternateColumnDefinitions;
-    return this;
-  }
-
-  public void unsetAlternateColumnDefinitions() {
-    this.alternateColumnDefinitions = null;
-  }
-
-  /** Returns true if field alternateColumnDefinitions is set (has been assigned a value) and false otherwise */
-  public boolean isSetAlternateColumnDefinitions() {
-    return this.alternateColumnDefinitions != null;
-  }
-
-  public void setAlternateColumnDefinitionsIsSet(boolean value) {
-    if (!value) {
-      this.alternateColumnDefinitions = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case ANALYZER_CLASS_NAME:
-      if (value == null) {
-        unsetAnalyzerClassName();
-      } else {
-        setAnalyzerClassName((String)value);
-      }
-      break;
-
-    case FULL_TEXT_INDEX:
-      if (value == null) {
-        unsetFullTextIndex();
-      } else {
-        setFullTextIndex((Boolean)value);
-      }
-      break;
-
-    case ALTERNATE_COLUMN_DEFINITIONS:
-      if (value == null) {
-        unsetAlternateColumnDefinitions();
-      } else {
-        setAlternateColumnDefinitions((Map<String,AlternateColumnDefinition>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case ANALYZER_CLASS_NAME:
-      return getAnalyzerClassName();
-
-    case FULL_TEXT_INDEX:
-      return Boolean.valueOf(isFullTextIndex());
-
-    case ALTERNATE_COLUMN_DEFINITIONS:
-      return getAlternateColumnDefinitions();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case ANALYZER_CLASS_NAME:
-      return isSetAnalyzerClassName();
-    case FULL_TEXT_INDEX:
-      return isSetFullTextIndex();
-    case ALTERNATE_COLUMN_DEFINITIONS:
-      return isSetAlternateColumnDefinitions();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ColumnDefinition)
-      return this.equals((ColumnDefinition)that);
-    return false;
-  }
-
-  public boolean equals(ColumnDefinition that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_analyzerClassName = true && this.isSetAnalyzerClassName();
-    boolean that_present_analyzerClassName = true && that.isSetAnalyzerClassName();
-    if (this_present_analyzerClassName || that_present_analyzerClassName) {
-      if (!(this_present_analyzerClassName && that_present_analyzerClassName))
-        return false;
-      if (!this.analyzerClassName.equals(that.analyzerClassName))
-        return false;
-    }
-
-    boolean this_present_fullTextIndex = true;
-    boolean that_present_fullTextIndex = true;
-    if (this_present_fullTextIndex || that_present_fullTextIndex) {
-      if (!(this_present_fullTextIndex && that_present_fullTextIndex))
-        return false;
-      if (this.fullTextIndex != that.fullTextIndex)
-        return false;
-    }
-
-    boolean this_present_alternateColumnDefinitions = true && this.isSetAlternateColumnDefinitions();
-    boolean that_present_alternateColumnDefinitions = true && that.isSetAlternateColumnDefinitions();
-    if (this_present_alternateColumnDefinitions || that_present_alternateColumnDefinitions) {
-      if (!(this_present_alternateColumnDefinitions && that_present_alternateColumnDefinitions))
-        return false;
-      if (!this.alternateColumnDefinitions.equals(that.alternateColumnDefinitions))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(ColumnDefinition other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    ColumnDefinition typedOther = (ColumnDefinition)other;
-
-    lastComparison = Boolean.valueOf(isSetAnalyzerClassName()).compareTo(typedOther.isSetAnalyzerClassName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAnalyzerClassName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.analyzerClassName, typedOther.analyzerClassName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetFullTextIndex()).compareTo(typedOther.isSetFullTextIndex());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetFullTextIndex()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fullTextIndex, typedOther.fullTextIndex);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetAlternateColumnDefinitions()).compareTo(typedOther.isSetAlternateColumnDefinitions());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAlternateColumnDefinitions()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.alternateColumnDefinitions, typedOther.alternateColumnDefinitions);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.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("ColumnDefinition(");
-    boolean first = true;
-
-    sb.append("analyzerClassName:");
-    if (this.analyzerClassName == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.analyzerClassName);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("fullTextIndex:");
-    sb.append(this.fullTextIndex);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("alternateColumnDefinitions:");
-    if (this.alternateColumnDefinitions == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.alternateColumnDefinitions);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.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 ColumnDefinitionStandardSchemeFactory implements SchemeFactory {
-    public ColumnDefinitionStandardScheme getScheme() {
-      return new ColumnDefinitionStandardScheme();
-    }
-  }
-
-  private static class ColumnDefinitionStandardScheme extends StandardScheme<ColumnDefinition> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnDefinition 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: // ANALYZER_CLASS_NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.analyzerClassName = iprot.readString();
-              struct.setAnalyzerClassNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // FULL_TEXT_INDEX
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.fullTextIndex = iprot.readBool();
-              struct.setFullTextIndexIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // ALTERNATE_COLUMN_DEFINITIONS
-            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
-              {
-                org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin();
-                struct.alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>(2*_map28.size);
-                for (int _i29 = 0; _i29 < _map28.size; ++_i29)
-                {
-                  String _key30; // required
-                  AlternateColumnDefinition _val31; // optional
-                  _key30 = iprot.readString();
-                  _val31 = new AlternateColumnDefinition();
-                  _val31.read(iprot);
-                  struct.alternateColumnDefinitions.put(_key30, _val31);
-                }
-                iprot.readMapEnd();
-              }
-              struct.setAlternateColumnDefinitionsIsSet(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, ColumnDefinition struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.analyzerClassName != null) {
-        oprot.writeFieldBegin(ANALYZER_CLASS_NAME_FIELD_DESC);
-        oprot.writeString(struct.analyzerClassName);
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(FULL_TEXT_INDEX_FIELD_DESC);
-      oprot.writeBool(struct.fullTextIndex);
-      oprot.writeFieldEnd();
-      if (struct.alternateColumnDefinitions != null) {
-        oprot.writeFieldBegin(ALTERNATE_COLUMN_DEFINITIONS_FIELD_DESC);
-        {
-          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.alternateColumnDefinitions.size()));
-          for (Map.Entry<String, AlternateColumnDefinition> _iter32 : struct.alternateColumnDefinitions.entrySet())
-          {
-            oprot.writeString(_iter32.getKey());
-            _iter32.getValue().write(oprot);
-          }
-          oprot.writeMapEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class ColumnDefinitionTupleSchemeFactory implements SchemeFactory {
-    public ColumnDefinitionTupleScheme getScheme() {
-      return new ColumnDefinitionTupleScheme();
-    }
-  }
-
-  private static class ColumnDefinitionTupleScheme extends TupleScheme<ColumnDefinition> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, ColumnDefinition struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetAnalyzerClassName()) {
-        optionals.set(0);
-      }
-      if (struct.isSetFullTextIndex()) {
-        optionals.set(1);
-      }
-      if (struct.isSetAlternateColumnDefinitions()) {
-        optionals.set(2);
-      }
-      oprot.writeBitSet(optionals, 3);
-      if (struct.isSetAnalyzerClassName()) {
-        oprot.writeString(struct.analyzerClassName);
-      }
-      if (struct.isSetFullTextIndex()) {
-        oprot.writeBool(struct.fullTextIndex);
-      }
-      if (struct.isSetAlternateColumnDefinitions()) {
-        {
-          oprot.writeI32(struct.alternateColumnDefinitions.size());
-          for (Map.Entry<String, AlternateColumnDefinition> _iter33 : struct.alternateColumnDefinitions.entrySet())
-          {
-            oprot.writeString(_iter33.getKey());
-            _iter33.getValue().write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ColumnDefinition struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(3);
-      if (incoming.get(0)) {
-        struct.analyzerClassName = iprot.readString();
-        struct.setAnalyzerClassNameIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.fullTextIndex = iprot.readBool();
-        struct.setFullTextIndexIsSet(true);
-      }
-      if (incoming.get(2)) {
-        {
-          org.apache.thrift.protocol.TMap _map34 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.alternateColumnDefinitions = new HashMap<String,AlternateColumnDefinition>(2*_map34.size);
-          for (int _i35 = 0; _i35 < _map34.size; ++_i35)
-          {
-            String _key36; // required
-            AlternateColumnDefinition _val37; // optional
-            _key36 = iprot.readString();
-            _val37 = new AlternateColumnDefinition();
-            _val37.read(iprot);
-            struct.alternateColumnDefinitions.put(_key36, _val37);
-          }
-        }
-        struct.setAlternateColumnDefinitionsIsSet(true);
-      }
-    }
-  }
-
-}
-


Mime
View raw message