public class HdfsInputSource extends AbstractInputSource implements SplittableInputSource<org.apache.hadoop.fs.Path>
| Constructor and Description |
|---|
HdfsInputSource(Object inputPaths,
org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
coerceInputPathsToList(Object inputPaths,
String propertyName) |
Stream<InputSplit<org.apache.hadoop.fs.Path>> |
createSplits(InputFormat inputFormat,
SplitHintSpec splitHintSpec) |
int |
estimateNumSplits(InputFormat inputFormat,
SplitHintSpec splitHintSpec) |
protected InputSourceReader |
formattableReader(InputRowSchema inputRowSchema,
InputFormat inputFormat,
File temporaryDirectory) |
static Collection<org.apache.hadoop.fs.Path> |
getPaths(List<String> inputPaths,
org.apache.hadoop.conf.Configuration configuration) |
boolean |
needsFormat() |
SplittableInputSource<org.apache.hadoop.fs.Path> |
withSplit(InputSplit<org.apache.hadoop.fs.Path> split) |
fixedFormatReader, readerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSplittablereaderpublic HdfsInputSource(Object inputPaths, org.apache.hadoop.conf.Configuration configuration)
public static List<String> coerceInputPathsToList(Object inputPaths, String propertyName)
public static Collection<org.apache.hadoop.fs.Path> getPaths(List<String> inputPaths, org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionprotected InputSourceReader formattableReader(InputRowSchema inputRowSchema, InputFormat inputFormat, @Nullable File temporaryDirectory)
formattableReader in class AbstractInputSourcepublic Stream<InputSplit<org.apache.hadoop.fs.Path>> createSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec) throws IOException
createSplits in interface SplittableInputSource<org.apache.hadoop.fs.Path>IOExceptionpublic int estimateNumSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec) throws IOException
estimateNumSplits in interface SplittableInputSource<org.apache.hadoop.fs.Path>IOExceptionpublic SplittableInputSource<org.apache.hadoop.fs.Path> withSplit(InputSplit<org.apache.hadoop.fs.Path> split)
withSplit in interface SplittableInputSource<org.apache.hadoop.fs.Path>public boolean needsFormat()
needsFormat in interface InputSourceCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.