Package com.illumon.intradaylogger
Class BinaryStoreWriterFactory
java.lang.Object
com.illumon.intradaylogger.BinaryStoreWriterFactory
- All Implemented Interfaces:
IntradayLogger.TableWriterFactory
Default TableWriterFactory implementation. Expects path to include a date prefix if necessary.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.BinaryStoreWriterFactory(String path, int version) Deprecated.BinaryStoreWriterFactory(String path, int version, com.fishlib.io.logger.Logger log) Factory that creates a binary store.BinaryStoreWriterFactory(String path, com.fishlib.io.logger.Logger log) Factory that creates a binary store using the binarystore.defaultversion property to select the format.BinaryStoreWriterFactory(String path, DateTimeFormatter rollFormat) Deprecated.BinaryStoreWriterFactory(String path, DateTimeFormatter rollFormat, int version) Deprecated.BinaryStoreWriterFactory(String path, DateTimeFormatter rollFormat, int version, com.fishlib.io.logger.Logger log) Factory that creates a binary store.BinaryStoreWriterFactory(String path, DateTimeFormatter rollFormat, com.fishlib.io.logger.Logger log) Factory that creates a binary store using the binarystore.defaultversion property to select the format. -
Method Summary
Modifier and TypeMethodDescriptionbuildWriter(String[] columnNames, SupportedType[] loggerTypes, Class[] columnTypes, Object[] typeMetadata) Creates a new table writer.buildWriter(String[] columnNames, SupportedType[] loggerTypes, Class[] columnTypes, Object[] typeMetadata, Map<String, Object> constantColumns) Creates a new table writer.buildWriter(String[] columnNames, SupportedType[] loggerTypes, Class[] columnTypes, Object[] typeMetadata, Map<String, Object> constantColumns, int applicationVersion) Creates a new table writer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.intradaylogger.IntradayLogger.TableWriterFactory
supportsDynamicPartitioning
-
Constructor Details
-
BinaryStoreWriterFactory
Deprecated.BinaryStoreWriterFactory(String, Logger)with a default Logger.- Parameters:
path- the path prefix for the output files.
-
BinaryStoreWriterFactory
Factory that creates a binary store using the binarystore.defaultversion property to select the format.- Parameters:
path- the path prefix for the output files.
-
BinaryStoreWriterFactory
Deprecated.BinaryStoreWriterFactory(String, DateTimeFormatter, Logger)with a default Logger.- Parameters:
path- the path prefix for the output files.rollFormat- DateFormat for rolling based on time.
-
BinaryStoreWriterFactory
public BinaryStoreWriterFactory(String path, DateTimeFormatter rollFormat, com.fishlib.io.logger.Logger log) Factory that creates a binary store using the binarystore.defaultversion property to select the format.- Parameters:
path- the path prefix for the output files.rollFormat- DateFormat for rolling based on time.
-
BinaryStoreWriterFactory
Deprecated.BinaryStoreWriterFactory(String, int, Logger)with a default Logger.- Parameters:
path- the path prefix for the output files.version- selects the file format of the output files.
-
BinaryStoreWriterFactory
Factory that creates a binary store.- Parameters:
path- the path prefix for the output files.version- selects the file format of the output files.
-
BinaryStoreWriterFactory
Deprecated.BinaryStoreWriterFactory(String, DateTimeFormatter, int, Logger)with a default Logger.- Parameters:
path- the path prefix for the output files.rollFormat- DateFormat for rolling based on time.version- selects the file format of the output files.
-
BinaryStoreWriterFactory
public BinaryStoreWriterFactory(String path, DateTimeFormatter rollFormat, int version, com.fishlib.io.logger.Logger log) Factory that creates a binary store.- Parameters:
path- the path prefix for the output files.rollFormat- DateFormat for rolling based on time.version- selects the file format of the output files.
-
-
Method Details
-
buildWriter
public TableWriter buildWriter(String[] columnNames, SupportedType[] loggerTypes, Class[] columnTypes, Object[] typeMetadata) throws IOException Description copied from interface:IntradayLogger.TableWriterFactoryCreates a new table writer.- Specified by:
buildWriterin interfaceIntradayLogger.TableWriterFactory- Parameters:
columnNames- column namesloggerTypes- column types for the intraday loggercolumnTypes- column types for the tabletypeMetadata- metadata for encoding and decoding a type- Returns:
- new table writer
- Throws:
IOException- problem creating the table writer
-
buildWriter
public TableWriter buildWriter(String[] columnNames, SupportedType[] loggerTypes, Class[] columnTypes, Object[] typeMetadata, Map<String, Object> constantColumns) throws IOExceptionDescription copied from interface:IntradayLogger.TableWriterFactoryCreates a new table writer.- Specified by:
buildWriterin interfaceIntradayLogger.TableWriterFactory- Parameters:
columnNames- column namesloggerTypes- column types for the intraday loggercolumnTypes- column types for the tabletypeMetadata- metadata for encoding and decoding a typeconstantColumns- values that do not change for each row- Returns:
- new table writer
- Throws:
IOException- problem creating the table writer
-
buildWriter
public TableWriter buildWriter(String[] columnNames, SupportedType[] loggerTypes, Class[] columnTypes, Object[] typeMetadata, Map<String, Object> constantColumns, int applicationVersion) throws IOExceptionDescription copied from interface:IntradayLogger.TableWriterFactoryCreates a new table writer.- Specified by:
buildWriterin interfaceIntradayLogger.TableWriterFactory- Parameters:
columnNames- column namesloggerTypes- column types for the intraday loggercolumnTypes- column types for the tabletypeMetadata- metadata for encoding and decoding a typeconstantColumns- values that do not change for each rowapplicationVersion- application version number used to select listener for reading this file- Returns:
- new table writer
- Throws:
IOException- problem creating the table writer
-