public class HdfsFirehoseFactory extends PrefetchableTextFilesFirehoseFactory<org.apache.hadoop.fs.Path>
| Constructor and Description |
|---|
HdfsFirehoseFactory(org.apache.hadoop.conf.Configuration conf,
Object inputPaths,
Long maxCacheCapacityBytes,
Long maxFetchCapacityBytes,
Long prefetchTriggerBytes,
Long fetchTimeout,
Integer maxFetchRetry) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getInputPaths() |
protected com.google.common.base.Predicate<Throwable> |
getRetryCondition() |
protected Collection<org.apache.hadoop.fs.Path> |
initObjects() |
boolean |
isSplittable() |
protected InputStream |
openObjectStream(org.apache.hadoop.fs.Path path) |
protected InputStream |
openObjectStream(org.apache.hadoop.fs.Path path,
long start) |
String |
toString() |
FiniteFirehoseFactory<StringInputRowParser,org.apache.hadoop.fs.Path> |
withSplit(InputSplit<org.apache.hadoop.fs.Path> split) |
protected InputStream |
wrapObjectStream(org.apache.hadoop.fs.Path path,
InputStream stream) |
connect, connectForSampler, getFetchTimeout, getMaxCacheCapacityBytes, getMaxFetchCapacityBytes, getMaxFetchRetry, getPrefetchTriggerBytesgetNumSplits, getObjects, getSplits, initializeObjectsIfNeededclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconnectprotected Collection<org.apache.hadoop.fs.Path> initObjects() throws IOException
initObjects in class AbstractTextFilesFirehoseFactory<org.apache.hadoop.fs.Path>IOExceptionprotected InputStream openObjectStream(org.apache.hadoop.fs.Path path) throws IOException
openObjectStream in class AbstractTextFilesFirehoseFactory<org.apache.hadoop.fs.Path>IOExceptionprotected InputStream openObjectStream(org.apache.hadoop.fs.Path path, long start) throws IOException
openObjectStream in class PrefetchableTextFilesFirehoseFactory<org.apache.hadoop.fs.Path>IOExceptionprotected InputStream wrapObjectStream(org.apache.hadoop.fs.Path path, InputStream stream) throws IOException
wrapObjectStream in class AbstractTextFilesFirehoseFactory<org.apache.hadoop.fs.Path>IOExceptionprotected com.google.common.base.Predicate<Throwable> getRetryCondition()
getRetryCondition in class PrefetchableTextFilesFirehoseFactory<org.apache.hadoop.fs.Path>public boolean isSplittable()
public FiniteFirehoseFactory<StringInputRowParser,org.apache.hadoop.fs.Path> withSplit(InputSplit<org.apache.hadoop.fs.Path> split)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.