Class ValueReader
java.lang.Object
org.apache.nifi.processors.hadoop.ValueReader
- All Implemented Interfaces:
SequenceFileReader<Set<org.apache.nifi.flowfile.FlowFile>>
public class ValueReader
extends Object
implements SequenceFileReader<Set<org.apache.nifi.flowfile.FlowFile>>
This class reads a SequenceFile and generates FlowFiles, one per each KeyValue Pair in the SequenceFile. The FlowFile name is the key, which is typically a file name but may not be; the FlowFile
content is the value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final Patternprivate final org.apache.nifi.processor.ProcessSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.nifi.flowfile.FlowFile> readSequenceFile(org.apache.hadoop.fs.Path file, org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.FileSystem fileSystem)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
LOOKS_LIKE_FILENAME
-
session
private final org.apache.nifi.processor.ProcessSession session
-
-
Constructor Details
-
ValueReader
public ValueReader(org.apache.nifi.processor.ProcessSession session)
-
-
Method Details
-
readSequenceFile
public Set<org.apache.nifi.flowfile.FlowFile> readSequenceFile(org.apache.hadoop.fs.Path file, org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.FileSystem fileSystem) throws IOException - Specified by:
readSequenceFilein interfaceSequenceFileReader<Set<org.apache.nifi.flowfile.FlowFile>>- Throws:
IOException
-