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

public class AfterReadEvent extends LoadEvent
This event read operation on Cloud Spanner.
See Also:
  • 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 never null.
      keySet - the keys that were read.
      spannerReadOptions - the options that were used to conduct the read. This may be null if the read operation wasn't a key-based read.
  • Method Details

    • getSpannerReadOptions

      public SpannerReadOptions 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

      public boolean equals(Object o)
      Overrides:
      equals in class LoadEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class LoadEvent