public class SqlFetcher<T> extends Fetcher<T>
PrefetchSqlFirehoseFactory.
See the javadoc of PrefetchSqlFirehoseFactory for more details.| Modifier and Type | Method and Description |
|---|---|
protected long |
download(T object,
File outFile)
Downloads the entire resultset object into a file.
|
protected OpenObject<T> |
generateOpenObject(T object)
Generates an instance of
OpenObject for the given object. |
getFetchConfig, hasNext, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected long download(T object, File outFile) throws IOException
download in class Fetcher<T>object - sql query for which the resultset is to be downloadedoutFile - a file which the object data is storedIOExceptionprotected OpenObject<T> generateOpenObject(T object) throws IOException
OpenObject for the given object. This is usually called
when prefetching is disabled. The retry is performed at the query execution layer.generateOpenObject in class Fetcher<T>IOExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.