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 Classes
    Modifier and Type
    Class
    Description
    private static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
    private static final Pattern
     
    private final org.apache.nifi.processor.ProcessSession
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ValueReader(org.apache.nifi.processor.ProcessSession session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • LOOKS_LIKE_FILENAME

      private static final Pattern 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:
      readSequenceFile in interface SequenceFileReader<Set<org.apache.nifi.flowfile.FlowFile>>
      Throws:
      IOException