net.conquiris.lucene.document
Class BaseNumericFieldBuilder<B extends BaseNumericFieldBuilder<B>>
java.lang.Object
net.derquinse.common.reflect.This<B>
net.conquiris.lucene.document.FieldBuilder<B>
net.conquiris.lucene.document.IndexableFieldBuilder<B>
net.conquiris.lucene.document.BaseNumericFieldBuilder<B>
- All Implemented Interfaces:
- IsIndexedFlag, IsStoredFlag
- Direct Known Subclasses:
- BaseDocumentBuilder.DocNumericFieldBuilder, NumericFieldBuilder
public abstract class BaseNumericFieldBuilder<B extends BaseNumericFieldBuilder<B>>
- extends IndexableFieldBuilder<B>
Base class for numeric field builders. Numeric fields are indexed but not stored by default.
- Author:
- Andres Rodriguez
|
Method Summary |
org.apache.lucene.document.NumericField |
build(double value)
Builds a numeric field with the current information and a double value. |
org.apache.lucene.document.NumericField |
build(float value)
Builds a numeric field with the current information and a float value. |
org.apache.lucene.document.NumericField |
build(int value)
Builds a numeric field with the current information and an int value. |
org.apache.lucene.document.NumericField |
build(long value)
Builds a numeric field with the current information and a long value. |
| 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 |
build
public final org.apache.lucene.document.NumericField build(int value)
- Builds a numeric field with the current information and an int value.
- Parameters:
value - Field value.
- Returns:
- The created field.
- Throws:
IllegalStateException - if the field is neither stored nor indexed.
build
public final org.apache.lucene.document.NumericField build(long value)
- Builds a numeric field with the current information and a long value.
- Parameters:
value - Field value.
- Returns:
- The created field.
- Throws:
IllegalStateException - if the field is neither stored nor indexed.
build
public final org.apache.lucene.document.NumericField build(float value)
- Builds a numeric field with the current information and a float value.
- Parameters:
value - Field value.
- Returns:
- The created field.
- Throws:
IllegalStateException - if the field is neither stored nor indexed.
build
public final org.apache.lucene.document.NumericField build(double value)
- Builds a numeric field with the current information and a double value.
- Parameters:
value - Field value.
- Returns:
- The created field.
- Throws:
IllegalStateException - if the field is neither stored nor indexed.
Copyright © 2012 Derquinse Projects.. All Rights Reserved.