public class ElasticsearchPersistUpdater extends ElasticsearchPersistWriter implements StreamsPersistWriter
affectedIndexes, bulkRequest, config, currentBatchBytes, currentBatchItems, manager, OBJECT_MAPPER
Constructor and Description |
---|
ElasticsearchPersistUpdater() |
ElasticsearchPersistUpdater(ElasticsearchWriterConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
add(org.elasticsearch.action.update.UpdateRequest request)
Enqueue UpdateRequest.
|
String |
getId() |
void |
update(String indexName,
String type,
String id,
String parent,
String routing,
String json)
Prepare and en-queue.
|
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 ElasticsearchPersistUpdater()
public ElasticsearchPersistUpdater(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 update(String indexName, String type, String id, String parent, String routing, String json)
indexName
- indexNametype
- typeid
- idparent
- parentrouting
- routingjson
- jsonUpdateRequest
public void add(org.elasticsearch.action.update.UpdateRequest request)
request
- requestCopyright © 2018 The Apache Software Foundation. All rights reserved.