Package com.illumon.intradaylogger
Class IntradayLogger.TableWriterFactoryImpl
java.lang.Object
com.illumon.intradaylogger.IntradayLogger.TableWriterFactoryImpl
- All Implemented Interfaces:
IntradayLogger.TableWriterFactory
- Direct Known Subclasses:
LogAggregatorServiceBinaryStoreWriterFactory
- Enclosing interface:
- IntradayLogger
public abstract static class IntradayLogger.TableWriterFactoryImpl
extends Object
implements IntradayLogger.TableWriterFactory
Default methods in TableWriterFactory flow the right direction for backward compatibility, but the wrong
direction for implementation simplicity.
This class delegates to the complete implementation in a reasonable way.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildWriter(String[] columnNames, SupportedType[] intradayTypes, Class[] columnTypes, Object[] typeMetadata) Creates a new table writer.buildWriter(String[] columnNames, SupportedType[] intradayTypes, Class[] columnTypes, Object[] typeMetadata, Map<String, Object> constantColumnValues) 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
buildWriter, supportsDynamicPartitioning
-
Constructor Details
-
TableWriterFactoryImpl
public TableWriterFactoryImpl()
-
-
Method Details
-
buildWriter
public TableWriter buildWriter(String[] columnNames, SupportedType[] intradayTypes, Class[] columnTypes, Object[] typeMetadata) throws IOException Description copied from interface:IntradayLogger.TableWriterFactoryCreates a new table writer.- Specified by:
buildWriterin interfaceIntradayLogger.TableWriterFactory- Parameters:
columnNames- column namesintradayTypes- 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[] intradayTypes, Class[] columnTypes, Object[] typeMetadata, Map<String, Object> constantColumnValues) throws IOExceptionDescription copied from interface:IntradayLogger.TableWriterFactoryCreates a new table writer.- Specified by:
buildWriterin interfaceIntradayLogger.TableWriterFactory- Parameters:
columnNames- column namesintradayTypes- column types for the intraday loggercolumnTypes- column types for the tabletypeMetadata- metadata for encoding and decoding a typeconstantColumnValues- values that do not change for each row- Returns:
- new table writer
- Throws:
IOException- problem creating the table writer
-