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 Type Method Description TableWriter
buildWriter(String[] columnNames, SupportedType[] intradayTypes, Class[] columnTypes_notUsed, Object[] typeMetadata, Map<String,Object> constantColumnValues, int applicationVersion)
static LogAggregatorServiceBinaryStoreWriterFactory
currentDatePartitionFactory(com.fishlib.io.logger.Logger log, String namespace, String tableName, TableIdentifier.NamespaceSet namespaceSet, String internalPartition, com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)
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.static LogAggregatorServiceBinaryStoreWriterFactory
dynamicColumnPartitionFactory(com.fishlib.io.logger.Logger log, String namespace, String tableName, TableIdentifier.NamespaceSet namespaceSet, String internalPartition, com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)
Construct an instance without a column partition value (for dynamic column partition selection).static LogAggregatorServiceBinaryStoreWriterFactory
fixedColumnPartitionFactory(com.fishlib.io.logger.Logger log, String namespace, String tableName, TableIdentifier.NamespaceSet namespaceSet, String internalPartition, String columnPartition, com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)
Construct a LogAggregatorServiceBinaryStoreWriterFactory instance that uses the specified column partition value.boolean
supportsDynamicPartitioning()
-
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 com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)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 locationauthenticationClientManager
- source for authentication tokens. If null, use WAuthenticationClientManager.DEFAULT.
-
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 com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)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 locationauthenticationClientManager
- source for authentication tokens. If null, use WAuthenticationClientManager.DEFAULT.
-
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 com.fishlib.auth.WAuthenticationClientManager authenticationClientManager)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 valueauthenticationClientManager
- source for authentication tokens. If null, use WAuthenticationClientManager.DEFAULT.
-
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()
-