public class LocalFirehoseFactory extends AbstractTextFilesFirehoseFactory<File>
| Constructor and Description |
|---|
LocalFirehoseFactory(File baseDir,
String filter,
StringInputRowParser parser) |
| Modifier and Type | Method and Description |
|---|---|
File |
getBaseDir() |
String |
getFilter() |
StringInputRowParser |
getParser() |
protected Collection<File> |
initObjects() |
protected InputStream |
openObjectStream(File object) |
FiniteFirehoseFactory<StringInputRowParser,File> |
withSplit(InputSplit<File> split) |
protected InputStream |
wrapObjectStream(File object,
InputStream stream) |
connect, getNumSplits, getObjects, getSplits, initializeObjectsIfNeededclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSplittableconnect, connectForSamplerpublic LocalFirehoseFactory(File baseDir, String filter, @Nullable StringInputRowParser parser)
public File getBaseDir()
public String getFilter()
@Nullable public StringInputRowParser getParser()
protected Collection<File> initObjects()
initObjects in class AbstractTextFilesFirehoseFactory<File>protected InputStream openObjectStream(File object) throws IOException
openObjectStream in class AbstractTextFilesFirehoseFactory<File>IOExceptionprotected InputStream wrapObjectStream(File object, InputStream stream) throws IOException
wrapObjectStream in class AbstractTextFilesFirehoseFactory<File>IOExceptionpublic FiniteFirehoseFactory<StringInputRowParser,File> withSplit(InputSplit<File> split)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.