public interface TwoWayFieldBridge extends FieldBridge, StringBridge
FieldBridge
able to convert the index representation back into an object without losing information.
Any bridge expected to process a document id should implement this interface.Modifier and Type | Method and Description |
---|---|
Object |
get(String name,
Document document)
Build the element object from the
Document |
String |
objectToString(Object object)
Convert the object representation to a string.
|
set
Object get(String name, Document document)
Document
name
- field namedocument
- documentString objectToString(Object object)
objectToString
in interface StringBridge
object
- The object to index.null
, but
can be empty.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved