Class LanceCountStarPartitionReader

java.lang.Object
com.lancedb.lance.spark.read.LanceCountStarPartitionReader
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.vectorized.ColumnarBatch>

public class LanceCountStarPartitionReader extends Object implements org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.vectorized.ColumnarBatch>
Partition reader for pushed down aggregates. This reader computes the aggregate result directly on the Lance dataset.
  • Constructor Details

    • LanceCountStarPartitionReader

      public LanceCountStarPartitionReader(LanceInputPartition inputPartition)
  • Method Details

    • next

      public boolean next() throws IOException
      Specified by:
      next in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.vectorized.ColumnarBatch>
      Throws:
      IOException
    • get

      public org.apache.spark.sql.vectorized.ColumnarBatch get()
      Specified by:
      get in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.vectorized.ColumnarBatch>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException