Class ProcessTelemetryFormat1Logger

java.lang.Object
com.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger
All Implemented Interfaces:
com.illumon.intradaylogger.IntradayLogger, TableLogger, TableLoggerBase

public class ProcessTelemetryFormat1Logger
extends com.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
implements TableLogger
  • Field Details

  • Constructor Details

  • Method Details

    • getLogFormat

      public int getLogFormat()
      Specified by:
      getLogFormat in interface com.illumon.intradaylogger.IntradayLogger
    • getDefaultNamespace

      public static String getDefaultNamespace()
    • getDefaultTableName

      public static String getDefaultTableName()
    • verifyChecksum

      protected void verifyChecksum() throws IOException
      Specified by:
      verifyChecksum in class com.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
      Throws:
      IOException
    • threadName

      protected String threadName()
      Specified by:
      threadName in class com.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
    • getTableWriter

      protected TableWriter getTableWriter​(com.illumon.intradaylogger.IntradayLogger.TableWriterFactory tableWriterBuilder) throws IOException
      Specified by:
      getTableWriter in class com.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
      Throws:
      IOException
    • createSetter

      protected com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter createSetter()
      Specified by:
      createSetter in class com.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
    • getLogHandle

      public com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.Handle getLogHandle​(Table tableToLog, Collection<String> logPrevColumns)
      Description copied from interface: TableLoggerBase
      Gets a handle suitable for use with logTableHandle. If you are repeatedly logging rows from a table, it is more efficient to check the definition once rather than on each log call.
      Specified by:
      getLogHandle in interface TableLoggerBase
      Parameters:
      tableToLog - the table to log, must conform to the definition used to create this logger
      logPrevColumns - if not null, gives the columns for which to log previous values on remove and row modification
      Returns:
      a handle that can be passed into logTableHandle, with dummy column sources for previous columns not specified
    • logTableHandle

      public void logTableHandle​(TableLoggerBase.Handle logHandle, Row.Flags flags, long index, TableLoggerBase.Operation operation) throws IOException
      Description copied from interface: TableLogger
      Log a row from a table handle
      Specified by:
      logTableHandle in interface TableLogger
      Parameters:
      logHandle - the log handle to extract data from
      flags - controls the transaction behavior
      index - the row (index key) to log
      operation - the table update event that resulted in this log call
      Throws:
      IOException - if the log call fails
    • logTableHandlePrev

      public void logTableHandlePrev​(TableLoggerBase.Handle logHandle, Row.Flags flags, long index, TableLoggerBase.Operation operation) throws IOException
      Description copied from interface: TableLogger
      Log a previous row from a table handle
      Specified by:
      logTableHandlePrev in interface TableLogger
      Parameters:
      logHandle - the log handle to extract data from
      flags - controls the transaction behavior
      index - the row (index key) to log
      operation - the table update event that resulted in this log call
      Throws:
      IOException - if the log call fails
    • getWriter

      public TableWriter getWriter()
      Description copied from interface: TableLogger
      Return the table writer. This will have been created by the created by the TableWriterFactory during init().
      Specified by:
      getWriter in interface TableLogger
      Returns:
      the internal TableWriter, or null if the implementation does not support this call.