public class ElasticsearchPersistReader extends Object implements StreamsPersistReader, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ElasticsearchPersistReader.ElasticsearchPersistReaderTask |
Modifier and Type | Field and Description |
---|---|
protected Queue<StreamsDatum> |
persistQueue |
static String |
STREAMS_ID |
Constructor and Description |
---|
ElasticsearchPersistReader() |
ElasticsearchPersistReader(ElasticsearchReaderConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
String |
getId() |
boolean |
isRunning() |
void |
prepare(Object configuration) |
StreamsResultSet |
readAll() |
StreamsResultSet |
readCurrent() |
StreamsResultSet |
readNew(BigInteger sequence) |
StreamsResultSet |
readRange(org.joda.time.DateTime start,
org.joda.time.DateTime end) |
protected void |
shutdownAndAwaitTermination(ExecutorService pool) |
void |
startStream() |
protected void |
write(StreamsDatum entry) |
public static final String STREAMS_ID
protected volatile Queue<StreamsDatum> persistQueue
public ElasticsearchPersistReader()
public ElasticsearchPersistReader(ElasticsearchReaderConfiguration config)
public String getId()
getId
in interface StreamsOperation
public void startStream()
startStream
in interface StreamsProvider
public void prepare(Object configuration)
prepare
in interface StreamsOperation
public StreamsResultSet readAll()
readAll
in interface StreamsPersistReader
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
public StreamsResultSet readNew(BigInteger sequence)
readNew
in interface StreamsPersistReader
readNew
in interface StreamsProvider
public StreamsResultSet readRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
readRange
in interface StreamsPersistReader
readRange
in interface StreamsProvider
public boolean isRunning()
isRunning
in interface StreamsProvider
public void cleanUp()
cleanUp
in interface StreamsOperation
protected void write(StreamsDatum entry)
protected void shutdownAndAwaitTermination(ExecutorService pool)
Copyright © 2018 The Apache Software Foundation. All rights reserved.