Package org.nuxeo.ecm.core.search
Record Class SearchIndex
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.search.SearchIndex
A SearchIndex is a tuple that designates a SearchClient, an index and a repository.
- Since:
- 2025.0
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndex(String repository, String client, String index) Creates an instance of aSearchIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.static SearchIndexReturns the value of therepositoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchIndex
Creates an instance of aSearchIndexrecord class.- Parameters:
repository- the value for therepositoryrecord componentclient- the value for theclientrecord componentindex- the value for theindexrecord component
-
-
Method Details
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-