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
    Constructor
    Description
    Creates an instance of TrinoTelemetryConfig class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(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.
    Get the path property: Azure storage location of the blobs.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    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, wait

    Methods 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

      public String 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

      public TrinoTelemetryConfig 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.
      Parameters:
      hivecatalogName - the hivecatalogName value to set.
      Returns:
      the TrinoTelemetryConfig object itself.
    • hivecatalogSchema

      public String 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

      public TrinoTelemetryConfig 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.
      Parameters:
      hivecatalogSchema - the hivecatalogSchema value to set.
      Returns:
      the TrinoTelemetryConfig object itself.
    • partitionRetentionInDays

      public Integer 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

      public TrinoTelemetryConfig withPartitionRetentionInDays(Integer partitionRetentionInDays)
      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

      public String path()
      Get the path property: Azure storage location of the blobs.
      Returns:
      the path value.
    • withPath

      public TrinoTelemetryConfig withPath(String path)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.