public class DbndLogger
extends java.lang.Object
| Constructor and Description |
|---|
DbndLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
logDataframe(java.lang.String key,
java.lang.Object value,
boolean withHistograms)
Report Spark dataframe.
|
static void |
logDataframe(java.lang.String key,
java.lang.Object value,
HistogramRequest histogramRequest)
Report Spark dataframe.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
org.apache.spark.sql.Dataset<?> data)
Report success dataset operation.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data)
Report dataset operation.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
boolean withPreview)
Report dataset operation.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
boolean withPreview,
boolean withSchema)
Report dataset operation.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
boolean withPreview,
boolean withSchema,
java.lang.Boolean withPartition)
Report dataset operation.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
java.lang.Throwable error)
Report dataset operation and error operation if occurred.
|
static void |
logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
java.lang.Throwable error,
boolean withPartition)
Report dataset operation and error operation if occurred.
|
static void |
logMetric(java.lang.String key,
java.lang.Object value)
Report single metric.
|
public static void logMetric(java.lang.String key,
java.lang.Object value)
key - metric keyvalue - metric value. Value will be converted using following rules:
integers and doubles will be converted to integers and doubles
strings will be converted to strings
spark datasets will generate preview
toString() will be called for the rest of the typespublic static void logDataframe(java.lang.String key,
java.lang.Object value,
boolean withHistograms)
key - value - withHistograms - public static void logDataframe(java.lang.String key,
java.lang.Object value,
HistogramRequest histogramRequest)
key - value - histogramRequest - public static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
org.apache.spark.sql.Dataset<?> data)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writedata - spark datasetpublic static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writestatus - operation status — success/failuredata - spark datasetpublic static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
java.lang.Throwable error)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writestatus - operation status — success/failuredata - spark dataseterror - error when operation was failedpublic static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
java.lang.Throwable error,
boolean withPartition)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writestatus - operation status — success/failuredata - spark dataseterror - error when operation was failedwithPartition - pass true if you want to remove partition path from dataset path or false if you want to keep thempublic static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
boolean withPreview)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writestatus - operation status — success/failuredata - spark datasetwithPreview - pass true if you want to generate preview (may impact performance)public static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
boolean withPreview,
boolean withSchema)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writestatus - operation status — success/failuredata - spark datasetwithPreview - pass true if you want to generate preview (may impact performance)withSchema - pass true if you want to calculate dataset schemapublic static void logDatasetOperation(java.lang.String path,
DatasetOperationType type,
DatasetOperationStatus status,
org.apache.spark.sql.Dataset<?> data,
boolean withPreview,
boolean withSchema,
java.lang.Boolean withPartition)
path - data path (S3, filesystem, GCS etc)type - operation type — read/writestatus - operation status — success/failuredata - spark datasetwithPreview - pass true if you want to generate preview (may impact performance)withSchema - pass true if you want to calculate dataset schemawithPartition - pass true if you want to remove partition path from dataset path or false if you want to keep them