Class AbstractFileRecordReader<P>

  • Type Parameters:
    P - type of the record's payload
    All Implemented Interfaces:
    RecordReader<P>

    public abstract class AbstractFileRecordReader<P>
    extends java.lang.Object
    implements RecordReader<P>
    Abstract class for all file readers.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.charset.Charset charset  
      protected java.nio.file.Path path  
    • Field Detail

      • path

        protected java.nio.file.Path path
      • charset

        protected java.nio.charset.Charset charset
    • Constructor Detail

      • AbstractFileRecordReader

        protected AbstractFileRecordReader​(java.nio.file.Path path)
        Parameters:
        path - to read data from
      • AbstractFileRecordReader

        public AbstractFileRecordReader​(java.nio.file.Path path,
                                        java.nio.charset.Charset charset)
        Parameters:
        path - to read data from
        charset - of the input file
    • Method Detail

      • getPath

        public java.nio.file.Path getPath()
      • getCharset

        public java.nio.charset.Charset getCharset()