Class Scan

java.lang.Object
dev.vortex.api.Scan
All Implemented Interfaces:
Iterator<Partition>

public final class Scan extends Object implements Iterator<Partition>
A lazy handle to a set of partitions.

Once a scan has produced its last partition it is effectively exhausted; native resources are released automatically via VortexCleaner when the scan becomes unreachable.

  • Method Details

    • arrowSchema

      public org.apache.arrow.vector.types.pojo.Schema arrowSchema(org.apache.arrow.memory.BufferAllocator allocator)
      Arrow schema produced by this scan. Must be called before the first call to hasNext()/next().
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Partition>
    • next

      public Partition next()
      Specified by:
      next in interface Iterator<Partition>