public class IndexedEntityLongFieldImpl extends Object implements IndexedEntityLongField
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected EnumSet<IndexUtils.FieldProperties> |
properties |
Modifier | Constructor and Description |
---|---|
protected |
IndexedEntityLongFieldImpl(String name,
IndexUtils.FieldProperties... properties) |
Modifier and Type | Method and Description |
---|---|
void |
addToDocument(org.apache.lucene.document.Document document,
T value) |
org.apache.lucene.search.Query |
createQuery(Long value) |
org.apache.lucene.index.Term |
createTerm(org.apache.lucene.document.Document document) |
org.apache.lucene.index.Term |
createTerm(Long value) |
String |
getFieldId() |
protected org.apache.lucene.document.Field.Store |
getStorageFlag() |
T |
getValue(org.apache.lucene.document.Document document) |
long |
getValue(org.apache.lucene.document.Document document,
long defaultValue) |
com.google.common.base.Function<org.apache.lucene.document.Document,T> |
getValueFunction() |
void |
removeFromDocument(org.apache.lucene.document.Document document) |
protected Long |
valueFromField(org.apache.lucene.index.IndexableField field) |
protected Collection<org.apache.lucene.index.IndexableField> |
valueToField(Long value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToDocument, createTerm, getFieldId, getValue, getValueFunction, removeFromDocument
protected final String name
protected final EnumSet<IndexUtils.FieldProperties> properties
protected IndexedEntityLongFieldImpl(@NotNull String name, IndexUtils.FieldProperties... properties)
@Nullable protected Long valueFromField(@NotNull org.apache.lucene.index.IndexableField field)
@NotNull protected Collection<org.apache.lucene.index.IndexableField> valueToField(@NotNull Long value)
public long getValue(@NotNull org.apache.lucene.document.Document document, long defaultValue)
getValue
in interface IndexedEntityLongField
@NotNull public org.apache.lucene.index.Term createTerm(@NotNull Long value)
createTerm
in interface IndexedEntityField<Long>
@NotNull public org.apache.lucene.search.Query createQuery(@NotNull Long value)
createQuery
in interface IndexedEntityField<Long>
@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>
protected org.apache.lucene.document.Field.Store getStorageFlag()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.