Class SnowflakeTelemetryChannelCreation


  • public class SnowflakeTelemetryChannelCreation
    extends SnowflakeTelemetryBasicInfo
    This object is sent only once when a channel starts. No concurrent modification is made on this object, thus no lock is required.
    • Constructor Detail

      • SnowflakeTelemetryChannelCreation

        public SnowflakeTelemetryChannelCreation​(String tableName,
                                                 String channelName,
                                                 long startTime)
    • Method Detail

      • dumpTo

        public void dumpTo​(net.snowflake.client.jdbc.internal.fasterxml.jackson.databind.node.ObjectNode msg)
        Description copied from class: SnowflakeTelemetryBasicInfo
        Adds the required fields into the given ObjectNode which will then be used as payload in Telemetry API
        Specified by:
        dumpTo in class SnowflakeTelemetryBasicInfo
        Parameters:
        msg - ObjectNode in which extra fields needs to be added.
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class SnowflakeTelemetryBasicInfo
        Returns:
        true if it would suggest that their was no update to corresponding implementation's member variables. Or, in other words, the corresponding partition didnt receive any records, in which case we would not call telemetry API.
      • setReuseTable

        public void setReuseTable​(boolean reuseTable)