Class FindLimit0Visitor.RelDataTypeReader

java.lang.Object
org.apache.drill.exec.store.AbstractRecordReader
org.apache.drill.exec.planner.sql.handlers.FindLimit0Visitor.RelDataTypeReader
All Implemented Interfaces:
AutoCloseable, RecordReader
Enclosing class:
FindLimit0Visitor

public static class FindLimit0Visitor.RelDataTypeReader extends AbstractRecordReader
Reader for column names and types.
  • Field Details

  • Constructor Details

  • Method Details

    • setup

      public void setup(OperatorContext context, OutputMutator output) throws ExecutionSetupException
      Description copied from interface: RecordReader
      Configure the RecordReader with the provided schema and the record batch that should be written to.
      Parameters:
      context - operator context for the reader
      output - The place where output for a particular scan should be written. The record reader is responsible for mutating the set of schema values for that particular record.
      Throws:
      ExecutionSetupException
    • next

      public int next()
      Description copied from interface: RecordReader
      Increments this record reader forward, writing via the provided output mutator into the output batch.
      Returns:
      The number of additional records added to the output.
    • close

      public void close() throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Represents RelDataTypeReader content as string, used in query plan json. Example: RelDataTypeReader{columnNames=[col1], columnTypes=[INTERVALYEAR-OPTIONAL]}
      Overrides:
      toString in class AbstractRecordReader
      Returns:
      string representation of RelDataTypeReader content