incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [31/39] Adding the column definition method to Thrift and the Shell.
Date Mon, 12 Aug 2013 15:49:10 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableDescriptor.java
----------------------------------------------------------------------
diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableDescriptor.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableDescriptor.java
index 2264b24..a95e3b9 100644
--- a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableDescriptor.java
+++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableDescriptor.java
@@ -1730,13 +1730,13 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
           case 11: // BLOCK_CACHING_FILE_TYPES
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.SET) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set158 = iprot.readSetBegin();
-                struct.blockCachingFileTypes = new HashSet<String>(2*_set158.size);
-                for (int _i159 = 0; _i159 < _set158.size; ++_i159)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set128 = iprot.readSetBegin();
+                struct.blockCachingFileTypes = new HashSet<String>(2*_set128.size);
+                for (int _i129 = 0; _i129 < _set128.size; ++_i129)
                 {
-                  String _elem160; // required
-                  _elem160 = iprot.readString();
-                  struct.blockCachingFileTypes.add(_elem160);
+                  String _elem130; // required
+                  _elem130 = iprot.readString();
+                  struct.blockCachingFileTypes.add(_elem130);
                 }
                 iprot.readSetEnd();
               }
@@ -1765,15 +1765,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
           case 14: // TABLE_PROPERTIES
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map161 = iprot.readMapBegin();
-                struct.tableProperties = new HashMap<String,String>(2*_map161.size);
-                for (int _i162 = 0; _i162 < _map161.size; ++_i162)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map131 = iprot.readMapBegin();
+                struct.tableProperties = new HashMap<String,String>(2*_map131.size);
+                for (int _i132 = 0; _i132 < _map131.size; ++_i132)
                 {
-                  String _key163; // required
-                  String _val164; // optional
-                  _key163 = iprot.readString();
-                  _val164 = iprot.readString();
-                  struct.tableProperties.put(_key163, _val164);
+                  String _key133; // required
+                  String _val134; // optional
+                  _key133 = iprot.readString();
+                  _val134 = iprot.readString();
+                  struct.tableProperties.put(_key133, _val134);
                 }
                 iprot.readMapEnd();
               }
@@ -1809,15 +1809,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
           case 18: // DEFAULT_MISSING_FIELD_PROPS
             if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
               {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map165 = iprot.readMapBegin();
-                struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map165.size);
-                for (int _i166 = 0; _i166 < _map165.size; ++_i166)
+                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map135 = iprot.readMapBegin();
+                struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map135.size);
+                for (int _i136 = 0; _i136 < _map135.size; ++_i136)
                 {
-                  String _key167; // required
-                  String _val168; // optional
-                  _key167 = iprot.readString();
-                  _val168 = iprot.readString();
-                  struct.defaultMissingFieldProps.put(_key167, _val168);
+                  String _key137; // required
+                  String _val138; // optional
+                  _key137 = iprot.readString();
+                  _val138 = iprot.readString();
+                  struct.defaultMissingFieldProps.put(_key137, _val138);
                 }
                 iprot.readMapEnd();
               }
@@ -1874,9 +1874,9 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
         oprot.writeFieldBegin(BLOCK_CACHING_FILE_TYPES_FIELD_DESC);
         {
           oprot.writeSetBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, struct.blockCachingFileTypes.size()));
-          for (String _iter169 : struct.blockCachingFileTypes)
+          for (String _iter139 : struct.blockCachingFileTypes)
           {
-            oprot.writeString(_iter169);
+            oprot.writeString(_iter139);
           }
           oprot.writeSetEnd();
         }
@@ -1894,10 +1894,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
         oprot.writeFieldBegin(TABLE_PROPERTIES_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, struct.tableProperties.size()));
-          for (Map.Entry<String, String> _iter170 : struct.tableProperties.entrySet())
+          for (Map.Entry<String, String> _iter140 : struct.tableProperties.entrySet())
           {
-            oprot.writeString(_iter170.getKey());
-            oprot.writeString(_iter170.getValue());
+            oprot.writeString(_iter140.getKey());
+            oprot.writeString(_iter140.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -1918,10 +1918,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
         oprot.writeFieldBegin(DEFAULT_MISSING_FIELD_PROPS_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, struct.defaultMissingFieldProps.size()));
-          for (Map.Entry<String, String> _iter171 : struct.defaultMissingFieldProps.entrySet())
+          for (Map.Entry<String, String> _iter141 : struct.defaultMissingFieldProps.entrySet())
           {
-            oprot.writeString(_iter171.getKey());
-            oprot.writeString(_iter171.getValue());
+            oprot.writeString(_iter141.getKey());
+            oprot.writeString(_iter141.getValue());
           }
           oprot.writeMapEnd();
         }
@@ -2015,9 +2015,9 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       if (struct.isSetBlockCachingFileTypes()) {
         {
           oprot.writeI32(struct.blockCachingFileTypes.size());
-          for (String _iter172 : struct.blockCachingFileTypes)
+          for (String _iter142 : struct.blockCachingFileTypes)
           {
-            oprot.writeString(_iter172);
+            oprot.writeString(_iter142);
           }
         }
       }
@@ -2030,10 +2030,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       if (struct.isSetTableProperties()) {
         {
           oprot.writeI32(struct.tableProperties.size());
-          for (Map.Entry<String, String> _iter173 : struct.tableProperties.entrySet())
+          for (Map.Entry<String, String> _iter143 : struct.tableProperties.entrySet())
           {
-            oprot.writeString(_iter173.getKey());
-            oprot.writeString(_iter173.getValue());
+            oprot.writeString(_iter143.getKey());
+            oprot.writeString(_iter143.getValue());
           }
         }
       }
@@ -2049,10 +2049,10 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       if (struct.isSetDefaultMissingFieldProps()) {
         {
           oprot.writeI32(struct.defaultMissingFieldProps.size());
-          for (Map.Entry<String, String> _iter174 : struct.defaultMissingFieldProps.entrySet())
+          for (Map.Entry<String, String> _iter144 : struct.defaultMissingFieldProps.entrySet())
           {
-            oprot.writeString(_iter174.getKey());
-            oprot.writeString(_iter174.getValue());
+            oprot.writeString(_iter144.getKey());
+            oprot.writeString(_iter144.getValue());
           }
         }
       }
