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.@NotNull IWritableLocalTableLocationGet the table location for the stream.@NotNull StringGet the prefix to append to log lines.@NotNull ObjectGet the object to use for synchronization during processing.Get theDataImportProfilerfor the stream.@NotNull SchemaServiceGet the schema service.@NotNull FullTableLocationKeyGet theFullTableLocationKeyfor the stream.@NotNull TableDefinitionGet the Table definition to use for the stream.@NotNull LocalTableWriterGet theLocalTableWriterfor the stream using the defaultTableDefinition(equivalent to the one provided byDataImportStreamContext.getTableDefinition()).@NotNull LocalTableWritergetTableWriter(boolean forceRowSupport, @NotNull TableDefinition listenerOutputDefinition) Get theLocalTableWriterfor the stream using the providedTableDefinition.@NotNull LocalTableWritergetTableWriter(@NotNull TableDefinition listenerOutputDefinition) Get theLocalTableWriterfor the stream using the providedTableDefinition.
-
Method Details
-
getLocation
Description copied from interface:DataImportStreamContextGet the table location for the stream.- Specified by:
getLocationin interfaceDataImportStreamContext- Returns:
- The table location for the stream
-
getTableWriter
Description copied from interface:DataImportStreamContextGet theLocalTableWriterfor the stream using the defaultTableDefinition(equivalent to the one provided byDataImportStreamContext.getTableDefinition()).Callers must hold the processing lock (see
DataImportStreamContext.getProcessingLock()).- Specified by:
getTableWriterin interfaceDataImportStreamContext- Returns:
- The
LocalTableWriterfor the stream
-
getTableWriter
@NotNull public @NotNull LocalTableWriter getTableWriter(@NotNull @NotNull TableDefinition listenerOutputDefinition) Description copied from interface:DataImportStreamContextGet theLocalTableWriterfor the stream using the providedTableDefinition.Callers must hold the processing lock (see
DataImportStreamContext.getProcessingLock()).- Specified by:
getTableWriterin interfaceDataImportStreamContext- Parameters:
listenerOutputDefinition- A definition specifying the columns to be written- Returns:
- The
LocalTableWriterfor the stream
-
getTableWriter
@NotNull public @NotNull LocalTableWriter getTableWriter(boolean forceRowSupport, @NotNull @NotNull TableDefinition listenerOutputDefinition) Description copied from interface:DataImportStreamContextGet theLocalTableWriterfor the stream using the providedTableDefinition. Allows ability to force row support.Callers must hold the processing lock (see
DataImportStreamContext.getProcessingLock()).- Specified by:
getTableWriterin 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
LocalTableWriterfor the stream
-
getStreamKey
Description copied from interface:DataImportStreamContextGet theFullTableLocationKeyfor the stream.- Specified by:
getStreamKeyin interfaceDataImportStreamContext- Returns:
- The table location key for the stream
-
getProfiler
Description copied from interface:DataImportStreamContextGet theDataImportProfilerfor the stream.- Specified by:
getProfilerin interfaceDataImportStreamContext- Returns:
- The data import profiler for the stream
-
getProcessingLock
Description copied from interface:DataImportStreamContextGet the object to use for synchronization during processing.- Specified by:
getProcessingLockin interfaceDataImportStreamContext- Returns:
- The object to synchronize during data processing
-
getLogPrefix
Description copied from interface:DataImportStreamContextGet the prefix to append to log lines.- Specified by:
getLogPrefixin interfaceDataImportStreamContext- Returns:
- The prefix to prepend to log lines
-
getTableDefinition
Description copied from interface:DataImportStreamContextGet the Table definition to use for the stream.- Specified by:
getTableDefinitionin interfaceDataImportStreamContext- Returns:
- The table definition for the stream
-
getImportMetadata
Description copied from interface:DataImportStreamContextGet the metadata for the stream.- Specified by:
getImportMetadatain interfaceDataImportStreamContext- Returns:
- The map of metadata for processor use
-
getSchemaService
Description copied from interface:DataImportStreamContextGet the schema service.- Specified by:
getSchemaServicein interfaceDataImportStreamContext- Returns:
- the schema service
-