Class BatchInfo
Object
org.apache.spark.streaming.scheduler.BatchInfo
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Serializable
:: DeveloperApi ::
Class having information on completed batches.
param: batchTime Time of the batch
param: streamIdToInputInfo A map of input stream id to its input info
param: submissionTime Clock time of when jobs of this batch was submitted to
the streaming scheduler queue
param: processingStartTime Clock time of when the first job of this batch started processing
param: processingEndTime Clock time of when the last job of this batch finished processing
param: outputOperationInfos The output operations in this batch
- See Also:
-
Constructor Summary
ConstructorDescriptionBatchInfo
(Time batchTime, scala.collection.immutable.Map<Object, StreamInputInfo> streamIdToInputInfo, long submissionTime, scala.Option<Object> processingStartTime, scala.Option<Object> processingEndTime, scala.collection.immutable.Map<Object, OutputOperationInfo> outputOperationInfos) -
Method Summary
Modifier and TypeMethodDescriptionabstract static R
apply
(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) long
The number of recorders received by the receivers in this batch.scala.collection.immutable.Map<Object,
OutputOperationInfo> scala.Option<Object>
Time taken for the all jobs of this batch to finish processing from the time they started processing.scala.Option<Object>
scala.Option<Object>
scala.Option<Object>
Time taken for the first job of this batch to start processing from the time this batch was submitted to the streaming scheduler.scala.collection.immutable.Map<Object,
StreamInputInfo> long
static String
toString()
scala.Option<Object>
Time taken for all the jobs of this batch to finish processing from the time they were submitted.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
BatchInfo
public BatchInfo(Time batchTime, scala.collection.immutable.Map<Object, StreamInputInfo> streamIdToInputInfo, long submissionTime, scala.Option<Object> processingStartTime, scala.Option<Object> processingEndTime, scala.collection.immutable.Map<Object, OutputOperationInfo> outputOperationInfos)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) -
toString
-
batchTime
-
streamIdToInputInfo
-
submissionTime
public long submissionTime() -
processingStartTime
-
processingEndTime
-
outputOperationInfos
-
schedulingDelay
Time taken for the first job of this batch to start processing from the time this batch was submitted to the streaming scheduler. Essentially, it isprocessingStartTime
-submissionTime
.- Returns:
- (undocumented)
-
processingDelay
Time taken for the all jobs of this batch to finish processing from the time they started processing. Essentially, it isprocessingEndTime
-processingStartTime
.- Returns:
- (undocumented)
-
totalDelay
Time taken for all the jobs of this batch to finish processing from the time they were submitted. Essentially, it isprocessingDelay
+schedulingDelay
.- Returns:
- (undocumented)
-
numRecords
public long numRecords()The number of recorders received by the receivers in this batch.- Returns:
- (undocumented)
-