public SpecificReversedSerializer(ReversedType type) { Preconditions.checkNotNull(type); AbstractType<?> compType = type.baseType; reversedTypeName = compType.toString(); reversedTypeName = ComparatorType.getShadedTypeName(reversedTypeName); this.reversedComparatorType = ComparatorType.getByClassName(reversedTypeName); }
public SerializerPackageImpl setValueType(ByteBuffer columnName, String valueType) throws UnknownComparatorException { ComparatorType type = ComparatorType.getByClassName(valueType); if (type == null) { throw new UnknownComparatorException(valueType); } this.valueSerializers.put(columnName, type.getSerializer()); return this; }
public SerializerPackageImpl setDefaultValueType(String valueType) throws UnknownComparatorException { // Determine the VALUE serializer. There is always a default serializer // and potentially column specific serializers ComparatorType type = ComparatorType.getByClassName(valueType); if (type == null) { throw new UnknownComparatorException(valueType); } this.defaultValueSerializer = type.getSerializer(); return this; }
@SuppressWarnings("rawtypes") public SerializerPackageImpl setKeyType(String keyType) throws UnknownComparatorException { String comparatorType = StringUtils.substringBefore(keyType, "("); ComparatorType type = ComparatorType.getByClassName(comparatorType);
ComparatorType type = ComparatorType.getByClassName(comparatorType); if (type == null) { throw new UnknownComparatorException(columnType);