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

Method compareElementAtPos

src/org/apache/pig/data/SchemaTuple.java:996–1004  ·  view source on GitHub ↗
(int val, SchemaTuple<?> t, int pos)

Source from the content-addressed store, hash-verified

994 }
995
996 protected int compareElementAtPos(int val, SchemaTuple<?> t, int pos) {
997 int themVal;
998 try {
999 themVal = t.getInt(pos);
1000 } catch (ExecException e) {
1001 throw new RuntimeException("Unable to retrieve int field " + pos + " in given Tuple: " + t, e);
1002 }
1003 return compare(val, themVal);
1004 }
1005
1006 protected int compare(boolean usNull, int usVal, boolean themNull, int themVal) {
1007 if (usNull && themNull) {

Callers

nothing calls this directly

Calls 2

compareMethod · 0.95
getIntMethod · 0.65

Tested by

no test coverage detected