Package com.illumon.iris.importers
Class BinaryStoreImporter
java.lang.Object
com.illumon.iris.importers.BaseImporter<BinaryStoreImporter.Arguments>
com.illumon.iris.importers.BinaryStoreImporter
public class BinaryStoreImporter extends BaseImporter<BinaryStoreImporter.Arguments>
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 Modifier and Type Class Description static classBinaryStoreImporter.ArgumentsArgument structure forBinaryStoreImporter. -
Field Summary
-
Method Summary
Modifier and Type Method Description static voiddoImport(com.fishlib.io.logger.Logger log, BinaryStoreImporter.Arguments args)Construct a newBinaryStoreImporterand use it to import data according toargs.protected voidfinishImport()Wrap up the import process.static voidmain(String... args)static 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.static BinaryStoreImporter.ArgumentsparseArguments(String... args)Parse the suppliedStringcommand-line arguments into anBinaryStoreImporter.Argumentsinstance.voidprocessData()Import 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
-