public class StreamingQueryStatus
extends Object
StreamingQuery
.
param: name Name of the query. This name is unique across all active queries. param: id Id of the query. This id is unique across all queries that have been started in the current process. param: timestamp Timestamp (ms) of when this query was generated. param: inputRate Current rate (rows/sec) at which data is being generated by all the sources. param: processingRate Current rate (rows/sec) at which the query is processing data from all the sources. param: latency Current average latency between the data being available in source and the sink writing the corresponding output. param: sourceStatuses Current statuses of the sources. param: sinkStatus Current status of the sink. param: triggerDetails Low-level details of the currently active trigger (e.g. number of rows processed in trigger, latency of intermediate steps, etc.). If no trigger is active, then it will have details of the last completed trigger.
Modifier and Type | Method and Description |
---|---|
static StreamingQueryStatus |
apply(String name,
long id,
long timestamp,
double inputRate,
double processingRate,
scala.Option<Object> latency,
SourceStatus[] sourceStatuses,
SinkStatus sinkStatus,
scala.collection.immutable.Map<String,String> triggerDetails) |
long |
id() |
static String |
indent(scala.collection.Iterable<String> strings) |
static String |
indent(String string) |
double |
inputRate() |
String |
json()
The compact JSON representation of this status.
|
scala.Option<Object> |
latency() |
String |
name() |
String |
prettyJson()
The pretty (i.e.
|
double |
processingRate() |
SinkStatus |
sinkStatus() |
SourceStatus[] |
sourceStatuses() |
static StreamingQueryStatus |
testStatus()
Create an instance of status for python testing
|
long |
timestamp() |
String |
toString() |
java.util.Map<String,String> |
triggerDetails() |
public static StreamingQueryStatus apply(String name, long id, long timestamp, double inputRate, double processingRate, scala.Option<Object> latency, SourceStatus[] sourceStatuses, SinkStatus sinkStatus, scala.collection.immutable.Map<String,String> triggerDetails)
public static String indent(scala.collection.Iterable<String> strings)
public static String indent(String string)
public static StreamingQueryStatus testStatus()
public String name()
public long id()
public long timestamp()
public double inputRate()
public double processingRate()
public scala.Option<Object> latency()
public SourceStatus[] sourceStatuses()
public SinkStatus sinkStatus()
public java.util.Map<String,String> triggerDetails()
public String json()
public String prettyJson()
public String toString()
toString
in class Object