Class AfterReadEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.google.cloud.spring.data.spanner.core.mapping.event.LoadEvent
com.google.cloud.spring.data.spanner.core.mapping.event.AfterReadEvent
- All Implemented Interfaces:
Serializable
This event read operation on Cloud Spanner.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAfterReadEvent(Iterable source, com.google.cloud.spanner.KeySet keySet, SpannerReadOptions spannerReadOptions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.cloud.spanner.KeySetGet the keys that were read.Get the options that were used to conduct the read.inthashCode()Methods inherited from class com.google.cloud.spring.data.spanner.core.mapping.event.LoadEvent
getRetrievedEntitiesMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AfterReadEvent
public AfterReadEvent(Iterable source, com.google.cloud.spanner.KeySet keySet, SpannerReadOptions spannerReadOptions) Constructor.- Parameters:
source- The entities that were read from Cloud Spanner.This is nevernull.keySet- the keys that were read.spannerReadOptions- the options that were used to conduct the read. This may benullif the read operation wasn't a key-based read.
-
-
Method Details
-
getSpannerReadOptions
Get the options that were used to conduct the read.- Returns:
- This may be
nullif the read operation wasn't a key-based read.
-
getKeySet
public com.google.cloud.spanner.KeySet getKeySet()Get the keys that were read.- Returns:
- the key set.
-
equals
-
hashCode
public int hashCode()
-