Interface TupleProcessor

    • Method Summary

      All Methods Instance Methods Abstract 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 process(edu.caltech.nanodb.relations.Tuple) method, so that the tuple-processor knows what the expected tuple-schema will be.
    • Method Detail

      • setSchema

        void setSchema​(Schema schema)
        This method is called once by the query evaluator before any tuples are passed to the process(edu.caltech.nanodb.relations.Tuple) method, so that the tuple-processor knows what the expected tuple-schema will be.
      • process

        void process​(Tuple tuple)
        Processes a single tuple generated from evaluating a query plan.
        Parameters:
        tuple - The tuple to process.
      • finish

        void finish()
        This function is called when all tuples have been produced and passed to the tuple processor.