case class ProcessorBuffer(watermarks: TrieMap[String, Long], calculators: TrieMap[(String, Long), GroupedCalculators], errors: TrieMap[(String, Long), Seq[AccumulatedErrors]], checkpoints: TrieMap[String, Checkpoint]) extends Product with Serializable
Processor state buffer used in streaming applications. Holds following metric calculation state:
- current watermarks per each stream that is being processed.
- state of metric calculators per each stream and each processing window withing a stream.
- metric error accumulators per each stream and each processing window withing a stream.
- watermarks
Watermarks per each stream.
- calculators
Calculators state per each stream and each window.
- errors
Metric errors per each stream and each window.
- checkpoints
Source checkpoints: map of checkpointId -> checkpoint.
- Note
Scala concurrent Trie Map is used to store results in a buffer as it is a thread safe and allows lock free access to its contents.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ProcessorBuffer
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
ProcessorBuffer(watermarks: TrieMap[String, Long], calculators: TrieMap[(String, Long), GroupedCalculators], errors: TrieMap[(String, Long), Seq[AccumulatedErrors]], checkpoints: TrieMap[String, Checkpoint])
- watermarks
Watermarks per each stream.
- calculators
Calculators state per each stream and each window.
- errors
Metric errors per each stream and each window.
- checkpoints
Source checkpoints: map of checkpointId -> checkpoint.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val calculators: TrieMap[(String, Long), GroupedCalculators]
- val checkpoints: TrieMap[String, Checkpoint]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errors: TrieMap[(String, Long), Seq[AccumulatedErrors]]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val watermarks: TrieMap[String, Long]