&& StringUtils.endsWith(valueToExtract, endTypeFunction);
}
public static GenericType constructGenericType(String rowKeyOrColumnName, ComparatorType type,
GenericTypeEnum[] typesBelongingCompositeType) {
GenericType key = null;
if (type == null) {
key = new GenericType(rowKeyOrColumnName, GenericTypeEnum.BYTES_TYPE);
} else if (ComparatorType.COMPOSITETYPE.getTypeName().equals(type.getTypeName())) {
/* composite type */
try {
key = new GenericType(StringUtils.split(rowKeyOrColumnName, ":"), typesBelongingCompositeType);
} catch (IllegalArgumentException e) {
throw new ParseException(rowKeyOrColumnName
+ " doesn't fit with the schema declaration of your composite type");
}
} else {
/* simple type */
key = new GenericType(rowKeyOrColumnName, GenericTypeEnum.fromValue(type.getTypeName()));
}
return key;
}