net.conquiris.lucene.document
Interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>

All Known Implementing Classes:
BaseDocumentBuilder.DocNumericFieldBuilder

public interface NumericFieldAdder<B extends BaseDocumentBuilder<B>>

Base interface for numeric field adders.

Author:
Andres Rodriguez

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.
 

Method Detail

add

B add(int value)
Adds the field to the document with the current information and an int value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.

add

B add(long value)
Adds the field to the document with the current information and a long value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.

add

B add(float value)
Adds the field to the document with the current information and a float value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.

add

B add(double value)
Adds the field to the document with the current information and a double value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.

add

B add(boolean value)
Adds the field to the document with the current information and a boolean value. True is mapped to 1 and false to 0.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the field is neither stored nor indexed.
IllegalStateException - if the document was already built.


Copyright © 2013 Derquinse Projects. All Rights Reserved.