public class DbndSparkQueryExecutionListener
extends java.lang.Object
implements org.apache.spark.sql.util.QueryExecutionListener
| Constructor and Description |
|---|
DbndSparkQueryExecutionListener() |
DbndSparkQueryExecutionListener(DbndWrapper dbnd) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
exctractPath(java.lang.String path)
Extract data path from spark query plan.
|
protected java.util.List<org.apache.spark.sql.execution.SparkPlan> |
getAllChildren(org.apache.spark.sql.execution.SparkPlan root)
DFS across spark plan nodes.
|
protected void |
log(java.lang.String path,
DatasetOperationType operationType,
org.apache.spark.sql.types.StructType datasetSchema,
long rows) |
void |
onFailure(java.lang.String funcName,
org.apache.spark.sql.execution.QueryExecution qe,
java.lang.Exception exception) |
void |
onSuccess(java.lang.String funcName,
org.apache.spark.sql.execution.QueryExecution qe,
long durationNs) |
public DbndSparkQueryExecutionListener(DbndWrapper dbnd)
public DbndSparkQueryExecutionListener()
public void onSuccess(java.lang.String funcName,
org.apache.spark.sql.execution.QueryExecution qe,
long durationNs)
onSuccess in interface org.apache.spark.sql.util.QueryExecutionListenerprotected void log(java.lang.String path,
DatasetOperationType operationType,
org.apache.spark.sql.types.StructType datasetSchema,
long rows)
protected java.lang.String exctractPath(java.lang.String path)
path - protected java.util.List<org.apache.spark.sql.execution.SparkPlan> getAllChildren(org.apache.spark.sql.execution.SparkPlan root)
root - public void onFailure(java.lang.String funcName,
org.apache.spark.sql.execution.QueryExecution qe,
java.lang.Exception exception)
onFailure in interface org.apache.spark.sql.util.QueryExecutionListener