incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [6/39] Some changes while prototyping.
Date Thu, 28 Feb 2013 03:07:41 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ae2ff9e4/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ShardLayout.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ShardLayout.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ShardLayout.java
deleted file mode 100644
index 22fa214..0000000
--- a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/ShardLayout.java
+++ /dev/null
@@ -1,581 +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 ShardLayout implements org.apache.thrift.TBase<ShardLayout, ShardLayout._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShardLayout");
-
-  private static final org.apache.thrift.protocol.TField SERVER_FIELD_DESC = new org.apache.thrift.protocol.TField("server", org.apache.thrift.protocol.TType.STRING, (short)1);
-  private static final org.apache.thrift.protocol.TField SHARDS_FIELD_DESC = new org.apache.thrift.protocol.TField("shards", org.apache.thrift.protocol.TType.LIST, (short)2);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new ShardLayoutStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new ShardLayoutTupleSchemeFactory());
-  }
-
-  /**
-   * The server for this layout.
-   */
-  public String server; // required
-  /**
-   * A list of shard ids for the given server.
-   */
-  public List<Integer> shards; // 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 server for this layout.
-     */
-    SERVER((short)1, "server"),
-    /**
-     * A list of shard ids for the given server.
-     */
-    SHARDS((short)2, "shards");
-
-    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: // SERVER
-          return SERVER;
-        case 2: // SHARDS
-          return SHARDS;
-        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.SERVER, new org.apache.thrift.meta_data.FieldMetaData("server", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.SHARDS, new org.apache.thrift.meta_data.FieldMetaData("shards", 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.I32))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ShardLayout.class, metaDataMap);
-  }
-
-  public ShardLayout() {
-  }
-
-  public ShardLayout(
-    String server,
-    List<Integer> shards)
-  {
-    this();
-    this.server = server;
-    this.shards = shards;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public ShardLayout(ShardLayout other) {
-    if (other.isSetServer()) {
-      this.server = other.server;
-    }
-    if (other.isSetShards()) {
-      List<Integer> __this__shards = new ArrayList<Integer>();
-      for (Integer other_element : other.shards) {
-        __this__shards.add(other_element);
-      }
-      this.shards = __this__shards;
-    }
-  }
-
-  public ShardLayout deepCopy() {
-    return new ShardLayout(this);
-  }
-
-  @Override
-  public void clear() {
-    this.server = null;
-    this.shards = null;
-  }
-
-  /**
-   * The server for this layout.
-   */
-  public String getServer() {
-    return this.server;
-  }
-
-  /**
-   * The server for this layout.
-   */
-  public ShardLayout setServer(String server) {
-    this.server = server;
-    return this;
-  }
-
-  public void unsetServer() {
-    this.server = null;
-  }
-
-  /** Returns true if field server is set (has been assigned a value) and false otherwise */
-  public boolean isSetServer() {
-    return this.server != null;
-  }
-
-  public void setServerIsSet(boolean value) {
-    if (!value) {
-      this.server = null;
-    }
-  }
-
-  public int getShardsSize() {
-    return (this.shards == null) ? 0 : this.shards.size();
-  }
-
-  public java.util.Iterator<Integer> getShardsIterator() {
-    return (this.shards == null) ? null : this.shards.iterator();
-  }
-
-  public void addToShards(int elem) {
-    if (this.shards == null) {
-      this.shards = new ArrayList<Integer>();
-    }
-    this.shards.add(elem);
-  }
-
-  /**
-   * A list of shard ids for the given server.
-   */
-  public List<Integer> getShards() {
-    return this.shards;
-  }
-
-  /**
-   * A list of shard ids for the given server.
-   */
-  public ShardLayout setShards(List<Integer> shards) {
-    this.shards = shards;
-    return this;
-  }
-
-  public void unsetShards() {
-    this.shards = null;
-  }
-
-  /** Returns true if field shards is set (has been assigned a value) and false otherwise */
-  public boolean isSetShards() {
-    return this.shards != null;
-  }
-
-  public void setShardsIsSet(boolean value) {
-    if (!value) {
-      this.shards = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case SERVER:
-      if (value == null) {
-        unsetServer();
-      } else {
-        setServer((String)value);
-      }
-      break;
-
-    case SHARDS:
-      if (value == null) {
-        unsetShards();
-      } else {
-        setShards((List<Integer>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case SERVER:
-      return getServer();
-
-    case SHARDS:
-      return getShards();
-
-    }
-    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 SERVER:
-      return isSetServer();
-    case SHARDS:
-      return isSetShards();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof ShardLayout)
-      return this.equals((ShardLayout)that);
-    return false;
-  }
-
-  public boolean equals(ShardLayout that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_server = true && this.isSetServer();
-    boolean that_present_server = true && that.isSetServer();
-    if (this_present_server || that_present_server) {
-      if (!(this_present_server && that_present_server))
-        return false;
-      if (!this.server.equals(that.server))
-        return false;
-    }
-
-    boolean this_present_shards = true && this.isSetShards();
-    boolean that_present_shards = true && that.isSetShards();
-    if (this_present_shards || that_present_shards) {
-      if (!(this_present_shards && that_present_shards))
-        return false;
-      if (!this.shards.equals(that.shards))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(ShardLayout other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    ShardLayout typedOther = (ShardLayout)other;
-
-    lastComparison = Boolean.valueOf(isSetServer()).compareTo(typedOther.isSetServer());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetServer()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.server, typedOther.server);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetShards()).compareTo(typedOther.isSetShards());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetShards()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shards, typedOther.shards);
-      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("ShardLayout(");
-    boolean first = true;
-
-    sb.append("server:");
-    if (this.server == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.server);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("shards:");
-    if (this.shards == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.shards);
-    }
-    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 ShardLayoutStandardSchemeFactory implements SchemeFactory {
-    public ShardLayoutStandardScheme getScheme() {
-      return new ShardLayoutStandardScheme();
-    }
-  }
-
-  private static class ShardLayoutStandardScheme extends StandardScheme<ShardLayout> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, ShardLayout 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: // SERVER
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.server = iprot.readString();
-              struct.setServerIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // SHARDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
-                struct.shards = new ArrayList<Integer>(_list100.size);
-                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
-                {
-                  int _elem102; // required
-                  _elem102 = iprot.readI32();
-                  struct.shards.add(_elem102);
-                }
-                iprot.readListEnd();
-              }
-              struct.setShardsIsSet(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, ShardLayout struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.server != null) {
-        oprot.writeFieldBegin(SERVER_FIELD_DESC);
-        oprot.writeString(struct.server);
-        oprot.writeFieldEnd();
-      }
-      if (struct.shards != null) {
-        oprot.writeFieldBegin(SHARDS_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.shards.size()));
-          for (int _iter103 : struct.shards)
-          {
-            oprot.writeI32(_iter103);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class ShardLayoutTupleSchemeFactory implements SchemeFactory {
-    public ShardLayoutTupleScheme getScheme() {
-      return new ShardLayoutTupleScheme();
-    }
-  }
-
-  private static class ShardLayoutTupleScheme extends TupleScheme<ShardLayout> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, ShardLayout struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetServer()) {
-        optionals.set(0);
-      }
-      if (struct.isSetShards()) {
-        optionals.set(1);
-      }
-      oprot.writeBitSet(optionals, 2);
-      if (struct.isSetServer()) {
-        oprot.writeString(struct.server);
-      }
-      if (struct.isSetShards()) {
-        {
-          oprot.writeI32(struct.shards.size());
-          for (int _iter104 : struct.shards)
-          {
-            oprot.writeI32(_iter104);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, ShardLayout struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(2);
-      if (incoming.get(0)) {
-        struct.server = iprot.readString();
-        struct.setServerIsSet(true);
-      }
-      if (incoming.get(1)) {
-        {
-          org.apache.thrift.protocol.TList _list105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32());
-          struct.shards = new ArrayList<Integer>(_list105.size);
-          for (int _i106 = 0; _i106 < _list105.size; ++_i106)
-          {
-            int _elem107; // required
-            _elem107 = iprot.readI32();
-            struct.shards.add(_elem107);
-          }
-        }
-        struct.setShardsIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ae2ff9e4/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Sort.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Sort.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Sort.java
deleted file mode 100644
index bfdb8e4..0000000
--- a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/Sort.java
+++ /dev/null
@@ -1,459 +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 Sort implements org.apache.thrift.TBase<Sort, Sort._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Sort");
-
-  private static final org.apache.thrift.protocol.TField FIELDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fields", 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 SortStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new SortTupleSchemeFactory());
-  }
-
-  public List<SortField> 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 {
-    FIELDS((short)1, "fields");
-
-    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: // FIELDS
-          return FIELDS;
-        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.FIELDS, new org.apache.thrift.meta_data.FieldMetaData("fields", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SortField.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Sort.class, metaDataMap);
-  }
-
-  public Sort() {
-  }
-
-  public Sort(
-    List<SortField> fields)
-  {
-    this();
-    this.fields = fields;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public Sort(Sort other) {
-    if (other.isSetFields()) {
-      List<SortField> __this__fields = new ArrayList<SortField>();
-      for (SortField other_element : other.fields) {
-        __this__fields.add(new SortField(other_element));
-      }
-      this.fields = __this__fields;
-    }
-  }
-
-  public Sort deepCopy() {
-    return new Sort(this);
-  }
-
-  @Override
-  public void clear() {
-    this.fields = null;
-  }
-
-  public int getFieldsSize() {
-    return (this.fields == null) ? 0 : this.fields.size();
-  }
-
-  public java.util.Iterator<SortField> getFieldsIterator() {
-    return (this.fields == null) ? null : this.fields.iterator();
-  }
-
-  public void addToFields(SortField elem) {
-    if (this.fields == null) {
-      this.fields = new ArrayList<SortField>();
-    }
-    this.fields.add(elem);
-  }
-
-  public List<SortField> getFields() {
-    return this.fields;
-  }
-
-  public Sort setFields(List<SortField> fields) {
-    this.fields = fields;
-    return this;
-  }
-
-  public void unsetFields() {
-    this.fields = null;
-  }
-
-  /** Returns true if field fields is set (has been assigned a value) and false otherwise */
-  public boolean isSetFields() {
-    return this.fields != null;
-  }
-
-  public void setFieldsIsSet(boolean value) {
-    if (!value) {
-      this.fields = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case FIELDS:
-      if (value == null) {
-        unsetFields();
-      } else {
-        setFields((List<SortField>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case FIELDS:
-      return getFields();
-
-    }
-    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 FIELDS:
-      return isSetFields();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof Sort)
-      return this.equals((Sort)that);
-    return false;
-  }
-
-  public boolean equals(Sort that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_fields = true && this.isSetFields();
-    boolean that_present_fields = true && that.isSetFields();
-    if (this_present_fields || that_present_fields) {
-      if (!(this_present_fields && that_present_fields))
-        return false;
-      if (!this.fields.equals(that.fields))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(Sort other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    Sort typedOther = (Sort)other;
-
-    lastComparison = Boolean.valueOf(isSetFields()).compareTo(typedOther.isSetFields());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetFields()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, typedOther.fields);
-      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("Sort(");
-    boolean first = true;
-
-    sb.append("fields:");
-    if (this.fields == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.fields);
-    }
-    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 SortStandardSchemeFactory implements SchemeFactory {
-    public SortStandardScheme getScheme() {
-      return new SortStandardScheme();
-    }
-  }
-
-  private static class SortStandardScheme extends StandardScheme<Sort> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, Sort 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: // FIELDS
-            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-              {
-                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
-                struct.fields = new ArrayList<SortField>(_list44.size);
-                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
-                {
-                  SortField _elem46; // required
-                  _elem46 = new SortField();
-                  _elem46.read(iprot);
-                  struct.fields.add(_elem46);
-                }
-                iprot.readListEnd();
-              }
-              struct.setFieldsIsSet(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, Sort struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.fields != null) {
-        oprot.writeFieldBegin(FIELDS_FIELD_DESC);
-        {
-          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fields.size()));
-          for (SortField _iter47 : struct.fields)
-          {
-            _iter47.write(oprot);
-          }
-          oprot.writeListEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class SortTupleSchemeFactory implements SchemeFactory {
-    public SortTupleScheme getScheme() {
-      return new SortTupleScheme();
-    }
-  }
-
-  private static class SortTupleScheme extends TupleScheme<Sort> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, Sort struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetFields()) {
-        optionals.set(0);
-      }
-      oprot.writeBitSet(optionals, 1);
-      if (struct.isSetFields()) {
-        {
-          oprot.writeI32(struct.fields.size());
-          for (SortField _iter48 : struct.fields)
-          {
-            _iter48.write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, Sort struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(1);
-      if (incoming.get(0)) {
-        {
-          org.apache.thrift.protocol.TList _list49 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.fields = new ArrayList<SortField>(_list49.size);
-          for (int _i50 = 0; _i50 < _list49.size; ++_i50)
-          {
-            SortField _elem51; // required
-            _elem51 = new SortField();
-            _elem51.read(iprot);
-            struct.fields.add(_elem51);
-          }
-        }
-        struct.setFieldsIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ae2ff9e4/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java
deleted file mode 100644
index 3198d21..0000000
--- a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortField.java
+++ /dev/null
@@ -1,619 +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 SortField implements org.apache.thrift.TBase<SortField, SortField._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SortField");
-
-  private static final org.apache.thrift.protocol.TField FIELD_FIELD_DESC = new org.apache.thrift.protocol.TField("field", org.apache.thrift.protocol.TType.STRING, (short)1);
-  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
-  private static final org.apache.thrift.protocol.TField REVERSE_FIELD_DESC = new org.apache.thrift.protocol.TField("reverse", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new SortFieldStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new SortFieldTupleSchemeFactory());
-  }
-
-  public String field; // required
-  /**
-   * 
-   * @see SortType
-   */
-  public SortType type; // required
-  public boolean reverse; // 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 {
-    FIELD((short)1, "field"),
-    /**
-     * 
-     * @see SortType
-     */
-    TYPE((short)2, "type"),
-    REVERSE((short)3, "reverse");
-
-    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: // FIELD
-          return FIELD;
-        case 2: // TYPE
-          return TYPE;
-        case 3: // REVERSE
-          return REVERSE;
-        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 __REVERSE_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.FIELD, new org.apache.thrift.meta_data.FieldMetaData("field", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SortType.class)));
-    tmpMap.put(_Fields.REVERSE, new org.apache.thrift.meta_data.FieldMetaData("reverse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SortField.class, metaDataMap);
-  }
-
-  public SortField() {
-  }
-
-  public SortField(
-    String field,
-    SortType type,
-    boolean reverse)
-  {
-    this();
-    this.field = field;
-    this.type = type;
-    this.reverse = reverse;
-    setReverseIsSet(true);
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public SortField(SortField other) {
-    __isset_bitfield = other.__isset_bitfield;
-    if (other.isSetField()) {
-      this.field = other.field;
-    }
-    if (other.isSetType()) {
-      this.type = other.type;
-    }
-    this.reverse = other.reverse;
-  }
-
-  public SortField deepCopy() {
-    return new SortField(this);
-  }
-
-  @Override
-  public void clear() {
-    this.field = null;
-    this.type = null;
-    setReverseIsSet(false);
-    this.reverse = false;
-  }
-
-  public String getField() {
-    return this.field;
-  }
-
-  public SortField setField(String field) {
-    this.field = field;
-    return this;
-  }
-
-  public void unsetField() {
-    this.field = null;
-  }
-
-  /** Returns true if field field is set (has been assigned a value) and false otherwise */
-  public boolean isSetField() {
-    return this.field != null;
-  }
-
-  public void setFieldIsSet(boolean value) {
-    if (!value) {
-      this.field = null;
-    }
-  }
-
-  /**
-   * 
-   * @see SortType
-   */
-  public SortType getType() {
-    return this.type;
-  }
-
-  /**
-   * 
-   * @see SortType
-   */
-  public SortField setType(SortType type) {
-    this.type = type;
-    return this;
-  }
-
-  public void unsetType() {
-    this.type = null;
-  }
-
-  /** Returns true if field type is set (has been assigned a value) and false otherwise */
-  public boolean isSetType() {
-    return this.type != null;
-  }
-
-  public void setTypeIsSet(boolean value) {
-    if (!value) {
-      this.type = null;
-    }
-  }
-
-  public boolean isReverse() {
-    return this.reverse;
-  }
-
-  public SortField setReverse(boolean reverse) {
-    this.reverse = reverse;
-    setReverseIsSet(true);
-    return this;
-  }
-
-  public void unsetReverse() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REVERSE_ISSET_ID);
-  }
-
-  /** Returns true if field reverse is set (has been assigned a value) and false otherwise */
-  public boolean isSetReverse() {
-    return EncodingUtils.testBit(__isset_bitfield, __REVERSE_ISSET_ID);
-  }
-
-  public void setReverseIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REVERSE_ISSET_ID, value);
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case FIELD:
-      if (value == null) {
-        unsetField();
-      } else {
-        setField((String)value);
-      }
-      break;
-
-    case TYPE:
-      if (value == null) {
-        unsetType();
-      } else {
-        setType((SortType)value);
-      }
-      break;
-
-    case REVERSE:
-      if (value == null) {
-        unsetReverse();
-      } else {
-        setReverse((Boolean)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case FIELD:
-      return getField();
-
-    case TYPE:
-      return getType();
-
-    case REVERSE:
-      return Boolean.valueOf(isReverse());
-
-    }
-    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 FIELD:
-      return isSetField();
-    case TYPE:
-      return isSetType();
-    case REVERSE:
-      return isSetReverse();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof SortField)
-      return this.equals((SortField)that);
-    return false;
-  }
-
-  public boolean equals(SortField that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_field = true && this.isSetField();
-    boolean that_present_field = true && that.isSetField();
-    if (this_present_field || that_present_field) {
-      if (!(this_present_field && that_present_field))
-        return false;
-      if (!this.field.equals(that.field))
-        return false;
-    }
-
-    boolean this_present_type = true && this.isSetType();
-    boolean that_present_type = true && that.isSetType();
-    if (this_present_type || that_present_type) {
-      if (!(this_present_type && that_present_type))
-        return false;
-      if (!this.type.equals(that.type))
-        return false;
-    }
-
-    boolean this_present_reverse = true;
-    boolean that_present_reverse = true;
-    if (this_present_reverse || that_present_reverse) {
-      if (!(this_present_reverse && that_present_reverse))
-        return false;
-      if (this.reverse != that.reverse)
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(SortField other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    SortField typedOther = (SortField)other;
-
-    lastComparison = Boolean.valueOf(isSetField()).compareTo(typedOther.isSetField());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetField()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field, typedOther.field);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetType()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetReverse()).compareTo(typedOther.isSetReverse());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetReverse()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reverse, typedOther.reverse);
-      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("SortField(");
-    boolean first = true;
-
-    sb.append("field:");
-    if (this.field == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.field);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("type:");
-    if (this.type == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.type);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("reverse:");
-    sb.append(this.reverse);
-    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 SortFieldStandardSchemeFactory implements SchemeFactory {
-    public SortFieldStandardScheme getScheme() {
-      return new SortFieldStandardScheme();
-    }
-  }
-
-  private static class SortFieldStandardScheme extends StandardScheme<SortField> {
-
-    public void read(org.apache.thrift.protocol.TProtocol iprot, SortField 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: // FIELD
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.field = iprot.readString();
-              struct.setFieldIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // TYPE
-            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
-              struct.type = SortType.findByValue(iprot.readI32());
-              struct.setTypeIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // REVERSE
-            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
-              struct.reverse = iprot.readBool();
-              struct.setReverseIsSet(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, SortField struct) throws org.apache.thrift.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.field != null) {
-        oprot.writeFieldBegin(FIELD_FIELD_DESC);
-        oprot.writeString(struct.field);
-        oprot.writeFieldEnd();
-      }
-      if (struct.type != null) {
-        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-        oprot.writeI32(struct.type.getValue());
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldBegin(REVERSE_FIELD_DESC);
-      oprot.writeBool(struct.reverse);
-      oprot.writeFieldEnd();
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class SortFieldTupleSchemeFactory implements SchemeFactory {
-    public SortFieldTupleScheme getScheme() {
-      return new SortFieldTupleScheme();
-    }
-  }
-
-  private static class SortFieldTupleScheme extends TupleScheme<SortField> {
-
-    @Override
-    public void write(org.apache.thrift.protocol.TProtocol prot, SortField struct) throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetField()) {
-        optionals.set(0);
-      }
-      if (struct.isSetType()) {
-        optionals.set(1);
-      }
-      if (struct.isSetReverse()) {
-        optionals.set(2);
-      }
-      oprot.writeBitSet(optionals, 3);
-      if (struct.isSetField()) {
-        oprot.writeString(struct.field);
-      }
-      if (struct.isSetType()) {
-        oprot.writeI32(struct.type.getValue());
-      }
-      if (struct.isSetReverse()) {
-        oprot.writeBool(struct.reverse);
-      }
-    }
-
-    @Override
-    public void read(org.apache.thrift.protocol.TProtocol prot, SortField struct) throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(3);
-      if (incoming.get(0)) {
-        struct.field = iprot.readString();
-        struct.setFieldIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.type = SortType.findByValue(iprot.readI32());
-        struct.setTypeIsSet(true);
-      }
-      if (incoming.get(2)) {
-        struct.reverse = iprot.readBool();
-        struct.setReverseIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ae2ff9e4/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortType.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortType.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortType.java
deleted file mode 100644
index 991dd14..0000000
--- a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/SortType.java
+++ /dev/null
@@ -1,125 +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 java.util.Map;
-import java.util.HashMap;
-import org.apache.thrift.TEnum;
-
-public enum SortType implements org.apache.thrift.TEnum {
-  /**
-   * Sort by document score (relevance).  Sort values are Float and higher values are at the front.
-   */
-  SCORE(0),
-  /**
-   * Sort by document number (index order).  Sort values are Integer and lower values are at the front.
-   */
-  DOC(1),
-  /**
-   * Sort using term values as Strings.  Sort values are String and lower values are at the front.
-   */
-  STRING(2),
-  /**
-   * Sort using term values as encoded Integers.  Sort values are Integer and lower values are at the front.
-   */
-  INT(3),
-  /**
-   * Sort using term values as encoded Floats.  Sort values are Float and lower values are at the front.
-   */
-  FLOAT(4),
-  /**
-   * Sort using term values as encoded Longs.  Sort values are Long and lower values are at the front.
-   */
-  LONG(5),
-  /**
-   * Sort using term values as encoded Doubles.  Sort values are Double and lower values are at the front.
-   */
-  DOUBLE(6),
-  /**
-   * Sort using term values as encoded Shorts.  Sort values are Short and lower values are at the front.
-   */
-  SHORT(7),
-  /**
-   * Sort using term values as encoded Bytes.  Sort values are Byte and lower values are at the front.
-   */
-  BYTE(8),
-  /**
-   * Sort using term values as Strings, but comparing by value (using String.compareTo) for all
-   * comparisons. This is typically slower than {@link #STRING}, which uses ordinals to do the sorting.
-   */
-  STRING_VAL(9),
-  /**
-   * Sort use byte[] index values.
-   */
-  BYTES(10);
-
-  private final int value;
-
-  private SortType(int value) {
-    this.value = value;
-  }
-
-  /**
-   * Get the integer value of this enum value, as defined in the Thrift IDL.
-   */
-  public int getValue() {
-    return value;
-  }
-
-  /**
-   * Find a the enum type by its integer value, as defined in the Thrift IDL.
-   * @return null if the value is not found.
-   */
-  public static SortType findByValue(int value) { 
-    switch (value) {
-      case 0:
-        return SCORE;
-      case 1:
-        return DOC;
-      case 2:
-        return STRING;
-      case 3:
-        return INT;
-      case 4:
-        return FLOAT;
-      case 5:
-        return LONG;
-      case 6:
-        return DOUBLE;
-      case 7:
-        return SHORT;
-      case 8:
-        return BYTE;
-      case 9:
-        return STRING_VAL;
-      case 10:
-        return BYTES;
-      default:
-        return null;
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ae2ff9e4/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TYPE.java
----------------------------------------------------------------------
diff --git a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TYPE.java b/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TYPE.java
deleted file mode 100644
index e7a3cb5..0000000
--- a/src/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/TYPE.java
+++ /dev/null
@@ -1,104 +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 java.util.Map;
-import java.util.HashMap;
-import org.apache.thrift.TEnum;
-
-/**
- * The fields types.
- */
-public enum TYPE implements org.apache.thrift.TEnum {
-  /**
-   * This type uses the StandardAnalyzer for indexing and stores the value.
-   */
-  TEXT(0),
-  /**
-   * This type is indexed as a String (Lucene StringField) as provided and stores the value.
-   * NOTE: The String is not tokenized, so the String is indexed as a single value.
-   */
-  STRING(1),
-  /**
-   * This type is indexed as an Integer (Lucene IntegerField) as provided and stores the value.
-   */
-  INT(2),
-  /**
-   * This type is indexed as an Long (Lucene LongField) as provided and stores the value.
-   */
-  LONG(3),
-  /**
-   * This type is indexed as an Float (Lucene FloatField) as provided and stores the value.
-   */
-  FLOAT(4),
-  /**
-   * This type is indexed as an Double (Lucene DoubleField) as provided and stores the value.
-   */
-  DOUBLE(5),
-  /**
-   * This type is NOT indexed but stores the value.
-   */
-  BINARY(6);
-
-  private final int value;
-
-  private TYPE(int value) {
-    this.value = value;
-  }
-
-  /**
-   * Get the integer value of this enum value, as defined in the Thrift IDL.
-   */
-  public int getValue() {
-    return value;
-  }
-
-  /**
-   * Find a the enum type by its integer value, as defined in the Thrift IDL.
-   * @return null if the value is not found.
-   */
-  public static TYPE findByValue(int value) { 
-    switch (value) {
-      case 0:
-        return TEXT;
-      case 1:
-        return STRING;
-      case 2:
-        return INT;
-      case 3:
-        return LONG;
-      case 4:
-        return FLOAT;
-      case 5:
-        return DOUBLE;
-      case 6:
-        return BINARY;
-      default:
-        return null;
-    }
-  }
-}


Mime
View raw message