Class TrinoTelemetryConfig
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.TrinoTelemetryConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrinoTelemetryConfig>
public final class TrinoTelemetryConfig
extends Object
implements com.azure.json.JsonSerializable<TrinoTelemetryConfig>
Trino user telemetry definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrinoTelemetryConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrinoTelemetryConfig from the JsonReader.Get the hivecatalogName property: Hive Catalog name used to mount external tables on the logs written by trino, if not specified there tables are not created.Get the hivecatalogSchema property: Schema of the above catalog to use, to mount query logs as external tables, if not specified tables will be mounted under schema trinologs.Get the partitionRetentionInDays property: Retention period for query log table partitions, this doesn't have any affect on actual data.path()Get the path property: Azure storage location of the blobs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHivecatalogName(String hivecatalogName) Set the hivecatalogName property: Hive Catalog name used to mount external tables on the logs written by trino, if not specified there tables are not created.withHivecatalogSchema(String hivecatalogSchema) Set the hivecatalogSchema property: Schema of the above catalog to use, to mount query logs as external tables, if not specified tables will be mounted under schema trinologs.withPartitionRetentionInDays(Integer partitionRetentionInDays) Set the partitionRetentionInDays property: Retention period for query log table partitions, this doesn't have any affect on actual data.Set the path property: Azure storage location of the blobs.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TrinoTelemetryConfig
public TrinoTelemetryConfig()Creates an instance of TrinoTelemetryConfig class.
-
-
Method Details
-
hivecatalogName
Get the hivecatalogName property: Hive Catalog name used to mount external tables on the logs written by trino, if not specified there tables are not created.- Returns:
- the hivecatalogName value.
-
withHivecatalogName
Set the hivecatalogName property: Hive Catalog name used to mount external tables on the logs written by trino, if not specified there tables are not created.- Parameters:
hivecatalogName- the hivecatalogName value to set.- Returns:
- the TrinoTelemetryConfig object itself.
-
hivecatalogSchema
Get the hivecatalogSchema property: Schema of the above catalog to use, to mount query logs as external tables, if not specified tables will be mounted under schema trinologs.- Returns:
- the hivecatalogSchema value.
-
withHivecatalogSchema
Set the hivecatalogSchema property: Schema of the above catalog to use, to mount query logs as external tables, if not specified tables will be mounted under schema trinologs.- Parameters:
hivecatalogSchema- the hivecatalogSchema value to set.- Returns:
- the TrinoTelemetryConfig object itself.
-
partitionRetentionInDays
Get the partitionRetentionInDays property: Retention period for query log table partitions, this doesn't have any affect on actual data.- Returns:
- the partitionRetentionInDays value.
-
withPartitionRetentionInDays
Set the partitionRetentionInDays property: Retention period for query log table partitions, this doesn't have any affect on actual data.- Parameters:
partitionRetentionInDays- the partitionRetentionInDays value to set.- Returns:
- the TrinoTelemetryConfig object itself.
-
path
Get the path property: Azure storage location of the blobs.- Returns:
- the path value.
-
withPath
Set the path property: Azure storage location of the blobs.- Parameters:
path- the path value to set.- Returns:
- the TrinoTelemetryConfig object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrinoTelemetryConfig>- Throws:
IOException
-
fromJson
public static TrinoTelemetryConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TrinoTelemetryConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TrinoTelemetryConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TrinoTelemetryConfig.
-