public class IndexedEntityEnumFieldImpl<T extends Enum<T>> extends Object implements IndexedEntityEnumField<T>
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected EnumSet<IndexUtils.FieldProperties> |
properties |
Modifier | Constructor and Description |
---|---|
protected |
IndexedEntityEnumFieldImpl(Class<T> enumType,
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(T value) |
org.apache.lucene.index.Term |
createTerm(org.apache.lucene.document.Document document) |
org.apache.lucene.index.Term |
createTerm(T value) |
String |
getFieldId() |
protected org.apache.lucene.document.Field.Store |
getStorageFlag() |
T |
getValue(org.apache.lucene.document.Document document) |
com.google.common.base.Function<org.apache.lucene.document.Document,T> |
getValueFunction() |
void |
removeFromDocument(org.apache.lucene.document.Document document) |
protected T |
valueFromField(org.apache.lucene.index.IndexableField field) |
protected Collection<org.apache.lucene.index.IndexableField> |
valueToField(T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToDocument, createQuery, createTerm, createTerm, getFieldId, getValue, getValueFunction, removeFromDocument
protected final String name
protected final EnumSet<IndexUtils.FieldProperties> properties
protected IndexedEntityEnumFieldImpl(@NotNull Class<T> enumType, @NotNull String name, @NotNull IndexUtils.FieldProperties properties)
@Nullable protected T valueFromField(@NotNull org.apache.lucene.index.IndexableField field)
@NotNull protected Collection<org.apache.lucene.index.IndexableField> valueToField(@NotNull T value)
@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 T value)
createTerm
in interface IndexedEntityField<T>
@NotNull public org.apache.lucene.search.Query createQuery(@NotNull T value)
createQuery
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.