public class ExportQueue<K,V> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExportQueue.FluentArg1
Part of a fluent API for configuring a export queue.
|
static interface |
ExportQueue.FluentArg2
Part of a fluent API for configuring a export queue.
|
static interface |
ExportQueue.FluentArg3
Part of a fluent API for configuring a export queue.
|
static interface |
ExportQueue.FluentOptions
Part of a fluent API for configuring a export queue.
|
static class |
ExportQueue.Optimizer |
static class |
ExportQueue.Options
Deprecated.
since 1.1.0 use
configure(String) |
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.fluo.api.client.TransactionBase tx,
K key,
V value) |
void |
addAll(org.apache.fluo.api.client.TransactionBase tx,
Iterator<Export<K,V>> exports) |
static void |
configure(org.apache.fluo.api.config.FluoConfiguration fluoConfig,
ExportQueue.Options opts)
Deprecated.
since 1.1.0 use
configure(String) and
registerObserver(ObserverProvider.Registry, org.apache.fluo.recipes.core.export.function.Exporter)
instead. |
static ExportQueue.FluentArg1 |
configure(String exportQueueId)
A Fluent API for configuring an Export Queue.
|
static <K2,V2> ExportQueue<K2,V2> |
getInstance(String exportQueueId,
org.apache.fluo.api.config.SimpleConfiguration appConfig) |
void |
registerObserver(org.apache.fluo.api.observer.ObserverProvider.Registry obsRegistry,
Exporter<K,V> exporter)
Registers an observer that will export queued data.
|
public void addAll(org.apache.fluo.api.client.TransactionBase tx, Iterator<Export<K,V>> exports)
public static <K2,V2> ExportQueue<K2,V2> getInstance(String exportQueueId, org.apache.fluo.api.config.SimpleConfiguration appConfig)
public static ExportQueue.FluentArg1 configure(String exportQueueId)
registerObserver(ObserverProvider.Registry, org.apache.fluo.recipes.core.export.function.Exporter)
exportQueueId
- An id that uniquely identifies an export queue. This id is used in the
keys in the Fluo table and in the keys in the Fluo application configuration.@Deprecated public static void configure(org.apache.fluo.api.config.FluoConfiguration fluoConfig, ExportQueue.Options opts)
configure(String)
and
registerObserver(ObserverProvider.Registry, org.apache.fluo.recipes.core.export.function.Exporter)
instead.fluoConfig
- The configuration that will be used to initialize fluo.public void registerObserver(org.apache.fluo.api.observer.ObserverProvider.Registry obsRegistry, Exporter<K,V> exporter)
configure(String)
.Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.