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
ConstructorDescriptionAfterReadEvent
(Iterable source, com.google.cloud.spanner.KeySet keySet, SpannerReadOptions spannerReadOptions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.cloud.spanner.KeySet
Get the keys that were read.Get the options that were used to conduct the read.int
hashCode()
Methods inherited from class com.google.cloud.spring.data.spanner.core.mapping.event.LoadEvent
getRetrievedEntities
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods 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 benull
if 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
null
if 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()
-