Package org.restheart.mongodb.db
Record Class GetCollectionCacheKey
java.lang.Object
java.lang.Record
org.restheart.mongodb.db.GetCollectionCacheKey
public record GetCollectionCacheKey(Optional<com.mongodb.client.ClientSession> session, com.mongodb.client.MongoCollection<org.bson.BsonDocument> collection, org.bson.BsonDocument sort, org.bson.BsonDocument filter, org.bson.BsonDocument keys, org.bson.BsonDocument hint, int from, int to, long cursorId, boolean exhausted)
extends Record
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Constructor Summary
ConstructorsConstructorDescriptionGetCollectionCacheKey(Optional<com.mongodb.client.ClientSession> session, com.mongodb.client.MongoCollection<org.bson.BsonDocument> collection, org.bson.BsonDocument sort, org.bson.BsonDocument filter, org.bson.BsonDocument keys, org.bson.BsonDocument hint, int from, int to, long cursorId, boolean exhausted) Creates an instance of aGetCollectionCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GetCollectionCacheKeycom.mongodb.client.MongoCollection<org.bson.BsonDocument>Returns the value of thecollectionrecord component.longcursorId()Returns the value of thecursorIdrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexhaustedrecord component.org.bson.BsonDocumentfilter()Returns the value of thefilterrecord component.intfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.org.bson.BsonDocumenthint()Returns the value of thehintrecord component.org.bson.BsonDocumentkeys()Returns the value of thekeysrecord component.Optional<com.mongodb.client.ClientSession>session()Returns the value of thesessionrecord component.org.bson.BsonDocumentsort()Returns the value of thesortrecord component.intto()Returns the value of thetorecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
GetCollectionCacheKey
public GetCollectionCacheKey(Optional<com.mongodb.client.ClientSession> session, com.mongodb.client.MongoCollection<org.bson.BsonDocument> collection, org.bson.BsonDocument sort, org.bson.BsonDocument filter, org.bson.BsonDocument keys, org.bson.BsonDocument hint, int from, int to, long cursorId, boolean exhausted) Creates an instance of aGetCollectionCacheKeyrecord class.- Parameters:
session- the value for thesessionrecord componentcollection- the value for thecollectionrecord componentsort- the value for thesortrecord componentfilter- the value for thefilterrecord componentkeys- the value for thekeysrecord componenthint- the value for thehintrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentcursorId- the value for thecursorIdrecord componentexhausted- the value for theexhaustedrecord component
-
-
Method Details
-
clone
- Parameters:
key-
-
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 '=='. -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
collection
public com.mongodb.client.MongoCollection<org.bson.BsonDocument> collection()Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
sort
public org.bson.BsonDocument sort()Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-
filter
public org.bson.BsonDocument filter()Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
keys
public org.bson.BsonDocument keys()Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-
hint
public org.bson.BsonDocument hint()Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-
from
public int from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
public int to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
cursorId
public long cursorId()Returns the value of thecursorIdrecord component.- Returns:
- the value of the
cursorIdrecord component
-
exhausted
public boolean exhausted()Returns the value of theexhaustedrecord component.- Returns:
- the value of the
exhaustedrecord component
-