V - vector type.public class VectorRunDeduplicator<V extends ValueVector> extends Object implements AutoCloseable
| Constructor and Description |
|---|
VectorRunDeduplicator(V vector,
BufferAllocator allocator)
Constructs a vector run deduplicator for a given vector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getRunCount()
Gets the number of values which are different from their predecessor.
|
void |
populateDeduplicatedValues(V outVector)
Gets the vector with deduplicated adjacent values removed.
|
void |
populateRunLengths(IntVector lengthVector)
Gets the length of each distinct value.
|
public VectorRunDeduplicator(V vector, BufferAllocator allocator)
vector - the vector to deduplicate. Ownership is NOT taken.allocator - the allocator used for allocating buffers for start indices.public int getRunCount()
public void populateDeduplicatedValues(V outVector)
outVector - the output vector.public void populateRunLengths(IntVector lengthVector)
lengthVector - the vector for holding length values.public void close()
close in interface AutoCloseableCopyright © 2024 The Apache Software Foundation. All rights reserved.