Class Interpreter.EnumeratorSource

  • All Implemented Interfaces:
    java.lang.AutoCloseable, Source
    Enclosing class:
    Interpreter

    private static class Interpreter.EnumeratorSource
    extends java.lang.Object
    implements Source
    A Source that is just backed by an Enumerator. The Enumerator is closed when it is finished or by calling close().
    • Constructor Detail

      • EnumeratorSource

        EnumeratorSource​(Enumerator<Row> enumerator)
    • Method Detail

      • receive

        public Row receive()
        Description copied from interface: Source
        Reads a row. Null means end of data.
        Specified by:
        receive in interface Source
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface Source