public abstract class Fetcher<T> extends Object implements Iterator<org.apache.druid.data.input.impl.prefetch.OpenedObject<T>>
PrefetchableTextFilesFirehoseFactory and PrefetchSqlFirehoseFactory.
See the javadoc of PrefetchableTextFilesFirehoseFactory for more details.| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
download(T object,
File outFile)
Downloads an object into a file.
|
protected abstract org.apache.druid.data.input.impl.prefetch.OpenedObject<T> |
generateOpenObject(T object)
Generates an instance of
OpenedObject for the given object. |
boolean |
hasNext() |
org.apache.druid.data.input.impl.prefetch.OpenedObject<T> |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected abstract long download(T object, File outFile) throws IOException
object - an object to be downloadedoutFile - a file which the object data is storedIOExceptionprotected abstract org.apache.druid.data.input.impl.prefetch.OpenedObject<T> generateOpenObject(T object) throws IOException
OpenedObject for the given object.IOExceptionpublic boolean hasNext()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.