@Override public TypeComparator<T> duplicate() { return new GenericTypeComparator<T>(this); }
@Override public boolean isNormalizedKeyPrefixOnly(int keyBytes) { return keyBytes < getNormalizeKeyLen(); }
@SuppressWarnings("unchecked") @Override @PublicEvolving public TypeComparator<T> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig) { if (isKeyType()) { @SuppressWarnings("rawtypes") GenericTypeComparator comparator = new GenericTypeComparator(sortOrderAscending, createSerializer(executionConfig), this.typeClass); return (TypeComparator<T>) comparator; } throw new UnsupportedOperationException("Types that do not implement java.lang.Comparable cannot be used as keys."); }
@Override public boolean isNormalizedKeyPrefixOnly(int keyBytes) { return keyBytes < getNormalizeKeyLen(); }
@Override @SuppressWarnings({ "unchecked", "rawtypes" }) protected TypeComparator<T> createComparator(boolean ascending) { return new GenericTypeComparator(ascending, AbstractGenericTypeComparatorTest.this.createSerializer(this .type), this.type); }
@Override public boolean isNormalizedKeyPrefixOnly(int keyBytes) { return keyBytes < getNormalizeKeyLen(); }
@Override public TypeComparator<T> duplicate() { return new GenericTypeComparator<T>(this); }
@Override public TypeComparator<T> duplicate() { return new GenericTypeComparator<T>(this); }
@SuppressWarnings("unchecked") @Override @PublicEvolving public TypeComparator<T> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig) { if (isKeyType()) { @SuppressWarnings("rawtypes") GenericTypeComparator comparator = new GenericTypeComparator(sortOrderAscending, createSerializer(executionConfig), this.typeClass); return (TypeComparator<T>) comparator; } throw new UnsupportedOperationException("Types that do not implement java.lang.Comparable cannot be used as keys."); }
@SuppressWarnings("unchecked") @Override @PublicEvolving public TypeComparator<T> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig) { if (isKeyType()) { @SuppressWarnings("rawtypes") GenericTypeComparator comparator = new GenericTypeComparator(sortOrderAscending, createSerializer(executionConfig), this.typeClass); return (TypeComparator<T>) comparator; } throw new UnsupportedOperationException("Types that do not implement java.lang.Comparable cannot be used as keys."); }