|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.derquinse.common.reflect.This<B>
net.conquiris.lucene.document.FieldableBuilder<B>
net.conquiris.lucene.document.BaseNumericFieldBuilder<B>
public abstract class BaseNumericFieldBuilder<B extends BaseNumericFieldBuilder<B>>
Base class for numeric field builders. Numeric fields are indexed but not stored by default.
| 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. |
B |
index(boolean index)
Sets whether to index the field. |
boolean |
isIndexed()
Returns whether the field will be indexed. |
| Methods inherited from class net.conquiris.lucene.document.FieldableBuilder |
|---|
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 |
|---|
public final boolean isIndexed()
public final B index(boolean index)
public final org.apache.lucene.document.NumericField build(int value)
value - Field value.
IllegalStateException - if the field is neither stored nor indexed.public final org.apache.lucene.document.NumericField build(long value)
value - Field value.
IllegalStateException - if the field is neither stored nor indexed.public final org.apache.lucene.document.NumericField build(float value)
value - Field value.
IllegalStateException - if the field is neither stored nor indexed.public final org.apache.lucene.document.NumericField build(double value)
value - Field value.
IllegalStateException - if the field is neither stored nor indexed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||