net.conquiris.lucene.document
Class BaseDocumentBuilder.DocNumericFieldBuilder

java.lang.Object
  extended by net.derquinse.common.reflect.This<B>
      extended by net.conquiris.lucene.document.FieldBuilder<B>
          extended by net.conquiris.lucene.document.IndexableFieldBuilder<B>
              extended by net.conquiris.lucene.document.BaseNumericFieldBuilder<BaseDocumentBuilder.DocNumericFieldBuilder>
                  extended by net.conquiris.lucene.document.BaseDocumentBuilder.DocNumericFieldBuilder
All Implemented Interfaces:
NumericFieldAdder<B>, IsIndexedFlag, IsStoredFlag
Enclosing class:
BaseDocumentBuilder<B extends BaseDocumentBuilder<B>>

public final class BaseDocumentBuilder.DocNumericFieldBuilder
extends BaseNumericFieldBuilder<BaseDocumentBuilder.DocNumericFieldBuilder>
implements NumericFieldAdder<B>

Numeric field builder that adds to the current document builder.


Field Summary
 
Fields inherited from interface net.conquiris.schema.IsStoredFlag
STORED
 
Fields inherited from interface net.conquiris.schema.IsIndexedFlag
INDEXED
 
Method Summary
 B add(boolean value)
          Adds the field to the document with the current information and a boolean value.
 B add(double value)
          Adds the field to the document with the current information and a double value.
 B add(float value)
          Adds the field to the document with the current information and a float value.
 B add(int value)
          Adds the field to the document with the current information and an int value.
 B add(long value)
          Adds the field to the document with the current information and a long value.
 
Methods inherited from class net.conquiris.lucene.document.BaseNumericFieldBuilder
build, build, build, build, build
 
Methods inherited from class net.conquiris.lucene.document.IndexableFieldBuilder
index, isIndexed, isStored, store, store, store
 
Methods inherited from class net.derquinse.common.reflect.This
thisValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public B add(int value)
Description copied from interface: NumericFieldAdder
Adds the field to the document with the current information and an int value.

Specified by:
add in interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>
Parameters:
value - Field value.
Returns:
The document builder.

add

public B add(long value)
Description copied from interface: NumericFieldAdder
Adds the field to the document with the current information and a long value.

Specified by:
add in interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>
Parameters:
value - Field value.
Returns:
The document builder.

add

public B add(float value)
Description copied from interface: NumericFieldAdder
Adds the field to the document with the current information and a float value.

Specified by:
add in interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>
Parameters:
value - Field value.
Returns:
The document builder.

add

public B add(double value)
Description copied from interface: NumericFieldAdder
Adds the field to the document with the current information and a double value.

Specified by:
add in interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>
Parameters:
value - Field value.
Returns:
The document builder.

add

public B add(boolean value)
Description copied from interface: NumericFieldAdder
Adds the field to the document with the current information and a boolean value. True is mapped to 1 and false to 0.

Specified by:
add in interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>
Parameters:
value - Field value.
Returns:
The document builder.


Copyright © 2013 Derquinse Projects. All Rights Reserved.