incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [8/13] git commit: Renamed Lucene interface to ShardServer.
Date Fri, 09 Nov 2012 02:16:01 GMT
Renamed Lucene interface to ShardServer.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/7facf5a2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/7facf5a2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/7facf5a2

Branch: refs/heads/0.2-dev
Commit: 7facf5a20d7f1fa3aaa0196262ee12f7e780e4d9
Parents: fc3ca94
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Nov 5 14:59:28 2012 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Nov 5 14:59:28 2012 -0500

----------------------------------------------------------------------
 interface/Blur.thrift                              |   53 +-
 interface/gen-html/Blur.html                       |   75 +-
 interface/gen-html/index.html                      |   18 +-
 .../org/apache/blur/thrift/generated/Document.java |   12 +
 .../org/apache/blur/thrift/generated/Field.java    |   40 +
 .../org/apache/blur/thrift/generated/Lucene.java   | 8047 ---------------
 .../blur/thrift/generated/MutateOptions.java       |   48 +
 .../org/apache/blur/thrift/generated/Term.java     |   24 +
 .../blur/thrift/generated/UpdatePackage.java       |   24 +
 interface/gen-perl/Blur/Lucene.pm                  | 2065 ----
 interface/gen-rb/blur_types.rb                     |   13 +
 interface/gen-rb/lucene.rb                         |  514 -
 .../org/apache/blur/thrift/BlurShardServer.java    |    2 +-
 .../apache/blur/thrift/ThriftBlurShardServer.java  |    7 +-
 .../blur/testsuite/AddDocumentsLuceneApiTable.java |    2 +-
 .../blur/testsuite/SearchLuceneApiTable.java       |    2 +-
 .../org/apache/blur/thrift/generated/Document.java |   12 +
 .../org/apache/blur/thrift/generated/Field.java    |   40 +
 .../org/apache/blur/thrift/generated/Lucene.java   | 8047 ---------------
 .../blur/thrift/generated/MutateOptions.java       |   48 +
 .../org/apache/blur/thrift/generated/Term.java     |   24 +
 .../blur/thrift/generated/UpdatePackage.java       |   24 +
 22 files changed, 414 insertions(+), 18727 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7facf5a2/interface/Blur.thrift
----------------------------------------------------------------------
diff --git a/interface/Blur.thrift b/interface/Blur.thrift
index 0e2dd0b..f2b9139 100644
--- a/interface/Blur.thrift
+++ b/interface/Blur.thrift
@@ -837,34 +837,73 @@ struct TopFieldDocs {
 }
 
 struct Field {
-  1:string name,
-  2:binary value,
-  3:TYPE type,
-  4:double boost = 1.0
+ /**
+  * The name of the field.
+  */
+ 1:string name,
+ /**
+  * The value of the field in binary form.  If the value is a string, the string should be
in UTF-8 format.
+  */
+ 2:binary value,
+ /**
+  * The type of the field, this represents how the data is stored and the default indexing
schema for the data.
+  */
+ 3:TYPE type,
+ /**
+  * The boost of the field.  Default of 1.0 for no change to the boost.
+  */
+ 4:double boost = 1.0
 }
 
 struct Document {
+ /**
+  *
+  */
  1:list<Field> fields
 }
 
 struct Term {
-  1:string field,
-  2:binary bytes
+ /**
+  *
+  */
+ 1:string field,
+ /**
+  *
+  */
+ 2:binary bytes
 }
 
 struct MutateOptions {
+ /**
+  *
+  */
  1:string table,
+ /**
+  *
+  */
  2:i32 shardIndex,
+ /**
+  *
+  */
  3:bool waitToBeVisible,
+ /**
+  *
+  */
  4:bool writeAheadLog
 }
 
 struct UpdatePackage {
+ /**
+  *
+  */
  1:Term term,
+ /**
+  *
+  */
  2:list<Document> documents
 }
 
