@Internal public class SplitFetcher<E,SplitT extends SourceSplit> extends Object implements Runnable
Modifier and Type | Method and Description |
---|---|
void |
addSplits(List<SplitT> splitsToAdd)
Add splits to the split fetcher.
|
void |
enqueueTask(SplitFetcherTask task) |
int |
fetcherId() |
SplitReader<E,SplitT> |
getSplitReader() |
void |
pause() |
void |
pauseOrResumeSplits(Collection<SplitT> splitsToPause,
Collection<SplitT> splitsToResume)
Called when some splits of this source instance progressed too much beyond the global
watermark of all subtasks.
|
void |
resume() |
void |
run() |
void |
shutdown()
Shutdown the split fetcher.
|
public void addSplits(List<SplitT> splitsToAdd)
splitsToAdd
- the splits to add.public void pauseOrResumeSplits(Collection<SplitT> splitsToPause, Collection<SplitT> splitsToResume)
SplitReader
, it will relay
the information asynchronously through the split fetcher thread.splitsToPause
- the splits to pausesplitsToResume
- the splits to resumepublic void enqueueTask(SplitFetcherTask task)
public SplitReader<E,SplitT> getSplitReader()
public int fetcherId()
public void shutdown()
public void pause()
public void resume()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.