public class S3PersistReader extends Object implements StreamsPersistReader, DatumStatusCountable
Modifier and Type | Field and Description |
---|---|
protected DatumStatusCounter |
countersCurrent |
protected DatumStatusCounter |
countersTotal |
protected static char |
DELIMITER |
protected LineReadWriteUtil |
lineReaderUtil |
protected Queue<StreamsDatum> |
persistQueue |
static String |
STREAMS_ID |
Constructor and Description |
---|
S3PersistReader(S3ReaderConfiguration s3ReaderConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
com.amazonaws.services.s3.AmazonS3Client |
getAmazonS3Client() |
String |
getBucketName() |
DatumStatusCounter |
getDatumStatusCounter() |
Collection<String> |
getFiles() |
String |
getId() |
S3ReaderConfiguration |
getS3ReaderConfiguration() |
boolean |
isRunning() |
void |
prepare(Object configurationObject) |
StreamsResultSet |
readAll() |
StreamsResultSet |
readCurrent() |
StreamsResultSet |
readNew(BigInteger sequence) |
StreamsResultSet |
readRange(org.joda.time.DateTime start,
org.joda.time.DateTime end) |
void |
startStream() |
public static final String STREAMS_ID
protected static final char DELIMITER
protected LineReadWriteUtil lineReaderUtil
protected volatile Queue<StreamsDatum> persistQueue
protected DatumStatusCounter countersTotal
protected DatumStatusCounter countersCurrent
public S3PersistReader(S3ReaderConfiguration s3ReaderConfiguration)
public com.amazonaws.services.s3.AmazonS3Client getAmazonS3Client()
public S3ReaderConfiguration getS3ReaderConfiguration()
public String getBucketName()
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 DatumStatusCounter getDatumStatusCounter()
getDatumStatusCounter
in interface DatumStatusCountable
public Collection<String> getFiles()
public String getId()
getId
in interface StreamsOperation
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
public StreamsResultSet readAll()
readAll
in interface StreamsPersistReader
public void startStream()
startStream
in interface StreamsProvider
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
Copyright © 2018 The Apache Software Foundation. All rights reserved.