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

Method toString

src/org/apache/pig/builtin/COV.java:111–126  ·  view source on GitHub ↗

Function to return argument of constructor as string. It append ( and ) at starting and end or argument respectively. If default constructor is called is returns empty string. @return argument of constructor

()

Source from the content-addressed store, hash-verified

109 * @return argument of constructor
110 */
111 @Override
112 public String toString() {
113 if(flag){
114 StringBuilder sb = new StringBuilder();
115 sb.append('(');
116 if(schemaName!=null){
117 for (String sch : schemaName) {
118 sb.append('\'' + sch + '\'' + ",");
119 }
120 sb.deleteCharAt(sb.length()-1);
121 }
122 sb.append(')');
123 return sb.toString();
124 }
125 else return "";
126 }
127 public String getInitial() {
128 return Initial.class.getName();
129 }

Callers 15

getFinalMethod · 0.95
debugOnMethod · 0.45
debugOffMethod · 0.45
openIteratorMethod · 0.45
listPathsMethod · 0.45
buildQueryMethod · 0.45
joinMethod · 0.45
getAbsolutePathMethod · 0.45
getSplitComparableMethod · 0.45
runMethod · 0.45

Calls 2

lengthMethod · 0.80
appendMethod · 0.65

Tested by

no test coverage detected