public class FetchingSession<T extends FetchingElement> extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected AggregatorIterator<T> |
aggregatorIterator |
protected FetchingBuffer<T> |
buffer |
protected Fetcher<T> |
fetcher |
protected Thread |
fetcherThread |
protected org.apache.log4j.Logger |
logger |
protected CloseableIterator<T> |
source |
Constructor and Description |
---|
FetchingSession(CloseableIterator<T> source,
FetchingBuffer<T> buffer) |
Modifier and Type | Method and Description |
---|---|
void |
addAggregator(Aggregator<T,?> aggregator) |
void |
close() |
Aggregator<T,?> |
getAggregator(String name) |
FetchingBuffer<T> |
getBuffer() |
int |
getBufferSize() |
boolean |
isComplete() |
protected void |
setupAggregatorIterator() |
void |
startFetching() |
protected org.apache.log4j.Logger logger
protected FetchingBuffer<T extends FetchingElement> buffer
protected Fetcher<T extends FetchingElement> fetcher
protected Thread fetcherThread
protected CloseableIterator<T extends FetchingElement> source
protected AggregatorIterator<T extends FetchingElement> aggregatorIterator
public FetchingSession(CloseableIterator<T> source, FetchingBuffer<T> buffer)
public void addAggregator(Aggregator<T,?> aggregator)
protected void setupAggregatorIterator()
public Aggregator<T,?> getAggregator(String name)
public void startFetching()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean isComplete()
public FetchingBuffer<T> getBuffer() throws Exception
Exception
Copyright © 2016. All Rights Reserved.