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, setVeryLargeBulkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUp, preparepublic ElasticsearchPersistUpdater()
public ElasticsearchPersistUpdater(ElasticsearchWriterConfiguration config)
public String getId()
getId in interface StreamsOperationgetId in class ElasticsearchPersistWriterpublic void write(StreamsDatum streamsDatum)
write in interface StreamsPersistWriterwrite in class ElasticsearchPersistWriterpublic void update(String indexName, String type, String id, String parent, String routing, String json)
indexName - indexNametype - typeid - idparent - parentrouting - routingjson - jsonUpdateRequestpublic void add(org.elasticsearch.action.update.UpdateRequest request)
request - requestCopyright © 2018 The Apache Software Foundation. All rights reserved.