public class DocumentIdentifierTransformer extends MarshalUtils.GenericTransformer<org.apache.lucene.document.Document,Long> implements org.apache.commons.collections.Transformer
| Modifier and Type | Field and Description |
|---|---|
static String |
DOCUMENT_IDENTIFIER_FIELDNAME
The Field name in the
Document that identifies it as the entity identifierUsing this field we can convert a Index Document to the entity |
| Constructor and Description |
|---|
DocumentIdentifierTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Long |
transform(org.apache.lucene.document.Document doc,
Long arg1)
Pass parameters to construct the new Object via a template representation
of it.
|
Object |
transform(Object input) |
public static final String DOCUMENT_IDENTIFIER_FIELDNAME
Document that identifies it as the entity identifierDocument to the entitypublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic Long transform(org.apache.lucene.document.Document doc, Long arg1)
MarshalUtils.GenericTransformertransform in class MarshalUtils.GenericTransformer<org.apache.lucene.document.Document,Long>doc - 1arg1 - as param 2Copyright © 2018. All rights reserved.