Class KeyTransformationHandlerIdentifierBridge

  • All Implemented Interfaces:
    AutoCloseable, org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>

    public class KeyTransformationHandlerIdentifierBridge
    extends Object
    implements org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>
    An IdentifierBridge to map cache keys to the document identifiers.
    Author:
    Fabio Massimo Ercoli
    • Method Detail

      • createReference

        public static org.hibernate.search.engine.environment.bean.BeanReference<? extends org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>> createReference​(org.infinispan.query.backend.KeyTransformationHandler keyTransformationHandler)
      • toDocumentIdentifier

        public String toDocumentIdentifier​(Object propertyValue,
                                           org.hibernate.search.mapper.pojo.bridge.runtime.IdentifierBridgeToDocumentIdentifierContext context)
        Specified by:
        toDocumentIdentifier in interface org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>
      • fromDocumentIdentifier

        public Object fromDocumentIdentifier​(String documentIdentifier,
                                             org.hibernate.search.mapper.pojo.bridge.runtime.IdentifierBridgeFromDocumentIdentifierContext context)
        Specified by:
        fromDocumentIdentifier in interface org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>