Package com.lancedb.lance.spark.internal
Class LanceFragmentColumnarBatchScanner
java.lang.Object
com.lancedb.lance.spark.internal.LanceFragmentColumnarBatchScanner
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionLanceFragmentColumnarBatchScanner(LanceFragmentScanner fragmentScanner, org.apache.arrow.vector.ipc.ArrowReader arrowReader) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()create(int fragmentId, LanceInputPartition inputPartition) org.apache.spark.sql.vectorized.ColumnarBatchboolean
-
Constructor Details
-
LanceFragmentColumnarBatchScanner
public LanceFragmentColumnarBatchScanner(LanceFragmentScanner fragmentScanner, org.apache.arrow.vector.ipc.ArrowReader arrowReader)
-
-
Method Details
-
create
public static LanceFragmentColumnarBatchScanner create(int fragmentId, LanceInputPartition inputPartition) -
loadNextBatch
- Throws:
IOException
-
getCurrentBatch
public org.apache.spark.sql.vectorized.ColumnarBatch getCurrentBatch()- Returns:
- the current batch, the caller responsible for closing the batch
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-