Class Dataset.ColumnsDataReader

Enclosing class:
Dataset

public static class Dataset.ColumnsDataReader extends DataReader
Reads one summary record per column, with its name, counts, inferred type, lengths and sample value.
  • Constructor Details

    • ColumnsDataReader

      public ColumnsDataReader(List<Column> columns)
  • Method Details

    • open

      public void open()
      Description copied from class: DataEndpoint
      Makes this endpoint ready for reading or writing.
      Overrides:
      open in class DataEndpoint
    • 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
    • available

      public int available()
      Description copied from class: DataReader
      Returns the number of records that can probably be read without blocking.
      Overrides:
      available in class DataReader