@@ -2092,13 +2092,13 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       }
       if (incoming.get(7)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set175 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
-          struct.blockCachingFileTypes = new HashSet<String>(2*_set175.size);
-          for (int _i176 = 0; _i176 < _set175.size; ++_i176)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet _set145 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TSet(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.blockCachingFileTypes = new HashSet<String>(2*_set145.size);
+          for (int _i146 = 0; _i146 < _set145.size; ++_i146)
           {
-            String _elem177; // required
-            _elem177 = iprot.readString();
-            struct.blockCachingFileTypes.add(_elem177);
+            String _elem147; // required
+            _elem147 = iprot.readString();
+            struct.blockCachingFileTypes.add(_elem147);
           }
         }
         struct.setBlockCachingFileTypesIsSet(true);
@@ -2114,15 +2114,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       }
       if (incoming.get(10)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map178 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
-          struct.tableProperties = new HashMap<String,String>(2*_map178.size);
-          for (int _i179 = 0; _i179 < _map178.size; ++_i179)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map148 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.tableProperties = new HashMap<String,String>(2*_map148.size);
+          for (int _i149 = 0; _i149 < _map148.size; ++_i149)
           {
-            String _key180; // required
-            String _val181; // optional
-            _key180 = iprot.readString();
-            _val181 = iprot.readString();
-            struct.tableProperties.put(_key180, _val181);
+            String _key150; // required
+            String _val151; // optional
+            _key150 = iprot.readString();
+            _val151 = iprot.readString();
+            struct.tableProperties.put(_key150, _val151);
           }
         }
         struct.setTablePropertiesIsSet(true);
