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 class
BinaryStoreImporter.Arguments
Argument structure forBinaryStoreImporter
. -
Field Summary
-
Method Summary
Modifier and Type Method Description static void
doImport(com.fishlib.io.logger.Logger log, BinaryStoreImporter.Arguments args)
Construct a newBinaryStoreImporter
and use it to import data according toargs
.protected void
finishImport()
Wrap up the import process.static void
main(String... args)
static void
parseArgsAndDoImport(com.fishlib.io.logger.Logger log, String... args)
Parse the suppliedString
command-line arguments into anBinaryStoreImporter.Arguments
instance, construct a newBinaryStoreImporter
, and use it to import data according toargs
.static BinaryStoreImporter.Arguments
parseArguments(String... args)
Parse the suppliedString
command-line arguments into anBinaryStoreImporter.Arguments
instance.void
processData()
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:BaseImporter
Import 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:
processData
in classBaseImporter<BinaryStoreImporter.Arguments>
-
finishImport
protected void finishImport()Description copied from class:BaseImporter
Wrap up the import process. Close the tableWriter and any other finalization tasks. Implementors should not need to override this.- Overrides:
finishImport
in classBaseImporter<BinaryStoreImporter.Arguments>
-
parseArguments
Parse the suppliedString
command-line arguments into anBinaryStoreImporter.Arguments
instance.- Parameters:
args
- The command-line arguments- Returns:
- The
BinaryStoreImporter.Arguments
structure
-
doImport
public static void doImport(@NotNull com.fishlib.io.logger.Logger log, @NotNull BinaryStoreImporter.Arguments args)Construct a newBinaryStoreImporter
and use it to import data according toargs
.- Parameters:
log
- TheLogger
to useargs
- TheBinaryStoreImporter.Arguments
specifying what to import
-
parseArgsAndDoImport
public static void parseArgsAndDoImport(@NotNull com.fishlib.io.logger.Logger log, @NotNull String... args)Parse the suppliedString
command-line arguments into anBinaryStoreImporter.Arguments
instance, construct a newBinaryStoreImporter
, and use it to import data according toargs
.- Parameters:
log
- TheLogger
to useargs
- The command-line arguments
-
main
-