public interface FirehoseV2 extends Closeable
The implementation of this interface only needs to be minimally thread-safe. The methods ##start(), ##advance(), ##currRow() and ##makeCommitter() are all called from the same thread. ##makeCommitter(), however, returns a callback which will be called on another thread, so the operations inside of that callback must be thread-safe.
Modifier and Type | Method and Description |
---|---|
boolean |
advance()
Advance the firehose to the next offset.
|
InputRow |
currRow() |
Committer |
makeCommitter()
Returns a Committer that will "commit" everything read up to the point at which makeCommitter() is called.
|
void |
start()
For initial start
|
boolean advance()
InputRow currRow()
Committer makeCommitter()
A simple implementation of this interface might do nothing when run() is called, and save proper commit information in metadata
Copyright © 2011–2017. All rights reserved.