Packages

c

org.apache.spark.sql.execution.streaming.operators.stateful.join

SymmetricHashJoinStateManagerV2

class SymmetricHashJoinStateManagerV2 extends SymmetricHashJoinStateManager

Streaming join state manager that uses 1 state store with virtual column families enabled. Instead of creating a new state store per join side and store type, this manager uses column families to distinguish data between the original 4 state stores.

Linear Supertypes
SymmetricHashJoinStateManager, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SymmetricHashJoinStateManagerV2
  2. SymmetricHashJoinStateManager
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SymmetricHashJoinStateManagerV2(joinSide: JoinSide, inputValueAttributes: Seq[Attribute], joinKeys: Seq[Expression], stateInfo: Option[StatefulOperatorStateInfo], storeConf: StateStoreConf, hadoopConf: Configuration, partitionId: Int, keyToNumValuesStateStoreCkptId: Option[String], keyWithIndexToValueStateStoreCkptId: Option[String], stateFormatVersion: Int, skippedNullValueCount: Option[SQLMetric] = None, useStateStoreCoordinator: Boolean = true, snapshotOptions: Option[SnapshotOptions] = None, joinStoreGenerator: JoinStateManagerStoreGenerator)

Type Members

  1. class KeyToNumValuesStore extends StateStoreHandler

    A wrapper around a StateStore that stores [key -> number of values].

    A wrapper around a StateStore that stores [key -> number of values].

    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  2. class KeyWithIndexToValueStore extends StateStoreHandler

    A wrapper around a StateStore that stores the mapping; the mapping depends on the state format version - please refer implementations of KeyWithIndexToValueRowConverter.

    A wrapper around a StateStore that stores the mapping; the mapping depends on the state format version - please refer implementations of KeyWithIndexToValueRowConverter.

    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  3. abstract class StateStoreHandler extends Logging

    Helper trait for invoking common functionalities of a state store.

    Helper trait for invoking common functionalities of a state store.

    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  4. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. def abortIfNeeded(): Unit

    Abort any changes to the state store if needed

    Abort any changes to the state store if needed

    Definition Classes
    SymmetricHashJoinStateManagerV2SymmetricHashJoinStateManager
  6. def append(key: UnsafeRow, value: UnsafeRow, matched: Boolean): Unit

    Append a new value to the key

    Append a new value to the key

    Definition Classes
    SymmetricHashJoinStateManager
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. def commit(): Unit

    Commit all the changes to the state store

    Commit all the changes to the state store

    Definition Classes
    SymmetricHashJoinStateManagerV2SymmetricHashJoinStateManager
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def get(key: UnsafeRow): Iterator[UnsafeRow]

    Get all the values of a key

    Get all the values of a key

    Definition Classes
    SymmetricHashJoinStateManager
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def getInternalRowOfKeyWithIndex(currentKey: UnsafeRow): InternalRow

    Projects the key of unsafe row to internal row for printable log message.

    Projects the key of unsafe row to internal row for printable log message.

    Definition Classes
    SymmetricHashJoinStateManager
  15. def getJoinedRows(key: UnsafeRow, generateJoinedRow: (InternalRow) => JoinedRow, predicate: (JoinedRow) => Boolean, excludeRowsAlreadyMatched: Boolean = false): Iterator[JoinedRow]

    Get all the matched values for given join condition, with marking matched.

    Get all the matched values for given join condition, with marking matched. This method is designed to mark joined rows properly without exposing internal index of row.

    excludeRowsAlreadyMatched

    Do not join with rows already matched previously. This is used for right side of left semi join in StreamingSymmetricHashJoinExec only.

    Definition Classes
    SymmetricHashJoinStateManager
  16. def getLatestCheckpointInfo(): JoinerStateStoreCkptInfo

    Get state store checkpoint information of the state store used for this joiner, after they finished data processing.

    Get state store checkpoint information of the state store used for this joiner, after they finished data processing.

    For SymmetricHashJoinStateManagerV2, this returns the information of the single store used for the entire joiner operator. Both fields of JoinerStateStoreCkptInfo will be identical.

    Definition Classes
    SymmetricHashJoinStateManagerV2SymmetricHashJoinStateManager
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  19. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  22. def iterator: Iterator[KeyToValuePair]

    Perform a full scan to provide all available data.

    Perform a full scan to provide all available data.

    This produces an iterator over the (key, value, match) tuples. Callers are expected to consume fully to clean up underlying iterators correctly.

    Definition Classes
    SymmetricHashJoinStateManager
  23. val keyAttributes: Seq[AttributeReference]
    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  24. val keySchema: StructType
    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  25. val keyToNumValues: KeyToNumValuesStore
    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  26. val keyWithIndexToValue: KeyWithIndexToValueStore
    Attributes
    protected
    Definition Classes
    SymmetricHashJoinStateManager
  27. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  28. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  42. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def metrics: StateStoreMetrics

    Get the state store metrics from the state store manager

    Get the state store metrics from the state store manager

    Definition Classes
    SymmetricHashJoinStateManagerV2SymmetricHashJoinStateManager
  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  54. def removeByKeyCondition(removalCondition: (UnsafeRow) => Boolean): Iterator[KeyToValuePair]

    Remove using a predicate on keys.

    Remove using a predicate on keys.

    This produces an iterator over the (key, value, matched) tuples satisfying condition(key), where the underlying store is updated as a side-effect of producing next.

    This implies the iterator must be consumed fully without any other operations on this manager or the underlying store being interleaved.

    Definition Classes
    SymmetricHashJoinStateManager
  55. def removeByValueCondition(removalCondition: (UnsafeRow) => Boolean): Iterator[KeyToValuePair]

    Remove using a predicate on values.

    Remove using a predicate on values.

    At a high level, this produces an iterator over the (key, value, matched) tuples such that value satisfies the predicate, where producing an element removes the value from the state store and producing all elements with a given key updates it accordingly.

    This implies the iterator must be consumed fully without any other operations on this manager or the underlying store being interleaved.

    Definition Classes
    SymmetricHashJoinStateManager
  56. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  57. def toString(): String
    Definition Classes
    AnyRef → Any
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped