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,
org.apache.lucene.document.Document document)
Build the element object from the
Document |
String |
objectToString(Object object)
Convert the object representation to a string.
|
setObject get(String name, org.apache.lucene.document.Document document)
Documentname - field namedocument - documentString objectToString(Object object)
objectToString in interface StringBridgeobject - The object to index.null, but
can be empty.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.