Record Class ListingCacheKey
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.cache.ListingCacheKey
public record ListingCacheKey(String scheme, String bucketOrContainer, String prefixAndGlob, String endpoint, String region, long credentialHashH1, long credentialHashH2)
extends Record
Cache key for file listing results. Includes a 128-bit Murmur3 hash of credential
values (NOT the credential keys) for isolation between users with different credentials.
Endpoint and region are included because the same bucket on different endpoints
contains different objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebucketOrContainerrecord component.static ListingCacheKeylongReturns the value of thecredentialHashH1record component.longReturns the value of thecredentialHashH2record component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprefixAndGlobrecord component.region()Returns the value of theregionrecord component.scheme()Returns the value of theschemerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListingCacheKey
public ListingCacheKey(String scheme, String bucketOrContainer, String prefixAndGlob, String endpoint, String region, long credentialHashH1, long credentialHashH2) Creates an instance of aListingCacheKeyrecord class.- Parameters:
scheme- the value for theschemerecord componentbucketOrContainer- the value for thebucketOrContainerrecord componentprefixAndGlob- the value for theprefixAndGlobrecord componentendpoint- the value for theendpointrecord componentregion- the value for theregionrecord componentcredentialHashH1- the value for thecredentialHashH1record componentcredentialHashH2- the value for thecredentialHashH2record component
-
-
Method Details
-
build
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
bucketOrContainer
Returns the value of thebucketOrContainerrecord component.- Returns:
- the value of the
bucketOrContainerrecord component
-
prefixAndGlob
Returns the value of theprefixAndGlobrecord component.- Returns:
- the value of the
prefixAndGlobrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
credentialHashH1
public long credentialHashH1()Returns the value of thecredentialHashH1record component.- Returns:
- the value of the
credentialHashH1record component
-
credentialHashH2
public long credentialHashH2()Returns the value of thecredentialHashH2record component.- Returns:
- the value of the
credentialHashH2record component
-