Class Interpreter.DuplicatingSink

  • All Implemented Interfaces:
    Sink
    Enclosing class:
    Interpreter

    private static class Interpreter.DuplicatingSink
    extends java.lang.Object
    implements Sink
    Implementation of Sink using a ArrayDeque.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.util.ArrayDeque<Row>> queues  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DuplicatingSink​(java.util.List<java.util.ArrayDeque<Row>> queues)  
    • Field Detail

      • queues

        private java.util.List<java.util.ArrayDeque<Row>> queues
    • Constructor Detail

      • DuplicatingSink

        private DuplicatingSink​(java.util.List<java.util.ArrayDeque<Row>> queues)
    • Method Detail

      • send

        public void send​(Row row)
                  throws java.lang.InterruptedException
        Specified by:
        send in interface Sink
        Throws:
        java.lang.InterruptedException
      • end

        public void end()
                 throws java.lang.InterruptedException
        Specified by:
        end in interface Sink
        Throws:
        java.lang.InterruptedException
      • setSourceEnumerable

        public void setSourceEnumerable​(Enumerable<Row> enumerable)
                                 throws java.lang.InterruptedException
        Description copied from interface: Sink
        This method is temporary. It will be removed without notice.
        Specified by:
        setSourceEnumerable in interface Sink
        Throws:
        java.lang.InterruptedException