public class FileFetcher<T> extends Fetcher<T>
PrefetchableTextFilesFirehoseFactory.
See the javadoc of PrefetchableTextFilesFirehoseFactory for more details.| Modifier and Type | Method and Description |
|---|---|
protected long |
download(T object,
File outFile)
Downloads an object.
|
protected org.apache.druid.data.input.impl.prefetch.OpenedObject<T> |
generateOpenObject(T object)
Generates an instance of
OpenedObject for which the underlying stream may be re-opened and retried
based on the exception and retry condition. |
int |
getMaxFetchRetry() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic int getMaxFetchRetry()
protected long download(T object, File outFile) throws IOException
maxFetchRetry
times and throws an exception.download in class Fetcher<T>object - an object to be downloadedoutFile - a file which the object data is storedIOExceptionprotected org.apache.druid.data.input.impl.prefetch.OpenedObject<T> generateOpenObject(T object) throws IOException
OpenedObject for which the underlying stream may be re-opened and retried
based on the exception and retry condition.generateOpenObject in class Fetcher<T>IOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.