Module org.elasticsearch.server
Record Class ProjectRoutingInfo
java.lang.Object
java.lang.Record
org.elasticsearch.search.crossproject.ProjectRoutingInfo
public record ProjectRoutingInfo(ProjectId projectId, String projectType, String projectAlias, String organizationId, ProjectTags projectTags)
extends Record
Information about a project used for routing in cross-project search.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectRoutingInfo(ProjectId projectId, String projectType, String projectAlias, String organizationId, ProjectTags projectTags) Creates an instance of aProjectRoutingInforecord class.ProjectRoutingInfo(ProjectId projectId, ProjectTags projectTags) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theorganizationIdrecord component.Returns the value of theprojectAliasrecord component.Returns the value of theprojectIdrecord component.Returns the value of theprojectTagsrecord component.Returns the value of theprojectTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectRoutingInfo
-
ProjectRoutingInfo
public ProjectRoutingInfo(ProjectId projectId, String projectType, String projectAlias, String organizationId, ProjectTags projectTags) Creates an instance of aProjectRoutingInforecord class.- Parameters:
projectId- the value for theprojectIdrecord componentprojectType- the value for theprojectTyperecord componentprojectAlias- the value for theprojectAliasrecord componentorganizationId- the value for theorganizationIdrecord componentprojectTags- the value for theprojectTagsrecord component
-
-
Method Details
-
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). -
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
projectType
Returns the value of theprojectTyperecord component.- Returns:
- the value of the
projectTyperecord component
-
projectAlias
Returns the value of theprojectAliasrecord component.- Returns:
- the value of the
projectAliasrecord component
-
organizationId
Returns the value of theorganizationIdrecord component.- Returns:
- the value of the
organizationIdrecord component
-
projectTags
Returns the value of theprojectTagsrecord component.- Returns:
- the value of the
projectTagsrecord component
-