Refactor TupleTypeInfo and add GenericPairComparator
Now we have TupleTypeInfoBase, TupleSerializerBase, and TupleComparatorBase. They are now super classes of TupleTypeInfo and the others. Also rename compare on DataInputView to compareSerialized because Scala cannot distinguish between the to compare methods for some reason. This change is necessary for allowing the Scala API to reuse most of the functionality. The GenericPairComparator uses the new extractKeys method of TypeComparator to compare values of any type. This replaces TuplePairComparator and some other special-case pair comparators. This is preparatory work for enabling support for Scala Tuples and POJO comparators.
Showing
想要评论请 注册 或 登录