public interface Sink
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(MappingConfiguration mapping)
remove all traces of any loading that took or might have taken place for the provided mapping
|
boolean |
prepare(MappingConfiguration mapping)
Do whatever is required for the sink to be used, such as testing connections, inserting schemas, ...
|
boolean |
store(Collection<SinkRecord> records) |
boolean |
store(SinkRecord record) |
boolean prepare(MappingConfiguration mapping) throws SinkError
mapping - the mapping that contains the configuration for the sink, such as data types and field namesSinkErrorboolean store(SinkRecord record) throws SinkError
record - the record to storeSinkError - on no-recoverable errorsboolean store(Collection<SinkRecord> records) throws SinkError
records - the records to storeSinkError - on no-recoverable errorsboolean clear(MappingConfiguration mapping)
mapping - the mapping providing the information that shall be cleared from the sinkCopyright © 2015 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.