MCPcopy Create free account
hub / github.com/apache/pig / getSchemaFromString

Method getSchemaFromString

src/org/apache/pig/impl/util/Utils.java:220–225  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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

Callers 15

FixedWidthLoaderMethod · 0.95
prepareToReadMethod · 0.95
prepareToWriteMethod · 0.95
prepareToWriteMethod · 0.95
prepareToWriteMethod · 0.95
testCompileAndResolveMethod · 0.95
testProjectStarMultiMethod · 0.95
testTupleToOtherMethod · 0.95

Calls 3

parseSchemaMethod · 0.95
setSchemaDefaultTypeMethod · 0.95
translateSchemaMethod · 0.80