private TypeInfo parseType() {
Token t = expect("type");
// Is this a primitive type?
PrimitiveTypeEntry primitiveType = PrimitiveObjectInspectorUtils
.getTypeEntryFromTypeName(t.text);
if (primitiveType != null
&& !primitiveType.primitiveCategory.equals(PrimitiveCategory.UNKNOWN)) {
if (primitiveType.isParameterized()) {
primitiveType = primitiveType.addParameters(parseParams());
}
// If type has qualifiers, the TypeInfo needs them in its type string
return TypeInfoFactory.getPrimitiveTypeInfo(primitiveType.toString());
}
// Is this a list type?
if (serdeConstants.LIST_TYPE_NAME.equals(t.text)) {
expect("<");