public class IndexedEntityDateFieldImpl extends Object implements IndexedEntityDateField
Modifier and Type | Field and Description |
---|---|
protected String |
fieldId |
protected org.apache.lucene.document.Field.Store |
stored |
Modifier | Constructor and Description |
---|---|
protected |
IndexedEntityDateFieldImpl(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.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() |
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 Date |
valueFromField(org.apache.lucene.index.IndexableField field) |
protected org.apache.lucene.index.IndexableField |
valueToField(Date value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToDocument, createQuery, createTerm, createTerm, getFieldId, getValue, getValueFunction, removeFromDocument
protected final String fieldId
protected final org.apache.lucene.document.Field.Store stored
protected IndexedEntityDateFieldImpl(@NotNull String fieldId, @NotNull org.apache.lucene.document.Field.Store stored)
@Nullable protected Date valueFromField(@NotNull org.apache.lucene.index.IndexableField field)
@NotNull protected org.apache.lucene.index.IndexableField valueToField(@NotNull Date 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>
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.