Class NullReader


public class NullReader extends DataReader
A data source that produces no records. This can be used as a temporary placeholder until the real data source is ready.
  • Constructor Details

    • NullReader

      public NullReader()
  • Method Details

    • readImpl

      protected Record readImpl() throws Throwable
      Description copied from class: DataReader
      Overridden by subclasses to read the next record from this DataReader. The default implementation of DataReader.read() now insures that this method will not be called again after it returns a null.

      If no record is available, null will be returned.

      Contract for subclasses (see also docs/authoring/DataReader.md):

      Specified by:
      readImpl in class DataReader
      Throws:
      Throwable