All Superinterfaces:
Collection<Index.Record>, Iterable<Index.Record>

public interface Index extends Collection<Index.Record>
Container value holding an arbitrary number of records referring to some data.
Since:
5.2.11
See Also:
  • Method Details

    • createSession

      @ApiDoc(comment="Creates a session based on the definition and configuration of the underlying source.", since="5.2.191103") @NotNull <T> @NotNull DataAccessSession<T> createSession(@NotNull @NotNull SpecialistsBroker broker)
      Creates a session based on the definition and configuration of the underlying source. NOTE: For a more generic use (e.g. for batch-processing multiple indexes using the same template) please refer to GomIndexSource.createSession(SpecialistsBroker, boolean) instead.
      Type Parameters:
      T - The type of data provided by the source.
      Parameters:
      broker - A broker providing contextual knowledge.
      Returns:
      A new session.
      Since:
      5.2.191103
    • create

      @ApiDoc(comment="Create a record from the given identifier.", since="5.2.13") @NotNull @NotNull Index.Record create(String identifier)
      Create a record from the given identifier.
      Note: The index does not validate a given identifier wrt. the index's source.
      Parameters:
      identifier - The identifier of the element to be referred to.
      Returns:
      A record on the identified element.
      Since:
      5.2.13