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

Method getTuplesFromConstantTupleStrings

test/org/apache/pig/test/Util.java:805–811  ·  view source on GitHub ↗

Parse list of strings in to list of tuples, convert quoted strings into @param tupleConstants @return @throws ParserException

(String[] tupleConstants)

Source from the content-addressed store, hash-verified

803 * @throws ParserException
804 */
805 public static List<Tuple> getTuplesFromConstantTupleStrings(String[] tupleConstants) throws ParserException {
806 List<Tuple> result = new ArrayList<Tuple>(tupleConstants.length);
807 for(int i = 0; i < tupleConstants.length; i++) {
808 result.add((Tuple) getPigConstant(tupleConstants[i]));
809 }
810 return result;
811 }
812
813 /**
814 * Parse list of strings in to list of tuples, convert quoted strings into

Calls 2

getPigConstantMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected