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

Method getAll

src/org/apache/pig/data/SchemaTuple.java:267–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265
266 //TODO could generate a faster getAll in the code
267 @Override
268 public List<Object> getAll() {
269 List<Object> l = Lists.newArrayListWithCapacity(size());
270 for (int i = 0; i < size(); i++) {
271 try {
272 l.add(get(i));
273 } catch (ExecException e) {
274 throw new RuntimeException("Error getting index " + i + " from SchemaTuple", e);
275 }
276 }
277 return l;
278 }
279
280 public abstract boolean isSpecificSchemaTuple(Object o);
281

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
getMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected