Module org.elasticsearch.server
Package org.elasticsearch.repositories
Record Class ResolvedRepositories
java.lang.Object
java.lang.Record
org.elasticsearch.repositories.ResolvedRepositories
- Record Components:
repositoryMetadata
- TheRepositoryMetadata
for the repositories that matched the description.missing
- The parts of the description which matched no repositories.
public record ResolvedRepositories(List<RepositoryMetadata> repositoryMetadata, List<String> missing)
extends Record
The result of calling
resolve(ClusterState, String[])
to resolve a description of some snapshot repositories (from a path
component of a request to the get-repositories or get-snapshots APIs) against the known repositories in the cluster state: the
RepositoryMetadata
for the extant repositories that match the description, together with a list of the parts of the description
that failed to match any known repository.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolvedRepositories
(List<RepositoryMetadata> repositoryMetadata, List<String> missing) Creates an instance of aResolvedRepositories
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
static boolean
isMatchAll
(String[] patterns) missing()
Returns the value of themissing
record component.Returns the value of therepositoryMetadata
record component.static ResolvedRepositories
resolve
(ClusterState state, String[] patterns) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
ALL_PATTERN
- See Also:
-
-
Constructor Details
-
ResolvedRepositories
Creates an instance of aResolvedRepositories
record class.- Parameters:
repositoryMetadata
- the value for therepositoryMetadata
record componentmissing
- the value for themissing
record component
-
-
Method Details
-
isMatchAll
-
resolve
-
hasMissingRepositories
public boolean hasMissingRepositories() -
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)
. -
repositoryMetadata
Returns the value of therepositoryMetadata
record component.- Returns:
- the value of the
repositoryMetadata
record component
-
missing
Returns the value of themissing
record component.- Returns:
- the value of the
missing
record component
-