-service Lucene extends Blur {
+service ShardServer extends Blur {
 
   /**
    * Creating a session snapshots the readers during search and document fetching.  This
provides a static view of the indexes so the document ids will remain the same during a session.

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7facf5a2/interface/gen-html/Blur.html
----------------------------------------------------------------------
diff --git a/interface/gen-html/Blur.html b/interface/gen-html/Blur.html
index e2adce8..f34bea9 100644
--- a/interface/gen-html/Blur.html
+++ b/interface/gen-html/Blur.html
@@ -39,16 +39,16 @@
 <li><a href="Blur.html#Fn_Blur_tableStats">tableStats</a></li>
 <li><a href="Blur.html#Fn_Blur_terms">terms</a></li>
 </ul>
-<a href="Blur.html#Svc_Lucene">Lucene</a><br/>
+<a href="Blur.html#Svc_ShardServer">ShardServer</a><br/>
 <ul>
-<li><a href="Blur.html#Fn_Lucene_addDocuments">addDocuments</a></li>
-<li><a href="Blur.html#Fn_Lucene_closeReadSession">closeReadSession</a></li>
-<li><a href="Blur.html#Fn_Lucene_deleteDocuments">deleteDocuments</a></li>
-<li><a href="Blur.html#Fn_Lucene_deleteDocumentsByQueries">deleteDocumentsByQueries</a></li>
-<li><a href="Blur.html#Fn_Lucene_doc">doc</a></li>
-<li><a href="Blur.html#Fn_Lucene_openReadSession">openReadSession</a></li>
-<li><a href="Blur.html#Fn_Lucene_search">search</a></li>
-<li><a href="Blur.html#Fn_Lucene_updateDocuments">updateDocuments</a></li>
+<li><a href="Blur.html#Fn_ShardServer_addDocuments">addDocuments</a></li>
+<li><a href="Blur.html#Fn_ShardServer_closeReadSession">closeReadSession</a></li>
+<li><a href="Blur.html#Fn_ShardServer_deleteDocuments">deleteDocuments</a></li>
+<li><a href="Blur.html#Fn_ShardServer_deleteDocumentsByQueries">deleteDocumentsByQueries</a></li>
+<li><a href="Blur.html#Fn_ShardServer_doc">doc</a></li>
+<li><a href="Blur.html#Fn_ShardServer_openReadSession">openReadSession</a></li>
+<li><a href="Blur.html#Fn_ShardServer_search">search</a></li>
+<li><a href="Blur.html#Fn_ShardServer_updateDocuments">updateDocuments</a></li>
 </ul>
 </td>
 <td><a href="Blur.html#Struct_AlternateColumnDefinition">AlternateColumnDefinition</a><br/>
@@ -502,27 +502,40 @@ updates through MapReduce are allowed and in fact they are only allowed
if the t
 <tr><td>5</td><td>fields</td><td><code>list&lt;<code><a
href="Blur.html#Struct_SortField">SortField</a></code>&gt;</code></td><td></td><td>default</td><td></td></tr>
 </table><br/></div><div class="definition"><h3 id="Struct_Field">Struct:
Field</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>name</td><td><code>string</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>2</td><td>value</td><td><code>binary</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>3</td><td>type</td><td><code><a href="Blur.html#Enum_TYPE">TYPE</a></code></td><td></td><td>default</td><td></td></tr>
-<tr><td>4</td><td>boost</td><td><code>double</code></td><td></td><td>default</td><td>1</td></tr>
+<tr><td>1</td><td>name</td><td><code>string</code></td><td>The
name of the field.
+</td><td>default</td><td></td></tr>
+<tr><td>2</td><td>value</td><td><code>binary</code></td><td>The
value of the field in binary form.  If the value is a string, the string should be in UTF-8
format.
+</td><td>default</td><td></td></tr>
+<tr><td>3</td><td>type</td><td><code><a href="Blur.html#Enum_TYPE">TYPE</a></code></td><td>The
type of the field, this represents how the data is stored and the default indexing schema
for the data.
+</td><td>default</td><td></td></tr>
+<tr><td>4</td><td>boost</td><td><code>double</code></td><td>The
boost of the field.  Default of 1.0 for no change to the boost.
+</td><td>default</td><td>1</td></tr>
 </table><br/></div><div class="definition"><h3 id="Struct_Document">Struct:
Document</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>fields</td><td><code>list&lt;<code><a
href="Blur.html#Struct_Field">Field</a></code>&gt;</code></td><td></td><td>default</td><td></td></tr>
+<tr><td>1</td><td>fields</td><td><code>list&lt;<code><a
href="Blur.html#Struct_Field">Field</a></code>&gt;</code></td><td>
+</td><td>default</td><td></td></tr>
 </table><br/></div><div class="definition"><h3 id="Struct_Term">Struct:
Term</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>field</td><td><code>string</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>2</td><td>bytes</td><td><code>binary</code></td><td></td><td>default</td><td></td></tr>
+<tr><td>1</td><td>field</td><td><code>string</code></td><td>
+</td><td>default</td><td></td></tr>
+<tr><td>2</td><td>bytes</td><td><code>binary</code></td><td>
+</td><td>default</td><td></td></tr>
 </table><br/></div><div class="definition"><h3 id="Struct_MutateOptions">Struct:
MutateOptions</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>table</td><td><code>string</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>2</td><td>shardIndex</td><td><code>i32</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>3</td><td>waitToBeVisible</td><td><code>bool</code></td><td></td><td>default</td><td></td></tr>
-<tr><td>4</td><td>writeAheadLog</td><td><code>bool</code></td><td></td><td>default</td><td></td></tr>
+<tr><td>1</td><td>table</td><td><code>string</code></td><td>
+</td><td>default</td><td></td></tr>
+<tr><td>2</td><td>shardIndex</td><td><code>i32</code></td><td>
+</td><td>default</td><td></td></tr>
+<tr><td>3</td><td>waitToBeVisible</td><td><code>bool</code></td><td>
+</td><td>default</td><td></td></tr>
+<tr><td>4</td><td>writeAheadLog</td><td><code>bool</code></td><td>
+</td><td>default</td><td></td></tr>
 </table><br/></div><div class="definition"><h3 id="Struct_UpdatePackage">Struct:
UpdatePackage</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>term</td><td><code><a href="Blur.html#Struct_Term">Term</a></code></td><td></td><td>default</td><td></td></tr>
-<tr><td>2</td><td>documents</td><td><code>list&lt;<code><a
href="Blur.html#Struct_Document">Document</a></code>&gt;</code></td><td></td><td>default</td><td></td></tr>
+<tr><td>1</td><td>term</td><td><code><a href="Blur.html#Struct_Term">Term</a></code></td><td>
+</td><td>default</td><td></td></tr>
+<tr><td>2</td><td>documents</td><td><code>list&lt;<code><a
href="Blur.html#Struct_Document">Document</a></code>&gt;</code></td><td>
+</td><td>default</td><td></td></tr>
 </table><br/></div><hr/><h2 id="Services">Services</h2>
 <h3 id="Svc_Blur">Service: Blur</h3>
 <p/>
@@ -644,15 +657,15 @@ updates through MapReduce are allowed and in fact they are only allowed
if the t
 </pre></div><div class="definition"><h4 id="Fn_Blur_configuration">Function:
Blur.configuration</h4>
 <pre><code>map&lt;<code>string</code>, <code>string</code>&gt;</code>
configuration()
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
-</pre></div><h3 id="Svc_Lucene">Service: Lucene</h3>
+</pre></div><h3 id="Svc_ShardServer">Service: ShardServer</h3>
 <div class="extends"><em>extends</em> <code><a href="Blur.html#Svc_Blur">Blur</a></code></div>
-<div class="definition"><h4 id="Fn_Lucene_openReadSession">Function: Lucene.openReadSession</h4>
+<div class="definition"><h4 id="Fn_ShardServer_openReadSession">Function: ShardServer.openReadSession</h4>
 <pre><code><a href="Blur.html#Struct_Session">Session</a></code>
openReadSession(<code>string</code> table)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
 </pre>Creating a session snapshots the readers during search and document fetching.
 This provides a static view of the indexes so the document ids will remain the same during
a session.
 @param table the table name.
 @return the new Session.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_search">Function:
Lucene.search</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_search">Function:
ShardServer.search</h4>
 <pre><code>list&lt;<code><a href="Blur.html#Struct_TopFieldDocs">TopFieldDocs</a></code>&gt;</code>
search(<code><a href="Blur.html#Struct_Session">Session</a></code>
session,
                           <code><a href="Blur.html#Struct_QueryArgs">QueryArgs</a></code>
queryArgs)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
@@ -660,7 +673,7 @@ updates through MapReduce are allowed and in fact they are only allowed
if the t
 @param session the Session.
 @param queryArgs the QueryArgs which contains the query, filter, sort, fetch, paging information,
etc.
 @return the TopFieldDocs, where there is a TopFieldDocs object for each shard that was search
against.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_doc">Function:
Lucene.doc</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_doc">Function:
ShardServer.doc</h4>
 <pre><code>list&lt;<code><a href="Blur.html#Struct_Document">Document</a></code>&gt;</code>
doc(<code><a href="Blur.html#Struct_Session">Session</a></code> session,
                    <code>list&lt;<code><a href="Blur.html#Struct_DocLocation">DocLocation</a></code>&gt;</code>
docLocations,
                    <code>set&lt;<code>string</code>&gt;</code>
fields)
@@ -670,33 +683,33 @@ updates through MapReduce are allowed and in fact they are only allowed
if the t
 @param docLocations the document locations, which include shard index and document id.
 @param fields the field names to fetch.
 @return the Documents that were requested.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_closeReadSession">Function:
Lucene.closeReadSession</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_closeReadSession">Function:
ShardServer.closeReadSession</h4>
 <pre><code>void</code> closeReadSession(<code><a href="Blur.html#Struct_Session">Session</a></code>
session)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
 </pre>Closes the session and allows the readers to be closed.
 @param session the Session.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_addDocuments">Function:
Lucene.addDocuments</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_addDocuments">Function:
ShardServer.addDocuments</h4>
 <pre><code>void</code> addDocuments(<code><a href="Blur.html#Struct_MutateOptions">MutateOptions</a></code>
options,
                   <code>list&lt;<code><a href="Blur.html#Struct_Document">Document</a></code>&gt;</code>
documents)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
 </pre>Add Documents to the given table in the provided shard.  If the table or shard
is not found on this shard server a BlurException will be thrown.
 @param options the MutateOptions provide the table name, shard index, etc.
 @param documents the documents to be added.  NOTE: All documents provided to be indexed in
a single segment.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_deleteDocumentsByQueries">Function:
Lucene.deleteDocumentsByQueries</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_deleteDocumentsByQueries">Function:
ShardServer.deleteDocumentsByQueries</h4>
 <pre><code>void</code> deleteDocumentsByQueries(<code><a href="Blur.html#Struct_MutateOptions">MutateOptions</a></code>
options,
                               <code>list&lt;<code>binary</code>&gt;</code>
queries)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
 </pre>Delete Documents to the given table in the provided shard.  If the table or shard
is not found on this shard server a BlurException will be thrown.
 @param options the MutateOptions provide the table name, shard index, etc.
 @param queries the Queries that will executed and mark there resulting documents as deleted.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_deleteDocuments">Function:
Lucene.deleteDocuments</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_deleteDocuments">Function:
ShardServer.deleteDocuments</h4>
 <pre><code>void</code> deleteDocuments(<code><a href="Blur.html#Struct_MutateOptions">MutateOptions</a></code>
options,
                      <code>list&lt;<code><a href="Blur.html#Struct_Term">Term</a></code>&gt;</code>
terms)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
 </pre>Delete Documents to the given table in the provided shard.  If the table or shard
is not found on this shard server a BlurException will be thrown.
 @param options the MutateOptions provide the table name, shard index, etc.
 @param queries the Terms that will be found and mark deleted all the documents to be deleted.
-<br/></div><div class="definition"><h4 id="Fn_Lucene_updateDocuments">Function:
Lucene.updateDocuments</h4>
+<br/></div><div class="definition"><h4 id="Fn_ShardServer_updateDocuments">Function:
ShardServer.updateDocuments</h4>
 <pre><code>void</code> updateDocuments(<code><a href="Blur.html#Struct_MutateOptions">MutateOptions</a></code>
options,
                      <code>list&lt;<code><a href="Blur.html#Struct_UpdatePackage">UpdatePackage</a></code>&gt;</code>
updatePackages)
     throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7facf5a2/interface/gen-html/index.html
----------------------------------------------------------------------
diff --git a/interface/gen-html/index.html b/interface/gen-html/index.html
index 7c7bfb8..0430044 100644
--- a/interface/gen-html/index.html
+++ b/interface/gen-html/index.html
@@ -35,16 +35,16 @@
 <li><a href="Blur.html#Fn_Blur_tableStats">tableStats</a></li>
 <li><a href="Blur.html#Fn_Blur_terms">terms</a></li>
 </ul>
-<a href="Blur.html#Svc_Lucene">Lucene</a><br/>
+<a href="Blur.html#Svc_ShardServer">ShardServer</a><br/>
 <ul>
-<li><a href="Blur.html#Fn_Lucene_addDocuments">addDocuments</a></li>
-<li><a href="Blur.html#Fn_Lucene_closeReadSession">closeReadSession</a></li>
-<li><a href="Blur.html#Fn_Lucene_deleteDocuments">deleteDocuments</a></li>
-<li><a href="Blur.html#Fn_Lucene_deleteDocumentsByQueries">deleteDocumentsByQueries</a></li>
-<li><a href="Blur.html#Fn_Lucene_doc">doc</a></li>
-<li><a href="Blur.html#Fn_Lucene_openReadSession">openReadSession</a></li>
-<li><a href="Blur.html#Fn_Lucene_search">search</a></li>
-<li><a href="Blur.html#Fn_Lucene_updateDocuments">updateDocuments</a></li>
+<li><a href="Blur.html#Fn_ShardServer_addDocuments">addDocuments</a></li>
+<li><a href="Blur.html#Fn_ShardServer_closeReadSession">closeReadSession</a></li>
+<li><a href="Blur.html#Fn_ShardServer_deleteDocuments">deleteDocuments</a></li>
+<li><a href="Blur.html#Fn_ShardServer_deleteDocumentsByQueries">deleteDocumentsByQueries</a></li>
+<li><a href="Blur.html#Fn_ShardServer_doc">doc</a></li>
+<li><a href="Blur.html#Fn_ShardServer_openReadSession">openReadSession</a></li>
+<li><a href="Blur.html#Fn_ShardServer_search">search</a></li>
+<li><a href="Blur.html#Fn_ShardServer_updateDocuments">updateDocuments</a></li>
 </ul>
 </td>
 <td><a href="Blur.html#Struct_AlternateColumnDefinition">AlternateColumnDefinition</a><br/>

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7facf5a2/interface/gen-java/org/apache/blur/thrift/generated/Document.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/Document.java b/interface/gen-java/org/apache/blur/thrift/generated/Document.java
index 52244c2..eb58daa 100644
--- a/interface/gen-java/org/apache/blur/thrift/generated/Document.java
+++ b/interface/gen-java/org/apache/blur/thrift/generated/Document.java
@@ -60,10 +60,16 @@ public class Document implements org.apache.thrift.TBase<Document,
Document._Fie
     schemes.put(TupleScheme.class, new DocumentTupleSchemeFactory());
   }
 
+  /**
+   * 
+   */
   public List<Field> fields; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding
and manipulating them. */
   public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    /**
+     * 
+     */
     FIELDS((short)1, "fields");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -178,10 +184,16 @@ public class Document implements org.apache.thrift.TBase<Document,
Document._Fie
     this.fields.add(elem);
   }
 
+  /**
+   * 
+   */
   public List<Field> getFields() {
     return this.fields;
   }
 
+  /**
+   * 
+   */
   public Document setFields(List<Field> fields) {
     this.fields = fields;
     return this;

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7facf5a2/interface/gen-java/org/apache/blur/thrift/generated/Field.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/Field.java b/interface/gen-java/org/apache/blur/thrift/generated/Field.java
index 7d51828..07dd352 100644
--- a/interface/gen-java/org/apache/blur/thrift/generated/Field.java
+++ b/interface/gen-java/org/apache/blur/thrift/generated/Field.java
@@ -63,24 +63,44 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
     schemes.put(TupleScheme.class, new FieldTupleSchemeFactory());
   }
 
+  /**
+   * The name of the field.
+   */
   public String name; // required
+  /**
+   * The value of the field in binary form.  If the value is a string, the string should
be in UTF-8 format.
+   */
   public ByteBuffer value; // required
   /**
+   * The type of the field, this represents how the data is stored and the default indexing
schema for the data.
    * 
    * @see TYPE
    */
   public TYPE type; // required
+  /**
+   * The boost of the field.  Default of 1.0 for no change to the boost.
+   */
   public double boost; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding
and manipulating them. */
   public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    /**
+     * The name of the field.
+     */
     NAME((short)1, "name"),
+    /**
+     * The value of the field in binary form.  If the value is a string, the string should
be in UTF-8 format.
+     */
     VALUE((short)2, "value"),
     /**
+     * The type of the field, this represents how the data is stored and the default indexing
schema for the data.
      * 
      * @see TYPE
      */
     TYPE((short)3, "type"),
+    /**
+     * The boost of the field.  Default of 1.0 for no change to the boost.
+     */
     BOOST((short)4, "boost");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -211,10 +231,16 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
 
   }
 
