Class TuplePrinter

  • All Implemented Interfaces:

    public class TuplePrinter
    extends java.lang.Object
    implements TupleProcessor
    This implementation of the tuple-processor interface simply prints out the schema and tuples produced by the SELECT statement.
    • Field Summary

      Modifier and Type Field Description
      private out  
    • Constructor Summary

      Constructor Description
      TuplePrinter​( out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()
      This function is called when all tuples have been produced and passed to the tuple processor.
      void process​(Tuple tuple)
      Processes a single tuple generated from evaluating a query plan.
      void setSchema​(Schema schema)
      This method is called once by the query evaluator before any tuples are passed to the TupleProcessor.process(edu.caltech.nanodb.relations.Tuple) method, so that the tuple-processor knows what the expected tuple-schema will be.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        private out
    • Constructor Detail

      • TuplePrinter

        public TuplePrinter​( out)