Class RecordReaderGenericRdfTripleBase

java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,T>
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
RecordReaderRdfNTriples, RecordReaderRdfTurtleTriple

public class RecordReaderGenericRdfTripleBase extends RecordReaderGenericRdfNonAccumulatingBase<org.apache.jena.graph.Triple>
  • Constructor Details

    • RecordReaderGenericRdfTripleBase

      public RecordReaderGenericRdfTripleBase(RecordReaderRdfConf conf)
  • Method Details

    • parse

      protected Stream<org.apache.jena.graph.Triple> parse(InputStream inputStream, boolean isProbe)
      Description copied from class: RecordReaderGenericBase
      Create a flowable from the input stream. The input stream may be incorrectly positioned in which case the Flowable is expected to indicate this by raising an error event.
      Specified by:
      parse in class RecordReaderGenericBase<org.apache.jena.graph.Triple,org.apache.jena.graph.Triple,org.apache.jena.graph.Triple,org.apache.jena.graph.Triple>
      Parameters:
      inputStream - A supplier of input streams. May supply the same underlying stream on each call hence only at most a single stream should be taken from the supplier. Supplied streams are safe to use in try-with-resources blocks (possibly using CloseShieldInputStream). Taken streams should be closed by the client code.
      isProbe - Whether the parser should be configured for probing. For example, it is desireable to suppress porse errors during probing. Also, for probing the parser may optimize itself for minimizing latency of yielding items rather than overall throughput.
      Returns: