Package org.apache.arrow.vector.compare
Class RangeEqualsVisitor
java.lang.Object
org.apache.arrow.vector.compare.RangeEqualsVisitor
- All Implemented Interfaces:
VectorVisitor<Boolean,
Range>
- Direct Known Subclasses:
ApproxEqualsVisitor
Visitor to compare a range of values for vectors.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BiFunction<ValueVector,
ValueVector, Boolean> Default type comparator. -
Constructor Summary
ConstructorDescriptionRangeEqualsVisitor
(ValueVector left, ValueVector right) Constructs a new instance with default type comparator.RangeEqualsVisitor
(ValueVector left, ValueVector right, BiFunction<ValueVector, ValueVector, Boolean> typeComparator) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected boolean
compareDenseUnionVectors
(Range range) protected boolean
compareFixedSizeListVectors
(Range range) protected boolean
compareLargeListVectors
(Range range) protected boolean
compareListVectors
(Range range) protected boolean
compareStructVectors
(Range range) protected boolean
compareUnionVectors
(Range range) protected RangeEqualsVisitor
createInnerVisitor
(ValueVector leftInner, ValueVector rightInner, BiFunction<ValueVector, ValueVector, Boolean> typeComparator) getLeft()
getRight()
boolean
rangeEquals
(Range range) Check range equals.protected boolean
validate
(ValueVector left) Validate the passed left vector, if it is changed, reset and check type.visit
(BaseFixedWidthVector left, Range range) visit
(BaseLargeVariableWidthVector left, Range range) visit
(BaseVariableWidthVector left, Range range) visit
(BaseVariableWidthViewVector left, Range range) visit
(DenseUnionVector left, Range range) visit
(FixedSizeListVector left, Range range) visit
(LargeListVector left, Range range) visit
(ListVector left, Range range) visit
(NonNullableStructVector left, Range range) visit
(UnionVector left, Range range) visit
(ExtensionTypeVector<?> left, Range range) visit
(NullVector left, Range range)
-
Field Details
-
DEFAULT_TYPE_COMPARATOR
Default type comparator.
-
-
Constructor Details
-
RangeEqualsVisitor
Constructs a new instance with default type comparator.- Parameters:
left
- left vectorright
- right vector
-
RangeEqualsVisitor
public RangeEqualsVisitor(ValueVector left, ValueVector right, BiFunction<ValueVector, ValueVector, Boolean> typeComparator) Constructs a new instance.- Parameters:
left
- left vectorright
- right vectortypeComparator
- type comparator to compare vector type.
-
-
Method Details
-
validate
Validate the passed left vector, if it is changed, reset and check type. -
rangeEquals
Check range equals. -
getLeft
-
getRight
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
visit
- Specified by:
visit
in interfaceVectorVisitor<Boolean,
Range>
-
createInnerVisitor
protected RangeEqualsVisitor createInnerVisitor(ValueVector leftInner, ValueVector rightInner, BiFunction<ValueVector, ValueVector, Boolean> typeComparator) -
compareUnionVectors
-
compareDenseUnionVectors
-
compareStructVectors
-
compareBaseFixedWidthVectors
-
compareBaseVariableWidthVectors
-
compareBaseLargeVariableWidthVectors
-
compareBaseVariableWidthViewVectors
-
compareListVectors
-
compareFixedSizeListVectors
-
compareLargeListVectors
-