@FunctionalInterface public interface Exporter<K,V>
If multiple export entries with the same key are passed in, then the entries with the same key will be consecutive and in ascending sequence order.
If the call to process exports is unexpectedly terminated, it will be called again later with at least the same data. For example suppose an exporter was passed the following entries.
Assume the exporter exports some of these and then fails before completing all of them. The next time its called it will be passed what it saw before, but it could also be passed more.
Modifier and Type | Method and Description |
---|---|
default Exporter<K,V> |
andThen(Exporter<K,V> after)
Returns a composed
Exporter that exports, in sequence, to this then to after . |
void |
export(Iterator<SequencedExport<K,V>> exports)
Performs this export operation.
|
void export(Iterator<SequencedExport<K,V>> exports)
exports
- an iterator over the data to exportdefault Exporter<K,V> andThen(Exporter<K,V> after)
Exporter
that exports, in sequence, to this then to after
.
If performing either export throws an exception, it is relayed to the caller of the composed
operation. If performing this export operation throws an exception, the after
export
will not be performed.after
- the export operation to perform after this operationExporter
that performs in sequence this export operation followed by
the after
export operationNullPointerException
- if after
is nullCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.