public class HdfsInputSource extends AbstractInputSource implements SplittableInputSource<List<org.apache.hadoop.fs.Path>>
DEFAULT_SPLIT_HINT_SPEC| 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<List<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<List<org.apache.hadoop.fs.Path>> |
withSplit(InputSplit<List<org.apache.hadoop.fs.Path>> split) |
fixedFormatReader, readerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSplitHintSpecOrDefault, isSplittablereaderpublic 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<List<org.apache.hadoop.fs.Path>>> createSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec) throws IOException
createSplits in interface SplittableInputSource<List<org.apache.hadoop.fs.Path>>IOExceptionpublic int estimateNumSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec) throws IOException
estimateNumSplits in interface SplittableInputSource<List<org.apache.hadoop.fs.Path>>IOExceptionpublic SplittableInputSource<List<org.apache.hadoop.fs.Path>> withSplit(InputSplit<List<org.apache.hadoop.fs.Path>> split)
withSplit in interface SplittableInputSource<List<org.apache.hadoop.fs.Path>>public boolean needsFormat()
needsFormat in interface InputSourceCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.