Class DataImportStreamProcessor.Context
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.DataImportStreamProcessor.Context
- All Implemented Interfaces:
DataImportStreamContext
- Enclosing class:
- DataImportStreamProcessor
A context object to pass commonly used information down to individual
processors
-
Method Summary
Modifier and TypeMethodDescriptionGet the metadata for the stream.Get the table location for the stream.Get the prefix to append to log lines.Get the object to use for synchronization during processing.Get theDataImportProfiler
for the stream.Get the schema service.Get theFullTableLocationKey
for the stream.Get the Table definition to use for the stream.Get theLocalTableWriter
for the stream using the defaultTableDefinition
(equivalent to the one provided byDataImportStreamContext.getTableDefinition()
).getTableWriter
(boolean forceRowSupport, TableDefinition listenerOutputDefinition) Get theLocalTableWriter
for the stream using the providedTableDefinition
.getTableWriter
(TableDefinition listenerOutputDefinition) Get theLocalTableWriter
for the stream using the providedTableDefinition
.
-
Method Details
-
getLocation
Description copied from interface:DataImportStreamContext
Get the table location for the stream.- Specified by:
getLocation
in interfaceDataImportStreamContext
- Returns:
- The table location for the stream
-
getTableWriter
Description copied from interface:DataImportStreamContext
Get theLocalTableWriter
for the stream using the defaultTableDefinition
(equivalent to the one provided byDataImportStreamContext.getTableDefinition()
).Callers must hold the processing lock (see
DataImportStreamContext.getProcessingLock()
).- Specified by:
getTableWriter
in interfaceDataImportStreamContext
- Returns:
- The
LocalTableWriter
for the stream
-
getTableWriter
Description copied from interface:DataImportStreamContext
Get theLocalTableWriter
for the stream using the providedTableDefinition
.Callers must hold the processing lock (see
DataImportStreamContext.getProcessingLock()
).- Specified by:
getTableWriter
in interfaceDataImportStreamContext
- Parameters:
listenerOutputDefinition
- A definition specifying the columns to be written- Returns:
- The
LocalTableWriter
for the stream
-
getTableWriter
@NotNull public LocalTableWriter getTableWriter(boolean forceRowSupport, @NotNull TableDefinition listenerOutputDefinition) Description copied from interface:DataImportStreamContext
Get theLocalTableWriter
for the stream using the providedTableDefinition
. Allows ability to force row support.Callers must hold the processing lock (see
DataImportStreamContext.getProcessingLock()
).- Specified by:
getTableWriter
in interfaceDataImportStreamContext
- Parameters:
forceRowSupport
- Should be true for binary format V1 loggers to force single row support in returned LocalTableWriterlistenerOutputDefinition
- A definition specifying the columns to be written- Returns:
- The
LocalTableWriter
for the stream
-
getStreamKey
Description copied from interface:DataImportStreamContext
Get theFullTableLocationKey
for the stream.- Specified by:
getStreamKey
in interfaceDataImportStreamContext
- Returns:
- The table location key for the stream
-
getProfiler
Description copied from interface:DataImportStreamContext
Get theDataImportProfiler
for the stream.- Specified by:
getProfiler
in interfaceDataImportStreamContext
- Returns:
- The data import profiler for the stream
-
getProcessingLock
Description copied from interface:DataImportStreamContext
Get the object to use for synchronization during processing.- Specified by:
getProcessingLock
in interfaceDataImportStreamContext
- Returns:
- The object to synchronize during data processing
-
getLogPrefix
Description copied from interface:DataImportStreamContext
Get the prefix to append to log lines.- Specified by:
getLogPrefix
in interfaceDataImportStreamContext
- Returns:
- The prefix to prepend to log lines
-
getTableDefinition
Description copied from interface:DataImportStreamContext
Get the Table definition to use for the stream.- Specified by:
getTableDefinition
in interfaceDataImportStreamContext
- Returns:
- The table definition for the stream
-
getImportMetadata
Description copied from interface:DataImportStreamContext
Get the metadata for the stream.- Specified by:
getImportMetadata
in interfaceDataImportStreamContext
- Returns:
- The map of metadata for processor use
-
getSchemaService
Description copied from interface:DataImportStreamContext
Get the schema service.- Specified by:
getSchemaService
in interfaceDataImportStreamContext
- Returns:
- the schema service
-