Package com.illumon.iris.importers
Class BinaryStoreImporter
java.lang.Object
com.illumon.iris.importers.BaseImporter<BinaryStoreImporter.Arguments>
com.illumon.iris.importers.BinaryStoreImporter
Simple importer to consume binary row-oriented log files and produce database tables. Effectively like
a tailer and a data importer server for offline data (minus the distribution components).
TODO: Add support for user ImportState.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.illumon.iris.importers.BaseImporter
log -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoImport(com.fishlib.io.logger.Logger log, BinaryStoreImporter.Arguments args) Construct a newBinaryStoreImporterand use it to import data according toargs.protected voidWrap up the import process.static voidstatic voidparseArgsAndDoImport(com.fishlib.io.logger.Logger log, String... args) Parse the suppliedStringcommand-line arguments into anBinaryStoreImporter.Argumentsinstance, construct a newBinaryStoreImporter, and use it to import data according toargs.parseArguments(String... args) Parse the suppliedStringcommand-line arguments into anBinaryStoreImporter.Argumentsinstance.voidImport the data - e.g.Methods inherited from class com.illumon.iris.importers.BaseImporter
doImport, getImporterArguments, getTableDefinition, getTableWriter
-
Method Details
-
processData
public void processData()Description copied from class:BaseImporterImport the data - e.g. read the rows from the data source. The Overriding class does the actual import using arguments, tableWriter, and tableListenerFactory- Specified by:
processDatain classBaseImporter<BinaryStoreImporter.Arguments>
-
finishImport
protected void finishImport()Description copied from class:BaseImporterWrap up the import process. Close the tableWriter and any other finalization tasks. Implementors should not need to override this.- Overrides:
finishImportin classBaseImporter<BinaryStoreImporter.Arguments>
-
parseArguments
Parse the suppliedStringcommand-line arguments into anBinaryStoreImporter.Argumentsinstance.- Parameters:
args- The command-line arguments- Returns:
- The
BinaryStoreImporter.Argumentsstructure
-
doImport
public static void doImport(@NotNull com.fishlib.io.logger.Logger log, @NotNull BinaryStoreImporter.Arguments args) Construct a newBinaryStoreImporterand use it to import data according toargs.- Parameters:
log- TheLoggerto useargs- TheBinaryStoreImporter.Argumentsspecifying what to import
-
parseArgsAndDoImport
public static void parseArgsAndDoImport(@NotNull com.fishlib.io.logger.Logger log, @NotNull String... args) Parse the suppliedStringcommand-line arguments into anBinaryStoreImporter.Argumentsinstance, construct a newBinaryStoreImporter, and use it to import data according toargs.- Parameters:
log- TheLoggerto useargs- The command-line arguments
-
main
-