final case class Batch[+T](ledgerEnd: LedgerEnd, batch: T, batchSize: Int, offsetsUpdates: Vector[(Offset, Update)], activeContracts: LinkedHashMap[SynCon, ActivationRef], missingDeactivatedActivations: Map[SynCon, Option[ActivationRef]], batchTraceContext: TraceContext) extends Product with Serializable
Batch wraps around a T-typed batch, enriching it with processing relevant information.
- ledgerEnd
The LedgerEnd for the batch. Needed for tail ingestion.
- batch
The batch of variable type.
- batchSize
Size of the batch measured in number of updates. Needed for metrics population.
- offsetsUpdates
The Updates with Offsets, the source of the batch.
- activeContracts
The active contracts at the head of the ledger - the ones which are not persisted yet. Key is the Synchronizer ID of activation and the Contract ID, and the value is the event_sequential_id of the activation.
- missingDeactivatedActivations
The set of deactivations need to be looked up at dbPrepare stage. It is optional as this is where the lookup-results are stored as well.
- batchTraceContext
The TraceContext constructed for the whole batch.
- Alphabetic
- By Inheritance
- Batch
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Batch(ledgerEnd: LedgerEnd, batch: T, batchSize: Int, offsetsUpdates: Vector[(Offset, Update)], activeContracts: LinkedHashMap[SynCon, ActivationRef], missingDeactivatedActivations: Map[SynCon, Option[ActivationRef]], batchTraceContext: TraceContext)
- ledgerEnd
The LedgerEnd for the batch. Needed for tail ingestion.
- batch
The batch of variable type.
- batchSize
Size of the batch measured in number of updates. Needed for metrics population.
- offsetsUpdates
The Updates with Offsets, the source of the batch.
- activeContracts
The active contracts at the head of the ledger - the ones which are not persisted yet. Key is the Synchronizer ID of activation and the Contract ID, and the value is the event_sequential_id of the activation.
- missingDeactivatedActivations
The set of deactivations need to be looked up at dbPrepare stage. It is optional as this is where the lookup-results are stored as well.
- batchTraceContext
The TraceContext constructed for the whole batch.
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
- val activeContracts: LinkedHashMap[SynCon, ActivationRef]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val batch: T
- val batchSize: Int
- val batchTraceContext: TraceContext
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val ledgerEnd: LedgerEnd
- val missingDeactivatedActivations: Map[SynCon, Option[ActivationRef]]
- 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()
- val offsetsUpdates: Vector[(Offset, Update)]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()