com.atlassian.bamboo.index.fields
Class IndexedEntityEnumFieldImpl<T extends java.lang.Enum<T>>
java.lang.Object
com.atlassian.bamboo.index.fields.IndexedEntityEnumFieldImpl<T>
- All Implemented Interfaces:
- IndexedEntityEnumField<T>, IndexedEntityField<T>
public class IndexedEntityEnumFieldImpl<T extends java.lang.Enum<T>>
- extends java.lang.Object
- implements IndexedEntityEnumField<T>
Field Summary |
protected java.lang.String |
fieldId
|
protected org.apache.lucene.document.Field.Store |
stored
|
Constructor Summary |
protected |
IndexedEntityEnumFieldImpl(java.lang.Class<T> enumType,
java.lang.String fieldId,
org.apache.lucene.document.Field.Store stored)
|
Method Summary |
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)
|
java.lang.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 T |
valueFromField(org.apache.lucene.index.IndexableField field)
|
protected org.apache.lucene.index.IndexableField |
valueToField(T value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fieldId
protected final java.lang.String fieldId
stored
protected final org.apache.lucene.document.Field.Store stored
IndexedEntityEnumFieldImpl
protected IndexedEntityEnumFieldImpl(@NotNull
java.lang.Class<T> enumType,
@NotNull
java.lang.String fieldId,
@NotNull
org.apache.lucene.document.Field.Store stored)
valueFromField
@Nullable
protected T valueFromField(@NotNull
org.apache.lucene.index.IndexableField field)
valueToField
@NotNull
protected org.apache.lucene.index.IndexableField valueToField(@NotNull
T value)
getFieldId
@NotNull
public java.lang.String getFieldId()
- Specified by:
getFieldId
in interface IndexedEntityField<T>
getValue
@Nullable
public T getValue(@NotNull
org.apache.lucene.document.Document document)
- Specified by:
getValue
in interface IndexedEntityField<T>
addToDocument
public void addToDocument(@NotNull
org.apache.lucene.document.Document document,
@Nullable
T value)
- Specified by:
addToDocument
in interface IndexedEntityField<T>
removeFromDocument
public void removeFromDocument(@NotNull
org.apache.lucene.document.Document document)
- Specified by:
removeFromDocument
in interface IndexedEntityField<T>
createTerm
@NotNull
public org.apache.lucene.index.Term createTerm(@NotNull
T value)
- Specified by:
createTerm
in interface IndexedEntityField<T>
createQuery
@NotNull
public org.apache.lucene.search.Query createQuery(@NotNull
T value)
- Specified by:
createQuery
in interface IndexedEntityField<T>
createTerm
@NotNull
public org.apache.lucene.index.Term createTerm(@NotNull
org.apache.lucene.document.Document document)
- Specified by:
createTerm
in interface IndexedEntityField<T>
getValueFunction
@NotNull
public com.google.common.base.Function<org.apache.lucene.document.Document,T> getValueFunction()
- Specified by:
getValueFunction
in interface IndexedEntityField<T>
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.