Class LogAggregatorServiceBinaryStoreWriterFactory
java.lang.Object
com.illumon.intradaylogger.IntradayLogger.TableWriterFactoryImpl
com.illumon.iris.db.v2.logaggregator.LogAggregatorServiceBinaryStoreWriterFactory
- All Implemented Interfaces:
com.illumon.intradaylogger.IntradayLogger.TableWriterFactory
public class LogAggregatorServiceBinaryStoreWriterFactory
extends com.illumon.intradaylogger.IntradayLogger.TableWriterFactoryImpl
Creates a TableWriter that will connect to a Log Aggregator Service. Rows are written to network and not to disk.
-
Method Summary
Modifier and TypeMethodDescriptionbuildWriter(String[] columnNames, SupportedType[] intradayTypes, Class[] columnTypes_notUsed, Object[] typeMetadata, Map<String, Object> constantColumnValues, int applicationVersion) currentDatePartitionFactory(com.fishlib.io.logger.Logger log, String namespace, String tableName, TableIdentifier.NamespaceSet namespaceSet, String internalPartition, TokenFactoryFactory tokenAuthenticationManager) Construct a LogAggregatorServiceBinaryStoreWriterFactory instance that will create a column partition value based on the current time, and will cycle LogAggregatorService connections if the date changes.dynamicColumnPartitionFactory(com.fishlib.io.logger.Logger log, String namespace, String tableName, TableIdentifier.NamespaceSet namespaceSet, String internalPartition, TokenFactoryFactory tokenAuthenticationManager) Construct an instance without a column partition value (for dynamic column partition selection).fixedColumnPartitionFactory(com.fishlib.io.logger.Logger log, String namespace, String tableName, TableIdentifier.NamespaceSet namespaceSet, String internalPartition, String columnPartition, TokenFactoryFactory tokenAuthenticationManager) Construct a LogAggregatorServiceBinaryStoreWriterFactory instance that uses the specified column partition value.booleanMethods inherited from class com.illumon.intradaylogger.IntradayLogger.TableWriterFactoryImpl
buildWriter, buildWriter
-
Method Details
-
dynamicColumnPartitionFactory
public static LogAggregatorServiceBinaryStoreWriterFactory dynamicColumnPartitionFactory(@NotNull com.fishlib.io.logger.Logger log, @NotNull String namespace, @NotNull String tableName, @NotNull TableIdentifier.NamespaceSet namespaceSet, @NotNull String internalPartition, @Nullable TokenFactoryFactory tokenAuthenticationManager) Construct an instance without a column partition value (for dynamic column partition selection).- Parameters:
log- the loggernamespace- the namespace for the tabletableName- the tableName to which this will writenamespaceSet- the NamespaceSetinternalPartition- the internal partition for the locationtokenAuthenticationManager- source for authentication tokens. If null, use AuthenticationClientManager.getDefault().
-
currentDatePartitionFactory
public static LogAggregatorServiceBinaryStoreWriterFactory currentDatePartitionFactory(@NotNull com.fishlib.io.logger.Logger log, @NotNull String namespace, @NotNull String tableName, @NotNull TableIdentifier.NamespaceSet namespaceSet, @NotNull String internalPartition, @Nullable TokenFactoryFactory tokenAuthenticationManager) Construct a LogAggregatorServiceBinaryStoreWriterFactory instance that will create a column partition value based on the current time, and will cycle LogAggregatorService connections if the date changes.- Parameters:
log- the loggernamespace- the namespace for the tabletableName- the tableName to which this will writenamespaceSet- the NamespaceSetinternalPartition- the internal partition for the locationtokenAuthenticationManager- source for authentication tokens. If null, use AuthenticationClientManager.getDefault().
-
fixedColumnPartitionFactory
public static LogAggregatorServiceBinaryStoreWriterFactory fixedColumnPartitionFactory(@NotNull com.fishlib.io.logger.Logger log, @NotNull String namespace, @NotNull String tableName, @NotNull TableIdentifier.NamespaceSet namespaceSet, @NotNull String internalPartition, @NotNull String columnPartition, @Nullable TokenFactoryFactory tokenAuthenticationManager) Construct a LogAggregatorServiceBinaryStoreWriterFactory instance that uses the specified column partition value.- Parameters:
log- the loggernamespace- the namespace for the tabletableName- the tableName to which this will writenamespaceSet- the NamespaceSetinternalPartition- the internal partition for the locationcolumnPartition- the column partition valuetokenAuthenticationManager- source for authentication tokens. If null, use AuthenticationClientManager.getDefault().
-
buildWriter
public TableWriter buildWriter(String[] columnNames, SupportedType[] intradayTypes, Class[] columnTypes_notUsed, Object[] typeMetadata, Map<String, Object> constantColumnValues, int applicationVersion) throws IOException- Throws:
IOException
-
supportsDynamicPartitioning
public boolean supportsDynamicPartitioning()
-