Interface Index
- All Superinterfaces:
Collection<Index.Record>
,Iterable<Index.Record>
Container value holding an arbitrary number of records referring to some data.
- Since:
- 5.2.11
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Single entry of an index providing some meta data on the item and a reference to the item itself. -
Method Summary
Modifier and TypeMethodDescription@NotNull Index.Record
Create a record from the given identifier.<T> @NotNull DataAccessSession<T>
createSession
(@NotNull SpecialistsBroker broker) Creates a session based on the definition and configuration of the underlying source.
-
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 toGomIndexSource.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
-