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 org.apache.druid.data.input.impl.prefetch.OpenedObject<T> |
generateOpenObject(T object)
Generates an instance of
OpenedObject for the given object. |
clone, 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 org.apache.druid.data.input.impl.prefetch.OpenedObject<T> generateOpenObject(T object) throws IOException
OpenedObject 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–2018 The Apache Software Foundation. All rights reserved.