Interface TwoWayFieldBridge

All Superinterfaces:
FieldBridge
All Known Implementing Classes:
ContextualException2WayBridge, DoubleNumericFieldBridge, FloatNumericFieldBridge, IntegerNumericFieldBridge, LongNumericFieldBridge, NullEncodingTwoWayFieldBridge, NumericFieldBridge, TwoWayString2FieldBridgeAdaptor

public interface TwoWayFieldBridge extends FieldBridge
A 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String name, Document document)
    Build the element object from the Document
    Convert the object representation to a string.

    Methods inherited from interface org.hibernate.search.bridge.FieldBridge

    set
  • Method Details

    • get

      Object get(String name, Document document)
      Build the element object from the Document
      Parameters:
      name - field name
      document - document
      Returns:
      The return value is the entity property value.
    • objectToString

      String objectToString(Object object)
      Convert the object representation to a string.
      Parameters:
      object - The object to index.
      Returns:
      string (index) representation of the specified object. Must not be null, but can be empty.