Class AbstractTupleEvent

    • Field Detail

      • tuple

        protected final Tuple tuple
      • keyData

        protected final Tuple keyData
    • Constructor Detail

      • AbstractTupleEvent

        public AbstractTupleEvent​(Object source,
                                  Long key,
                                  Tuple tuple,
                                  Tuple keyData,
                                  List<TupleFieldComparator> fieldComparators)
        Parameters:
        source - the source that generated the event
        key - the key of the tuple
        tuple - the tuple
        fieldComparators - TODO
    • Method Detail

      • getKey

        public final Long getKey()
        Deprecated.
        since 1.6, use getKeyValue() instead; certain table types and queries have undefined return values
        Get the key of the tuple in this event, if applicable
        Returns:
        the key of the tuple as a Long, if applicable
      • getTuple

        public final Tuple getTuple()
        Get the tuple
        Returns:
        the tuple
      • getKeyValue

        public final KeyValue getKeyValue()
        This replaces getKey() now that there is support for complex keys
        Returns:
        A representative of this Tuple's value for the key, based on whatever the key field(s) are for this Table.
        Since:
        1.6