public class IndexedEntityIntegerFieldImpl extends Object implements IndexedEntityIntegerField
Modifier and Type | Field and Description |
---|---|
protected String |
fieldId |
protected org.apache.lucene.document.Field.Store |
stored |
Modifier | Constructor and Description |
---|---|
protected |
IndexedEntityIntegerFieldImpl(String fieldId,
org.apache.lucene.document.Field.Store stored) |
Modifier and Type | Method and Description |
---|---|
void |
addToDocument(org.apache.lucene.document.Document document,
T value) |
org.apache.lucene.search.NumericRangeQuery<Integer> |
createQuery(Integer value) |
org.apache.lucene.index.Term |
createTerm(org.apache.lucene.document.Document document) |
org.apache.lucene.index.Term |
createTerm(Integer value) |
String |
getFieldId() |
T |
getValue(org.apache.lucene.document.Document document) |
int |
getValue(org.apache.lucene.document.Document document,
int defaultValue) |
com.google.common.base.Function<org.apache.lucene.document.Document,T> |
getValueFunction() |
void |
removeFromDocument(org.apache.lucene.document.Document document) |
protected Integer |
valueFromField(org.apache.lucene.index.IndexableField field) |
protected org.apache.lucene.index.IndexableField |
valueToField(Integer value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToDocument, createTerm, getFieldId, getValue, getValueFunction, removeFromDocument
protected final String fieldId
protected final org.apache.lucene.document.Field.Store stored
protected IndexedEntityIntegerFieldImpl(@NotNull String fieldId, @NotNull org.apache.lucene.document.Field.Store stored)
@Nullable protected Integer valueFromField(@NotNull org.apache.lucene.index.IndexableField field)
@NotNull protected org.apache.lucene.index.IndexableField valueToField(@NotNull Integer value)
@NotNull public org.apache.lucene.index.Term createTerm(@NotNull Integer value)
createTerm
in interface IndexedEntityField<Integer>
@NotNull public org.apache.lucene.search.NumericRangeQuery<Integer> createQuery(@NotNull Integer value)
createQuery
in interface IndexedEntityField<Integer>
public int getValue(@NotNull org.apache.lucene.document.Document document, int defaultValue)
getValue
in interface IndexedEntityIntegerField
@NotNull public String getFieldId()
getFieldId
in interface IndexedEntityField<T>
@Nullable public T getValue(@NotNull org.apache.lucene.document.Document document)
getValue
in interface IndexedEntityField<T>
public void addToDocument(@NotNull org.apache.lucene.document.Document document, @Nullable T value)
addToDocument
in interface IndexedEntityField<T>
public void removeFromDocument(@NotNull org.apache.lucene.document.Document document)
removeFromDocument
in interface IndexedEntityField<T>
@NotNull public org.apache.lucene.index.Term createTerm(@NotNull org.apache.lucene.document.Document document)
createTerm
in interface IndexedEntityField<T>
@NotNull public com.google.common.base.Function<org.apache.lucene.document.Document,T> getValueFunction()
getValueFunction
in interface IndexedEntityField<T>
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.