public class ElasticsearchPersistDeleter extends ElasticsearchPersistWriter implements StreamsPersistWriter
affectedIndexes, bulkRequest, config, currentBatchBytes, currentBatchItems, manager, OBJECT_MAPPER
Constructor and Description |
---|
ElasticsearchPersistDeleter() |
ElasticsearchPersistDeleter(ElasticsearchWriterConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
add(org.elasticsearch.action.delete.DeleteRequest request)
Enqueue DeleteRequest.
|
void |
delete(String index,
String type,
String id)
Prepare and en-queue @see org.elasticsearch.action.delete.DeleteRequest
|
String |
getId() |
void |
write(StreamsDatum streamsDatum) |
add, add, add, appendMetadata, checkForFlush, checkIndexImplications, cleanUp, createIndexIfMissing, disableRefresh, docAsJson, getAffectedIndexes, getBatchesResponded, getBatchesSent, getFlushThreasholdMaxTime, getFlushThresholdBytes, getFlushThresholdsRecords, getTotalFailed, getTotalOk, getTotalOutstanding, getTotalSeconds, getTotalSent, getTotalSizeInBytes, isConnected, prepare, setFlushThreasholdMaxTime, setFlushThresholdBytes, setFlushThresholdRecords, setVeryLargeBulk
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cleanUp, prepare
public ElasticsearchPersistDeleter()
public ElasticsearchPersistDeleter(ElasticsearchWriterConfiguration config)
public String getId()
getId
in interface StreamsOperation
getId
in class ElasticsearchPersistWriter
public void write(StreamsDatum streamsDatum)
write
in interface StreamsPersistWriter
write
in class ElasticsearchPersistWriter
public void delete(String index, String type, String id)
index
- indextype
- typeid
- idpublic void add(org.elasticsearch.action.delete.DeleteRequest request)
request
- requestCopyright © 2018 The Apache Software Foundation. All rights reserved.