Package com.illumon.iris.db.gen
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.intradaylogger.IntradayLoggerImpl2
com.illumon.intradaylogger.IntradayLoggerImpl2.BaseSetter<T2 extends com.illumon.intradaylogger.IntradayLoggerImpl2.BaseSetter<T2>>Nested classes/interfaces inherited from interface com.illumon.intradaylogger.IntradayLogger
com.illumon.intradaylogger.IntradayLogger.TableWriterFactory, com.illumon.intradaylogger.IntradayLogger.TableWriterFactoryImplNested classes/interfaces inherited from interface com.illumon.iris.db.tables.dataimport.TableLogger
TableLogger.NoPrevColumnSource<T>Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dataimport.TableLoggerBase
TableLoggerBase.Flags, TableLoggerBase.Operation -
Field Summary
Fields Modifier and Type Field Description static long_CLASS_BODY_CRC32_static String_SCHEMA_Fields inherited from class com.illumon.intradaylogger.IntradayLoggerImpl2
forceStandaloneMode, isClosed, isShuttingDown, outstandingSetters, setterPool, verifyChecksumDisabled, writerFields inherited from interface com.illumon.intradaylogger.IntradayLogger
DEFAULT_INTRADAY_LOGGER_FLAGSFields inherited from interface com.illumon.iris.db.tables.dataimport.TableLoggerBase
DEFAULT_TABLELOGGER_FLAGS -
Constructor Summary
Constructors Constructor Description ProcessTelemetryFormat1Logger() -
Method Summary
Modifier and Type Method Description protected com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISettercreateSetter()static StringgetDefaultNamespace()static StringgetDefaultTableName()intgetLogFormat()com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.HandlegetLogHandle(Table tableToLog, Collection<String> logPrevColumns)Gets a handle suitable for use with logTableHandle.protected TableWritergetTableWriter(com.illumon.intradaylogger.IntradayLogger.TableWriterFactory tableWriterBuilder)TableWritergetWriter()Return the table writer.voidlogTableHandle(TableLoggerBase.Handle logHandle, Row.Flags flags, long index, TableLoggerBase.Operation operation)Log a row from a table handlevoidlogTableHandlePrev(TableLoggerBase.Handle logHandle, Row.Flags flags, long index, TableLoggerBase.Operation operation)Log a previous row from a table handleprotected StringthreadName()protected voidverifyChecksum()Methods inherited from class com.illumon.intradaylogger.IntradayLoggerImpl2
close, disableVerifyChecksum, flush, getWriterThread, init, init, init, init, isClosed, isInitialized, setOverflowThrottle, setStandaloneMode, shutdown, tryWrite, verifyCondition, waitDone, waitDoneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.intradaylogger.IntradayLogger
close, getWriterThread, init, init, init, init, isClosed, setOverflowThrottle, shutdown, tryWrite, usingDynamicPartitioning, waitDone, waitDoneMethods inherited from interface com.illumon.iris.db.tables.dataimport.TableLogger
logTable, logTable
-
Field Details
-
_SCHEMA_
- See Also:
- Constant Field Values
-
_CLASS_BODY_CRC32_
public static final long _CLASS_BODY_CRC32_- See Also:
- Constant Field Values
-
-
Constructor Details
-
ProcessTelemetryFormat1Logger
public ProcessTelemetryFormat1Logger()
-
-
Method Details
-
getLogFormat
public int getLogFormat()- Specified by:
getLogFormatin interfacecom.illumon.intradaylogger.IntradayLogger
-
getDefaultNamespace
-
getDefaultTableName
-
verifyChecksum
- Specified by:
verifyChecksumin classcom.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>- Throws:
IOException
-
threadName
- Specified by:
threadNamein classcom.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>
-
getTableWriter
protected TableWriter getTableWriter(com.illumon.intradaylogger.IntradayLogger.TableWriterFactory tableWriterBuilder) throws IOException- Specified by:
getTableWriterin classcom.illumon.intradaylogger.IntradayLoggerImpl2<com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter>- Throws:
IOException
-
createSetter
protected com.illumon.iris.db.gen.ProcessTelemetryFormat1Logger.ISetter createSetter()- Specified by:
createSetterin classcom.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:TableLoggerBaseGets 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:
getLogHandlein interfaceTableLoggerBase- Parameters:
tableToLog- the table to log, must conform to the definition used to create this loggerlogPrevColumns- 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 IOExceptionDescription copied from interface:TableLoggerLog a row from a table handle- Specified by:
logTableHandlein interfaceTableLogger- Parameters:
logHandle- the log handle to extract data fromflags- controls the transaction behaviorindex- the row (index key) to logoperation- 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 IOExceptionDescription copied from interface:TableLoggerLog a previous row from a table handle- Specified by:
logTableHandlePrevin interfaceTableLogger- Parameters:
logHandle- the log handle to extract data fromflags- controls the transaction behaviorindex- the row (index key) to logoperation- the table update event that resulted in this log call- Throws:
IOException- if the log call fails
-
getWriter
Description copied from interface:TableLoggerReturn the table writer. This will have been created by the created by the TableWriterFactory during init().- Specified by:
getWriterin interfaceTableLogger- Returns:
- the internal TableWriter, or null if the implementation does not support this call.
-