@param schemaString a String representation of the Schema without any enclosing curly-braces. Not for use with Schema#toString @return Schema instance @throws ParserException
(String schemaString)
| 218 | * @throws ParserException |
| 219 | */ |
| 220 | public static Schema getSchemaFromString(String schemaString) throws ParserException { |
| 221 | LogicalSchema schema = parseSchema(schemaString); |
| 222 | Schema result = org.apache.pig.newplan.logical.Util.translateSchema(schema); |
| 223 | Schema.setSchemaDefaultType(result, DataType.BYTEARRAY); |
| 224 | return result; |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * getSchemaFromBagSchemaString |