+  /**
+   * The name of the field.
+   */
   public String getName() {
     return this.name;
   }
 
+  /**
+   * The name of the field.
+   */
   public Field setName(String name) {
     this.name = name;
     return this;
@@ -235,6 +261,9 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
     }
   }
 
+  /**
+   * The value of the field in binary form.  If the value is a string, the string should
be in UTF-8 format.
+   */
   public byte[] getValue() {
     setValue(org.apache.thrift.TBaseHelper.rightSize(value));
     return value == null ? null : value.array();
@@ -244,6 +273,9 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
     return value;
   }
 
+  /**
+   * The value of the field in binary form.  If the value is a string, the string should
be in UTF-8 format.
+   */
   public Field setValue(byte[] value) {
     setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value));
     return this;
@@ -270,6 +302,7 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
   }
 
   /**
+   * The type of the field, this represents how the data is stored and the default indexing
schema for the data.
    * 
    * @see TYPE
    */
@@ -278,6 +311,7 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
   }
 
   /**
+   * The type of the field, this represents how the data is stored and the default indexing
schema for the data.
    * 
    * @see TYPE
    */
@@ -301,10 +335,16 @@ public class Field implements org.apache.thrift.TBase<Field, Field._Fields>,
jav
     }
   }
 
+  /**
+   * The boost of the field.  Default of 1.0 for no change to the boost.
+   */
   public double getBoost() {
     return this.boost;
   }
 
+  /**
+   * The boost of the field.  Default of 1.0 for no change to the boost.
+   */
   public Field setBoost(double boost) {
     this.boost = boost;
     setBoostIsSet(true);


Mime
View raw message