Override iterator in Empty off heap vector values (#13837)

This commit override the iterator method in the empty off-heap vector values. The implementation is just the dense iterator, which handles empty values just fine. We use it elsewhere for similar too.
This commit is contained in:
Chris Hegarty 2024-10-01 10:32:38 +01:00 committed by ChrisHegarty
parent ab07bad1ba
commit 31a58cecf5
3 changed files with 15 additions and 0 deletions

View File

@ -249,6 +249,11 @@ abstract class OffHeapFloatVectorValues extends FloatVectorValues {
throw new UnsupportedOperationException();
}
@Override
public DocIndexIterator iterator() {
return createDenseIterator();
}
@Override
public Bits getAcceptOrds(Bits acceptDocs) {
return null;

View File

@ -263,6 +263,11 @@ abstract class OffHeapByteVectorValues extends ByteVectorValues {
throw new UnsupportedOperationException();
}
@Override
public DocIndexIterator iterator() {
return createDenseIterator();
}
@Override
public Bits getAcceptOrds(Bits acceptDocs) {
return null;

View File

@ -262,6 +262,11 @@ abstract class OffHeapFloatVectorValues extends FloatVectorValues {
throw new UnsupportedOperationException();
}
@Override
public DocIndexIterator iterator() {
return createDenseIterator();
}
@Override
public Bits getAcceptOrds(Bits acceptDocs) {
return null;