@@ -2141,15 +2141,15 @@ public class TableDescriptor implements org.apache.blur.thirdparty.thrift_0_9_0.
       }
       if (incoming.get(14)) {
         {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map182 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
-          struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map182.size);
-          for (int _i183 = 0; _i183 < _map182.size; ++_i183)
+          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map152 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, iprot.readI32());
+          struct.defaultMissingFieldProps = new HashMap<String,String>(2*_map152.size);
+          for (int _i153 = 0; _i153 < _map152.size; ++_i153)
           {
-            String _key184; // required
-            String _val185; // optional
-            _key184 = iprot.readString();
-            _val185 = iprot.readString();
-            struct.defaultMissingFieldProps.put(_key184, _val185);
+            String _key154; // required
+            String _val155; // optional
+            _key154 = iprot.readString();
+            _val155 = iprot.readString();
+            struct.defaultMissingFieldProps.put(_key154, _val155);
           }
         }
         struct.setDefaultMissingFieldPropsIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/distribution/src/main/scripts/interface/Blur.thrift
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/Blur.thrift b/distribution/src/main/scripts/interface/Blur.thrift
index 1d8bf50..24ffffa 100644
--- a/distribution/src/main/scripts/interface/Blur.thrift
+++ b/distribution/src/main/scripts/interface/Blur.thrift
@@ -599,57 +599,6 @@ struct Schema {
 /**
  *
  */
-struct AlternateColumnDefinition {
-  /**
-   *
-   */
-  1:string analyzerClassName
-}
-
-/**
- *
- */
-struct ColumnDefinition {
-  1:string analyzerClassName = "org.apache.blur.analysis.NoStopWordStandardAnalyzer",
-  2:bool fullTextIndex,
-  3:map<string,AlternateColumnDefinition> alternateColumnDefinitions
-}
-
-/**
- *
- */
-struct ColumnFamilyDefinition {
-  /**
-   *
-   */
-  1:ColumnDefinition defaultDefinition,
-  /**
-   *
-   */
-  2:map<string,ColumnDefinition> columnDefinitions
-}
-
-/**
- *
- */
-struct AnalyzerDefinition {
-  /**
-   *
-   */
-  1:ColumnDefinition defaultDefinition,
-  /**
-   *
-   */
-  2:string fullTextAnalyzerClassName = "org.apache.blur.analysis.NoStopWordStandardAnalyzer",
-  /**
-   *
-   */
-  3:map<string,ColumnFamilyDefinition> columnFamilyDefinitions
-}
-
-/**
- *
- */
 struct ColumnPreCache {
   /**
    * This map sets what column families and columns to prefetch into block cache on shard open.
@@ -731,6 +680,43 @@ struct Metric {
   4:map<string,double> doubleMap
 }
 
+struct ColumnDefinition {
+  /**
+   * Required. The family the this column existing within.
+   */
+  1:string family,
+  /**
+   * Required. The column name.
+   */
+  2:string columnName,
+  /**
+   * If this column definition is for a sub column then provide the sub column name.  Otherwise leave this field null.
+   */
+  3:string subColumnName,
+  /**
+   * If this column should be searchable without having to specify the name of the column in the query.  
+   * NOTE: This will index the column as a full text field in a default field, so that means it's going to be indexed twice.
+   */
+  4:bool fieldLessIndexing,
+  /**
+   * The field type for the column.  The built in types are:
+   * <ul>
+   * <li>text - Full text indexing.</li>
+   * <li>string - Indexed string literal</li>
+   * <li>int - Converted to an integer and indexed numerically.</li>
+   * <li>long - Converted to an long and indexed numerically.</li>
+   * <li>float - Converted to an float and indexed numerically.</li>
+   * <li>double - Converted to an double and indexed numerically.</li>
+   * <li>stored - Not indexed, only stored.</li>
+   * </ul>
+   */
+  5:string fieldType,
+  /**
+   * For any custom field types, you can pass in configuration properties.
+   */
+  6:map<string, string> properties
+}
+
 /**
  *
  */
@@ -847,6 +833,8 @@ service Blur {
   void disableTable(1:string table) throws (1:BlurException ex)
   void removeTable(1:string table, 2:bool deleteIndexFiles) throws (1:BlurException ex)
 
+  bool addColumnDefinition(1:string table, 2:ColumnDefinition columnDefinition) throws (1:BlurException ex)
+
   void optimize(1:string table, 2:i32 numberOfSegmentsPerShard) throws (1:BlurException ex)
   
   bool isInSafeMode(1:string cluster) throws (1:BlurException ex)

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/distribution/src/main/scripts/interface/gen-html/Blur.html
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-html/Blur.html b/distribution/src/main/scripts/interface/gen-html/Blur.html
index 69346b3..397c56d 100644
--- a/distribution/src/main/scripts/interface/gen-html/Blur.html
+++ b/distribution/src/main/scripts/interface/gen-html/Blur.html
@@ -11,6 +11,7 @@
 <tr>
 <td>Blur</td><td><a href="Blur.html#Svc_Blur">Blur</a><br/>
 <ul>
+<li><a href="Blur.html#Fn_Blur_addColumnDefinition">addColumnDefinition</a></li>
 <li><a href="Blur.html#Fn_Blur_cancelQuery">cancelQuery</a></li>
 <li><a href="Blur.html#Fn_Blur_configuration">configuration</a></li>
 <li><a href="Blur.html#Fn_Blur_controllerServerList">controllerServerList</a></li>
@@ -43,16 +44,13 @@
 <li><a href="Blur.html#Fn_Blur_terms">terms</a></li>
 </ul>
 </td>
-<td><a href="Blur.html#Struct_AlternateColumnDefinition">AlternateColumnDefinition</a><br/>
-<a href="Blur.html#Struct_AnalyzerDefinition">AnalyzerDefinition</a><br/>
-<a href="Blur.html#Struct_BlurException">BlurException</a><br/>
+<td><a href="Blur.html#Struct_BlurException">BlurException</a><br/>
 <a href="Blur.html#Struct_BlurQuery">BlurQuery</a><br/>
 <a href="Blur.html#Struct_BlurQueryStatus">BlurQueryStatus</a><br/>
 <a href="Blur.html#Struct_BlurResult">BlurResult</a><br/>
 <a href="Blur.html#Struct_BlurResults">BlurResults</a><br/>
 <a href="Blur.html#Struct_Column">Column</a><br/>
 <a href="Blur.html#Struct_ColumnDefinition">ColumnDefinition</a><br/>
-<a href="Blur.html#Struct_ColumnFamilyDefinition">ColumnFamilyDefinition</a><br/>
 <a href="Blur.html#Struct_ColumnPreCache">ColumnPreCache</a><br/>
 <a href="Blur.html#Struct_CpuTime">CpuTime</a><br/>
 <a href="Blur.html#Enum_ErrorType">ErrorType</a><br/>
@@ -408,33 +406,6 @@ shards that are complete, etc.
 <tr><td>2</td><td>columnFamilies</td><td><code>map&lt;<code>string</code>, <code>set&lt;<code>string</code>&gt;</code>&gt;</code></td><td>
 </td><td>default</td><td></td></tr>
 </table><br/><p/>
-<br/></div><div class="definition"><h3 id="Struct_AlternateColumnDefinition">Struct: AlternateColumnDefinition</h3>
-<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
-<tr><td>1</td><td>analyzerClassName</td><td><code>string</code></td><td>
-</td><td>default</td><td></td></tr>
-</table><br/><p/>
-<br/></div><div class="definition"><h3 id="Struct_ColumnDefinition">Struct: ColumnDefinition</h3>
-<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
-<tr><td>1</td><td>analyzerClassName</td><td><code>string</code></td><td></td><td>default</td><td>"org.apache.blur.analysis.NoStopWordStandardAnalyzer"</td></tr>
-<tr><td>2</td><td>fullTextIndex</td><td><code>bool</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>3</td><td>alternateColumnDefinitions</td><td><code>map&lt;<code>string</code>, <code><a href="Blur.html#Struct_AlternateColumnDefinition">AlternateColumnDefinition</a></code>&gt;</code></td><td></td><td>default</td><td></td></tr>
-</table><br/><p/>
-<br/></div><div class="definition"><h3 id="Struct_ColumnFamilyDefinition">Struct: ColumnFamilyDefinition</h3>
-<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
-<tr><td>1</td><td>defaultDefinition</td><td><code><a href="Blur.html#Struct_ColumnDefinition">ColumnDefinition</a></code></td><td>
-</td><td>default</td><td></td></tr>
-<tr><td>2</td><td>columnDefinitions</td><td><code>map&lt;<code>string</code>, <code><a href="Blur.html#Struct_ColumnDefinition">ColumnDefinition</a></code>&gt;</code></td><td>
-</td><td>default</td><td></td></tr>
-</table><br/><p/>
-<br/></div><div class="definition"><h3 id="Struct_AnalyzerDefinition">Struct: AnalyzerDefinition</h3>
-<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
-<tr><td>1</td><td>defaultDefinition</td><td><code><a href="Blur.html#Struct_ColumnDefinition">ColumnDefinition</a></code></td><td>
-</td><td>default</td><td></td></tr>
-<tr><td>2</td><td>fullTextAnalyzerClassName</td><td><code>string</code></td><td>
-</td><td>default</td><td>"org.apache.blur.analysis.NoStopWordStandardAnalyzer"</td></tr>
-<tr><td>3</td><td>columnFamilyDefinitions</td><td><code>map&lt;<code>string</code>, <code><a href="Blur.html#Struct_ColumnFamilyDefinition">ColumnFamilyDefinition</a></code>&gt;</code></td><td>
-</td><td>default</td><td></td></tr>
-</table><br/><p/>
 <br/></div><div class="definition"><h3 id="Struct_ColumnPreCache">Struct: ColumnPreCache</h3>
 <table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
 <tr><td>1</td><td>preCacheCols</td><td><code>list&lt;<code>string</code>&gt;</code></td><td>This map sets what column families and columns to prefetch into block cache on shard open.
@@ -480,6 +451,30 @@ updates through MapReduce are allowed and in fact they are only allowed if the t
 <tr><td>2</td><td>strMap</td><td><code>map&lt;<code>string</code>, <code>string</code>&gt;</code></td><td></td><td>default</td><td></td></tr>
 <tr><td>3</td><td>longMap</td><td><code>map&lt;<code>string</code>, <code>i64</code>&gt;</code></td><td></td><td>default</td><td></td></tr>
 <tr><td>4</td><td>doubleMap</td><td><code>map&lt;<code>string</code>, <code>double</code>&gt;</code></td><td></td><td>default</td><td></td></tr>
+</table><br/></div><div class="definition"><h3 id="Struct_ColumnDefinition">Struct: ColumnDefinition</h3>
+<table class="table-bordered table-striped table-condensed"><thead><th>Key</th><th>Field</th><th>Type</th><th>Description</th><th>Requiredness</th><th>Default value</th></thead>
+<tr><td>1</td><td>family</td><td><code>string</code></td><td>Required. The family the this column existing within.
+</td><td>default</td><td></td></tr>
+<tr><td>2</td><td>columnName</td><td><code>string</code></td><td>Required. The column name.
+</td><td>default</td><td></td></tr>
+<tr><td>3</td><td>subColumnName</td><td><code>string</code></td><td>If this column definition is for a sub column then provide the sub column name.  Otherwise leave this field null.
+</td><td>default</td><td></td></tr>
+<tr><td>4</td><td>fieldLessIndexing</td><td><code>bool</code></td><td>If this column should be searchable without having to specify the name of the column in the query.
+NOTE: This will index the column as a full text field in a default field, so that means it's going to be indexed twice.
+</td><td>default</td><td></td></tr>
+<tr><td>5</td><td>fieldType</td><td><code>string</code></td><td>The field type for the column.  The built in types are:
+<ul>
+<li>text - Full text indexing.</li>
+<li>string - Indexed string literal</li>
+<li>int - Converted to an integer and indexed numerically.</li>
+<li>long - Converted to an long and indexed numerically.</li>
+<li>float - Converted to an float and indexed numerically.</li>
+<li>double - Converted to an double and indexed numerically.</li>
+<li>stored - Not indexed, only stored.</li>
+</ul>
+</td><td>default</td><td></td></tr>
+<tr><td>6</td><td>properties</td><td><code>map&lt;<code>string</code>, <code>string</code>&gt;</code></td><td>For any custom field types, you can pass in configuration properties.
+</td><td>default</td><td></td></tr>
 </table><br/></div><hr/><h2 id="Services">Services</h2>
 <h3 id="Svc_Blur">Service: Blur</h3>
 <p/>
@@ -620,6 +615,10 @@ the shard given the same situation.
 <pre><code>void</code> removeTable(<code>string</code> table,
                  <code>bool</code> deleteIndexFiles)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
+</pre></div><div class="definition"><h4 id="Fn_Blur_addColumnDefinition">Function: Blur.addColumnDefinition</h4>
+<pre><code>bool</code> addColumnDefinition(<code>string</code> table,
+                         <code><a href="Blur.html#Struct_ColumnDefinition">ColumnDefinition</a></code> columnDefinition)
+    throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
 </pre></div><div class="definition"><h4 id="Fn_Blur_optimize">Function: Blur.optimize</h4>
 <pre><code>void</code> optimize(<code>string</code> table,
               <code>i32</code> numberOfSegmentsPerShard)

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/distribution/src/main/scripts/interface/gen-html/index.html
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-html/index.html b/distribution/src/main/scripts/interface/gen-html/index.html
index ca10dc9..c12fa0d 100644
--- a/distribution/src/main/scripts/interface/gen-html/index.html
+++ b/distribution/src/main/scripts/interface/gen-html/index.html
@@ -7,6 +7,7 @@
 <tr>
 <td>Blur</td><td><a href="Blur.html#Svc_Blur">Blur</a><br/>
 <ul>
+<li><a href="Blur.html#Fn_Blur_addColumnDefinition">addColumnDefinition</a></li>
 <li><a href="Blur.html#Fn_Blur_cancelQuery">cancelQuery</a></li>
 <li><a href="Blur.html#Fn_Blur_configuration">configuration</a></li>
 <li><a href="Blur.html#Fn_Blur_controllerServerList">controllerServerList</a></li>
@@ -39,16 +40,13 @@
 <li><a href="Blur.html#Fn_Blur_terms">terms</a></li>
 </ul>
 </td>
-<td><a href="Blur.html#Struct_AlternateColumnDefinition">AlternateColumnDefinition</a><br/>
-<a href="Blur.html#Struct_AnalyzerDefinition">AnalyzerDefinition</a><br/>
-<a href="Blur.html#Struct_BlurException">BlurException</a><br/>
+<td><a href="Blur.html#Struct_BlurException">BlurException</a><br/>
 <a href="Blur.html#Struct_BlurQuery">BlurQuery</a><br/>
 <a href="Blur.html#Struct_BlurQueryStatus">BlurQueryStatus</a><br/>
 <a href="Blur.html#Struct_BlurResult">BlurResult</a><br/>
 <a href="Blur.html#Struct_BlurResults">BlurResults</a><br/>
 <a href="Blur.html#Struct_Column">Column</a><br/>
 <a href="Blur.html#Struct_ColumnDefinition">ColumnDefinition</a><br/>
-<a href="Blur.html#Struct_ColumnFamilyDefinition">ColumnFamilyDefinition</a><br/>
 <a href="Blur.html#Struct_ColumnPreCache">ColumnPreCache</a><br/>
 <a href="Blur.html#Struct_CpuTime">CpuTime</a><br/>
 <a href="Blur.html#Enum_ErrorType">ErrorType</a><br/>

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AlternateColumnDefinition.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AlternateColumnDefinition.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AlternateColumnDefinition.java
deleted file mode 100644
index d470dd1..0000000
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AlternateColumnDefinition.java
+++ /dev/null
@@ -1,420 +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.blur.thirdparty.thrift_0_9_0.scheme.IScheme;
-import org.apache.blur.thirdparty.thrift_0_9_0.scheme.SchemeFactory;
-import org.apache.blur.thirdparty.thrift_0_9_0.scheme.StandardScheme;
-
-import org.apache.blur.thirdparty.thrift_0_9_0.scheme.TupleScheme;
-import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol;
-import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolException;
-import org.apache.blur.thirdparty.thrift_0_9_0.EncodingUtils;
-import org.apache.blur.thirdparty.thrift_0_9_0.TException;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-//import org.slf4j.Logger;
-//import org.slf4j.LoggerFactory;
-
-/**
- * 
- */
-public class AlternateColumnDefinition implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<AlternateColumnDefinition, AlternateColumnDefinition._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("AlternateColumnDefinition");
-
-  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField ANALYZER_CLASS_NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("analyzerClassName", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1);
-
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new AlternateColumnDefinitionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AlternateColumnDefinitionTupleSchemeFactory());
-  }
-
-  /**
-   * 
-   */
-  public String analyzerClassName; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
-    /**
-     * 
-     */
-    ANALYZER_CLASS_NAME((short)1, "analyzerClassName");
-
-    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;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.ANALYZER_CLASS_NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("analyzerClassName", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
-        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING)));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(AlternateColumnDefinition.class, metaDataMap);
-  }
-
-  public AlternateColumnDefinition() {
-  }
-
-  public AlternateColumnDefinition(
-    String analyzerClassName)
-  {
-    this();
-    this.analyzerClassName = analyzerClassName;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AlternateColumnDefinition(AlternateColumnDefinition other) {
-    if (other.isSetAnalyzerClassName()) {
-      this.analyzerClassName = other.analyzerClassName;
-    }
-  }
-
-  public AlternateColumnDefinition deepCopy() {
-    return new AlternateColumnDefinition(this);
-  }
-
-  @Override
-  public void clear() {
-    this.analyzerClassName = null;
-  }
-
-  /**
-   * 
-   */
-  public String getAnalyzerClassName() {
-    return this.analyzerClassName;
-  }
-
-  /**
-   * 
-   */
-  public AlternateColumnDefinition 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 void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case ANALYZER_CLASS_NAME:
-      if (value == null) {
-        unsetAnalyzerClassName();
-      } else {
-        setAnalyzerClassName((String)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case ANALYZER_CLASS_NAME:
-      return getAnalyzerClassName();
-
-    }
-    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();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AlternateColumnDefinition)
-      return this.equals((AlternateColumnDefinition)that);
-    return false;
-  }
-
-  public boolean equals(AlternateColumnDefinition 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;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(AlternateColumnDefinition other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    AlternateColumnDefinition typedOther = (AlternateColumnDefinition)other;
-
-    lastComparison = Boolean.valueOf(isSetAnalyzerClassName()).compareTo(typedOther.isSetAnalyzerClassName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetAnalyzerClassName()) {
-      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.analyzerClassName, typedOther.analyzerClassName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("AlternateColumnDefinition(");
-    boolean first = true;
-
-    sb.append("analyzerClassName:");
-    if (this.analyzerClassName == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.analyzerClassName);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-    // check for required fields
-    // check for sub-struct validity
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(out)));
-    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(in)));
-    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class AlternateColumnDefinitionStandardSchemeFactory implements SchemeFactory {
-    public AlternateColumnDefinitionStandardScheme getScheme() {
-      return new AlternateColumnDefinitionStandardScheme();
-    }
-  }
-
-  private static class AlternateColumnDefinitionStandardScheme extends StandardScheme<AlternateColumnDefinition> {
-
-    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, AlternateColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // ANALYZER_CLASS_NAME
-            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
-              struct.analyzerClassName = iprot.readString();
-              struct.setAnalyzerClassNameIsSet(true);
-            } else { 
-              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-
-      // check for required fields of primitive type, which can't be checked in the validate method
-      struct.validate();
-    }
-
-    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, AlternateColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.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.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AlternateColumnDefinitionTupleSchemeFactory implements SchemeFactory {
-    public AlternateColumnDefinitionTupleScheme getScheme() {
-      return new AlternateColumnDefinitionTupleScheme();
-    }
-  }
-
-  private static class AlternateColumnDefinitionTupleScheme extends TupleScheme<AlternateColumnDefinition> {
-
-    @Override
-    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, AlternateColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetAnalyzerClassName()) {
-        optionals.set(0);
-      }
-      oprot.writeBitSet(optionals, 1);
-      if (struct.isSetAnalyzerClassName()) {
-        oprot.writeString(struct.analyzerClassName);
-      }
-    }
-
-    @Override
-    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, AlternateColumnDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(1);
-      if (incoming.get(0)) {
-        struct.analyzerClassName = iprot.readString();
-        struct.setAnalyzerClassNameIsSet(true);
-      }
-    }
-  }
-
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d0b113eb/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AnalyzerDefinition.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AnalyzerDefinition.java b/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AnalyzerDefinition.java
deleted file mode 100644
index 57fa502..0000000
--- a/distribution/src/main/scripts/interface/gen-java/org/apache/blur/thrift/generated/AnalyzerDefinition.java
+++ /dev/null
@@ -1,717 +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.blur.thirdparty.thrift_0_9_0.scheme.IScheme;
-import org.apache.blur.thirdparty.thrift_0_9_0.scheme.SchemeFactory;
-import org.apache.blur.thirdparty.thrift_0_9_0.scheme.StandardScheme;
-
-import org.apache.blur.thirdparty.thrift_0_9_0.scheme.TupleScheme;
-import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TTupleProtocol;
-import org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolException;
-import org.apache.blur.thirdparty.thrift_0_9_0.EncodingUtils;
-import org.apache.blur.thirdparty.thrift_0_9_0.TException;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-//import org.slf4j.Logger;
-//import org.slf4j.LoggerFactory;
-
-/**
- * 
- */
-public class AnalyzerDefinition implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<AnalyzerDefinition, AnalyzerDefinition._Fields>, java.io.Serializable, Cloneable {
-  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("AnalyzerDefinition");
-
-  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField DEFAULT_DEFINITION_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("defaultDefinition", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1);
-  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField FULL_TEXT_ANALYZER_CLASS_NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("fullTextAnalyzerClassName", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)2);
-  private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField COLUMN_FAMILY_DEFINITIONS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("columnFamilyDefinitions", org.apache.blur.thirdparty.thrift_0_9_0.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 AnalyzerDefinitionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new AnalyzerDefinitionTupleSchemeFactory());
-  }
-
-  /**
-   * 
-   */
-  public ColumnDefinition defaultDefinition; // required
-  /**
-   * 
-   */
-  public String fullTextAnalyzerClassName; // required
-  /**
-   * 
-   */
-  public Map<String,ColumnFamilyDefinition> columnFamilyDefinitions; // required
-
-  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-  public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum {
-    /**
-     * 
-     */
-    DEFAULT_DEFINITION((short)1, "defaultDefinition"),
-    /**
-     * 
-     */
-    FULL_TEXT_ANALYZER_CLASS_NAME((short)2, "fullTextAnalyzerClassName"),
-    /**
-     * 
-     */
-    COLUMN_FAMILY_DEFINITIONS((short)3, "columnFamilyDefinitions");
-
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
-    static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
-        byName.put(field.getFieldName(), field);
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, or null if its not found.
-     */
-    public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
-        case 1: // DEFAULT_DEFINITION
-          return DEFAULT_DEFINITION;
-        case 2: // FULL_TEXT_ANALYZER_CLASS_NAME
-          return FULL_TEXT_ANALYZER_CLASS_NAME;
-        case 3: // COLUMN_FAMILY_DEFINITIONS
-          return COLUMN_FAMILY_DEFINITIONS;
-        default:
-          return null;
-      }
-    }
-
-    /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
-     */
-    public static _Fields findByThriftIdOrThrow(int fieldId) {
-      _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-      return fields;
-    }
-
-    /**
-     * Find the _Fields constant that matches name, or null if its not found.
-     */
-    public static _Fields findByName(String name) {
-      return byName.get(name);
-    }
-
-    private final short _thriftId;
-    private final String _fieldName;
-
-    _Fields(short thriftId, String fieldName) {
-      _thriftId = thriftId;
-      _fieldName = fieldName;
-    }
-
-    public short getThriftFieldId() {
-      return _thriftId;
-    }
-
-    public String getFieldName() {
-      return _fieldName;
-    }
-  }
-
-  // isset id assignments
-  public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap;
-  static {
-    Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.DEFAULT_DEFINITION, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("defaultDefinition", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
-        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, ColumnDefinition.class)));
-    tmpMap.put(_Fields.FULL_TEXT_ANALYZER_CLASS_NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("fullTextAnalyzerClassName", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
-        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING)));
-    tmpMap.put(_Fields.COLUMN_FAMILY_DEFINITIONS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("columnFamilyDefinitions", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, 
-        new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.MapMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP, 
-            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING), 
-            new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, ColumnFamilyDefinition.class))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
-    org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(AnalyzerDefinition.class, metaDataMap);
-  }
-
-  public AnalyzerDefinition() {
-    this.fullTextAnalyzerClassName = "org.apache.blur.analysis.NoStopWordStandardAnalyzer";
-
-  }
-
-  public AnalyzerDefinition(
-    ColumnDefinition defaultDefinition,
-    String fullTextAnalyzerClassName,
-    Map<String,ColumnFamilyDefinition> columnFamilyDefinitions)
-  {
-    this();
-    this.defaultDefinition = defaultDefinition;
-    this.fullTextAnalyzerClassName = fullTextAnalyzerClassName;
-    this.columnFamilyDefinitions = columnFamilyDefinitions;
-  }
-
-  /**
-   * Performs a deep copy on <i>other</i>.
-   */
-  public AnalyzerDefinition(AnalyzerDefinition other) {
-    if (other.isSetDefaultDefinition()) {
-      this.defaultDefinition = new ColumnDefinition(other.defaultDefinition);
-    }
-    if (other.isSetFullTextAnalyzerClassName()) {
-      this.fullTextAnalyzerClassName = other.fullTextAnalyzerClassName;
-    }
-    if (other.isSetColumnFamilyDefinitions()) {
-      Map<String,ColumnFamilyDefinition> __this__columnFamilyDefinitions = new HashMap<String,ColumnFamilyDefinition>();
-      for (Map.Entry<String, ColumnFamilyDefinition> other_element : other.columnFamilyDefinitions.entrySet()) {
-
-        String other_element_key = other_element.getKey();
-        ColumnFamilyDefinition other_element_value = other_element.getValue();
-
-        String __this__columnFamilyDefinitions_copy_key = other_element_key;
-
-        ColumnFamilyDefinition __this__columnFamilyDefinitions_copy_value = new ColumnFamilyDefinition(other_element_value);
-
-        __this__columnFamilyDefinitions.put(__this__columnFamilyDefinitions_copy_key, __this__columnFamilyDefinitions_copy_value);
-      }
-      this.columnFamilyDefinitions = __this__columnFamilyDefinitions;
-    }
-  }
-
-  public AnalyzerDefinition deepCopy() {
-    return new AnalyzerDefinition(this);
-  }
-
-  @Override
-  public void clear() {
-    this.defaultDefinition = null;
-    this.fullTextAnalyzerClassName = "org.apache.blur.analysis.NoStopWordStandardAnalyzer";
-
-    this.columnFamilyDefinitions = null;
-  }
-
-  /**
-   * 
-   */
-  public ColumnDefinition getDefaultDefinition() {
-    return this.defaultDefinition;
-  }
-
-  /**
-   * 
-   */
-  public AnalyzerDefinition setDefaultDefinition(ColumnDefinition defaultDefinition) {
-    this.defaultDefinition = defaultDefinition;
-    return this;
-  }
-
-  public void unsetDefaultDefinition() {
-    this.defaultDefinition = null;
-  }
-
-  /** Returns true if field defaultDefinition is set (has been assigned a value) and false otherwise */
-  public boolean isSetDefaultDefinition() {
-    return this.defaultDefinition != null;
-  }
-
-  public void setDefaultDefinitionIsSet(boolean value) {
-    if (!value) {
-      this.defaultDefinition = null;
-    }
-  }
-
-  /**
-   * 
-   */
-  public String getFullTextAnalyzerClassName() {
-    return this.fullTextAnalyzerClassName;
-  }
-
-  /**
-   * 
-   */
-  public AnalyzerDefinition setFullTextAnalyzerClassName(String fullTextAnalyzerClassName) {
-    this.fullTextAnalyzerClassName = fullTextAnalyzerClassName;
-    return this;
-  }
-
-  public void unsetFullTextAnalyzerClassName() {
-    this.fullTextAnalyzerClassName = null;
-  }
-
-  /** Returns true if field fullTextAnalyzerClassName is set (has been assigned a value) and false otherwise */
-  public boolean isSetFullTextAnalyzerClassName() {
-    return this.fullTextAnalyzerClassName != null;
-  }
-
-  public void setFullTextAnalyzerClassNameIsSet(boolean value) {
-    if (!value) {
-      this.fullTextAnalyzerClassName = null;
-    }
-  }
-
-  public int getColumnFamilyDefinitionsSize() {
-    return (this.columnFamilyDefinitions == null) ? 0 : this.columnFamilyDefinitions.size();
-  }
-
-  public void putToColumnFamilyDefinitions(String key, ColumnFamilyDefinition val) {
-    if (this.columnFamilyDefinitions == null) {
-      this.columnFamilyDefinitions = new HashMap<String,ColumnFamilyDefinition>();
-    }
-    this.columnFamilyDefinitions.put(key, val);
-  }
-
-  /**
-   * 
-   */
-  public Map<String,ColumnFamilyDefinition> getColumnFamilyDefinitions() {
-    return this.columnFamilyDefinitions;
-  }
-
-  /**
-   * 
-   */
-  public AnalyzerDefinition setColumnFamilyDefinitions(Map<String,ColumnFamilyDefinition> columnFamilyDefinitions) {
-    this.columnFamilyDefinitions = columnFamilyDefinitions;
-    return this;
-  }
-
-  public void unsetColumnFamilyDefinitions() {
-    this.columnFamilyDefinitions = null;
-  }
-
-  /** Returns true if field columnFamilyDefinitions is set (has been assigned a value) and false otherwise */
-  public boolean isSetColumnFamilyDefinitions() {
-    return this.columnFamilyDefinitions != null;
-  }
-
-  public void setColumnFamilyDefinitionsIsSet(boolean value) {
-    if (!value) {
-      this.columnFamilyDefinitions = null;
-    }
-  }
-
-  public void setFieldValue(_Fields field, Object value) {
-    switch (field) {
-    case DEFAULT_DEFINITION:
-      if (value == null) {
-        unsetDefaultDefinition();
-      } else {
-        setDefaultDefinition((ColumnDefinition)value);
-      }
-      break;
-
-    case FULL_TEXT_ANALYZER_CLASS_NAME:
-      if (value == null) {
-        unsetFullTextAnalyzerClassName();
-      } else {
-        setFullTextAnalyzerClassName((String)value);
-      }
-      break;
-
-    case COLUMN_FAMILY_DEFINITIONS:
-      if (value == null) {
-        unsetColumnFamilyDefinitions();
-      } else {
-        setColumnFamilyDefinitions((Map<String,ColumnFamilyDefinition>)value);
-      }
-      break;
-
-    }
-  }
-
-  public Object getFieldValue(_Fields field) {
-    switch (field) {
-    case DEFAULT_DEFINITION:
-      return getDefaultDefinition();
-
-    case FULL_TEXT_ANALYZER_CLASS_NAME:
-      return getFullTextAnalyzerClassName();
-
-    case COLUMN_FAMILY_DEFINITIONS:
-      return getColumnFamilyDefinitions();
-
-    }
-    throw new IllegalStateException();
-  }
-
-  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-  public boolean isSet(_Fields field) {
-    if (field == null) {
-      throw new IllegalArgumentException();
-    }
-
-    switch (field) {
-    case DEFAULT_DEFINITION:
-      return isSetDefaultDefinition();
-    case FULL_TEXT_ANALYZER_CLASS_NAME:
-      return isSetFullTextAnalyzerClassName();
-    case COLUMN_FAMILY_DEFINITIONS:
-      return isSetColumnFamilyDefinitions();
-    }
-    throw new IllegalStateException();
-  }
-
-  @Override
-  public boolean equals(Object that) {
-    if (that == null)
-      return false;
-    if (that instanceof AnalyzerDefinition)
-      return this.equals((AnalyzerDefinition)that);
-    return false;
-  }
-
-  public boolean equals(AnalyzerDefinition that) {
-    if (that == null)
-      return false;
-
-    boolean this_present_defaultDefinition = true && this.isSetDefaultDefinition();
-    boolean that_present_defaultDefinition = true && that.isSetDefaultDefinition();
-    if (this_present_defaultDefinition || that_present_defaultDefinition) {
-      if (!(this_present_defaultDefinition && that_present_defaultDefinition))
-        return false;
-      if (!this.defaultDefinition.equals(that.defaultDefinition))
-        return false;
-    }
-
-    boolean this_present_fullTextAnalyzerClassName = true && this.isSetFullTextAnalyzerClassName();
-    boolean that_present_fullTextAnalyzerClassName = true && that.isSetFullTextAnalyzerClassName();
-    if (this_present_fullTextAnalyzerClassName || that_present_fullTextAnalyzerClassName) {
-      if (!(this_present_fullTextAnalyzerClassName && that_present_fullTextAnalyzerClassName))
-        return false;
-      if (!this.fullTextAnalyzerClassName.equals(that.fullTextAnalyzerClassName))
-        return false;
-    }
-
-    boolean this_present_columnFamilyDefinitions = true && this.isSetColumnFamilyDefinitions();
-    boolean that_present_columnFamilyDefinitions = true && that.isSetColumnFamilyDefinitions();
-    if (this_present_columnFamilyDefinitions || that_present_columnFamilyDefinitions) {
-      if (!(this_present_columnFamilyDefinitions && that_present_columnFamilyDefinitions))
-        return false;
-      if (!this.columnFamilyDefinitions.equals(that.columnFamilyDefinitions))
-        return false;
-    }
-
-    return true;
-  }
-
-  @Override
-  public int hashCode() {
-    return 0;
-  }
-
-  public int compareTo(AnalyzerDefinition other) {
-    if (!getClass().equals(other.getClass())) {
-      return getClass().getName().compareTo(other.getClass().getName());
-    }
-
-    int lastComparison = 0;
-    AnalyzerDefinition typedOther = (AnalyzerDefinition)other;
-
-    lastComparison = Boolean.valueOf(isSetDefaultDefinition()).compareTo(typedOther.isSetDefaultDefinition());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetDefaultDefinition()) {
-      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.defaultDefinition, typedOther.defaultDefinition);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetFullTextAnalyzerClassName()).compareTo(typedOther.isSetFullTextAnalyzerClassName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetFullTextAnalyzerClassName()) {
-      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.fullTextAnalyzerClassName, typedOther.fullTextAnalyzerClassName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetColumnFamilyDefinitions()).compareTo(typedOther.isSetColumnFamilyDefinitions());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetColumnFamilyDefinitions()) {
-      lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.columnFamilyDefinitions, typedOther.columnFamilyDefinitions);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    return 0;
-  }
-
-  public _Fields fieldForId(int fieldId) {
-    return _Fields.findByThriftId(fieldId);
-  }
-
-  public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
-  }
-
-  public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
-  }
-
-  @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("AnalyzerDefinition(");
-    boolean first = true;
-
-    sb.append("defaultDefinition:");
-    if (this.defaultDefinition == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.defaultDefinition);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("fullTextAnalyzerClassName:");
-    if (this.fullTextAnalyzerClassName == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.fullTextAnalyzerClassName);
-    }
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("columnFamilyDefinitions:");
-    if (this.columnFamilyDefinitions == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.columnFamilyDefinitions);
-    }
-    first = false;
-    sb.append(")");
-    return sb.toString();
-  }
-
-  public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-    // check for required fields
-    // check for sub-struct validity
-    if (defaultDefinition != null) {
-      defaultDefinition.validate();
-    }
-  }
-
-  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-    try {
-      write(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(out)));
-    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-    try {
-      read(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TCompactProtocol(new org.apache.blur.thirdparty.thrift_0_9_0.transport.TIOStreamTransport(in)));
-    } catch (org.apache.blur.thirdparty.thrift_0_9_0.TException te) {
-      throw new java.io.IOException(te);
-    }
-  }
-
-  private static class AnalyzerDefinitionStandardSchemeFactory implements SchemeFactory {
-    public AnalyzerDefinitionStandardScheme getScheme() {
-      return new AnalyzerDefinitionStandardScheme();
-    }
-  }
-
-  private static class AnalyzerDefinitionStandardScheme extends StandardScheme<AnalyzerDefinition> {
-
-    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, AnalyzerDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField;
-      iprot.readStructBegin();
-      while (true)
-      {
-        schemeField = iprot.readFieldBegin();
-        if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STOP) { 
-          break;
-        }
-        switch (schemeField.id) {
-          case 1: // DEFAULT_DEFINITION
-            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) {
-              struct.defaultDefinition = new ColumnDefinition();
-              struct.defaultDefinition.read(iprot);
-              struct.setDefaultDefinitionIsSet(true);
-            } else { 
-              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // FULL_TEXT_ANALYZER_CLASS_NAME
-            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) {
-              struct.fullTextAnalyzerClassName = iprot.readString();
-              struct.setFullTextAnalyzerClassNameIsSet(true);
-            } else { 
-              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 3: // COLUMN_FAMILY_DEFINITIONS
-            if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.MAP) {
-              {
-                org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map140 = iprot.readMapBegin();
-                struct.columnFamilyDefinitions = new HashMap<String,ColumnFamilyDefinition>(2*_map140.size);
-                for (int _i141 = 0; _i141 < _map140.size; ++_i141)
-                {
-                  String _key142; // required
-                  ColumnFamilyDefinition _val143; // optional
-                  _key142 = iprot.readString();
-                  _val143 = new ColumnFamilyDefinition();
-                  _val143.read(iprot);
-                  struct.columnFamilyDefinitions.put(_key142, _val143);
-                }
-                iprot.readMapEnd();
-              }
-              struct.setColumnFamilyDefinitionsIsSet(true);
-            } else { 
-              org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          default:
-            org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-        }
-        iprot.readFieldEnd();
-      }
-      iprot.readStructEnd();
-
-      // check for required fields of primitive type, which can't be checked in the validate method
-      struct.validate();
-    }
-
-    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, AnalyzerDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      struct.validate();
-
-      oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.defaultDefinition != null) {
-        oprot.writeFieldBegin(DEFAULT_DEFINITION_FIELD_DESC);
-        struct.defaultDefinition.write(oprot);
-        oprot.writeFieldEnd();
-      }
-      if (struct.fullTextAnalyzerClassName != null) {
-        oprot.writeFieldBegin(FULL_TEXT_ANALYZER_CLASS_NAME_FIELD_DESC);
-        oprot.writeString(struct.fullTextAnalyzerClassName);
-        oprot.writeFieldEnd();
-      }
-      if (struct.columnFamilyDefinitions != null) {
-        oprot.writeFieldBegin(COLUMN_FAMILY_DEFINITIONS_FIELD_DESC);
-        {
-          oprot.writeMapBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, struct.columnFamilyDefinitions.size()));
-          for (Map.Entry<String, ColumnFamilyDefinition> _iter144 : struct.columnFamilyDefinitions.entrySet())
-          {
-            oprot.writeString(_iter144.getKey());
-            _iter144.getValue().write(oprot);
-          }
-          oprot.writeMapEnd();
-        }
-        oprot.writeFieldEnd();
-      }
-      oprot.writeFieldStop();
-      oprot.writeStructEnd();
-    }
-
-  }
-
-  private static class AnalyzerDefinitionTupleSchemeFactory implements SchemeFactory {
-    public AnalyzerDefinitionTupleScheme getScheme() {
-      return new AnalyzerDefinitionTupleScheme();
-    }
-  }
-
-  private static class AnalyzerDefinitionTupleScheme extends TupleScheme<AnalyzerDefinition> {
-
-    @Override
-    public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, AnalyzerDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
-      if (struct.isSetDefaultDefinition()) {
-        optionals.set(0);
-      }
-      if (struct.isSetFullTextAnalyzerClassName()) {
-        optionals.set(1);
-      }
-      if (struct.isSetColumnFamilyDefinitions()) {
-        optionals.set(2);
-      }
-      oprot.writeBitSet(optionals, 3);
-      if (struct.isSetDefaultDefinition()) {
-        struct.defaultDefinition.write(oprot);
-      }
-      if (struct.isSetFullTextAnalyzerClassName()) {
-        oprot.writeString(struct.fullTextAnalyzerClassName);
-      }
-      if (struct.isSetColumnFamilyDefinitions()) {
-        {
-          oprot.writeI32(struct.columnFamilyDefinitions.size());
-          for (Map.Entry<String, ColumnFamilyDefinition> _iter145 : struct.columnFamilyDefinitions.entrySet())
-          {
-            oprot.writeString(_iter145.getKey());
-            _iter145.getValue().write(oprot);
-          }
-        }
-      }
-    }
-
-    @Override
-    public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, AnalyzerDefinition struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(3);
-      if (incoming.get(0)) {
-        struct.defaultDefinition = new ColumnDefinition();
-        struct.defaultDefinition.read(iprot);
-        struct.setDefaultDefinitionIsSet(true);
-      }
-      if (incoming.get(1)) {
-        struct.fullTextAnalyzerClassName = iprot.readString();
-        struct.setFullTextAnalyzerClassNameIsSet(true);
-      }
-      if (incoming.get(2)) {
-        {
-          org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map146 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
-          struct.columnFamilyDefinitions = new HashMap<String,ColumnFamilyDefinition>(2*_map146.size);
-          for (int _i147 = 0; _i147 < _map146.size; ++_i147)
-          {
-            String _key148; // required
-            ColumnFamilyDefinition _val149; // optional
-            _key148 = iprot.readString();
-            _val149 = new ColumnFamilyDefinition();
-            _val149.read(iprot);
-            struct.columnFamilyDefinitions.put(_key148, _val149);
-          }
-        }
-        struct.setColumnFamilyDefinitionsIsSet(true);
-      }
-    }
-  }
-
-}
-


Mime
View raw message