Class ElasticsearchDocumentReference

java.lang.Object
org.hibernate.search.backend.elasticsearch.search.common.impl.ElasticsearchDocumentReference
All Implemented Interfaces:
DocumentReference

public class ElasticsearchDocumentReference extends Object implements DocumentReference
  • Constructor Details

    • ElasticsearchDocumentReference

      public ElasticsearchDocumentReference(String typeName, String id)
  • Method Details

    • typeName

      public String typeName()
      Specified by:
      typeName in interface DocumentReference
      Returns:
      The name of the type of the referenced document. The type name is mapper-specific. For example, in the Hibernate ORM mapper, it will be the JPA entity name.
    • id

      public String id()
      Specified by:
      id in interface DocumentReference
      Returns:
      The identifier of the referenced document. The identifier is returned as it was generated during document building, i.e. it does not take into account backend-specific transformations such as appending a tenant ID when using multi-tenancy.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object