Package org.apache.arrow.vector.complex
Class EmptyValuePopulator
java.lang.Object
org.apache.arrow.vector.complex.EmptyValuePopulator
A helper class that is used to track and populate empty values in repeated value vectors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
populate
(int lastIndex) Marks all values since the last set as empty.
-
Constructor Details
-
EmptyValuePopulator
-
-
Method Details
-
populate
public void populate(int lastIndex) Marks all values since the last set as empty. The last set value is obtained from underlying offsets vector.- Parameters:
lastIndex
- the last index (inclusive) in the offsets vector until which empty population takes place- Throws:
IndexOutOfBoundsException
- if lastIndex is negative or greater than offsets capacity.
-