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

Method compareWithElementAtPos

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

Source from the content-addressed store, hash-verified

1019 }
1020
1021 protected int compareWithElementAtPos(boolean isNull, int val, SchemaTuple<?> t, int pos) {
1022 int themVal;
1023 boolean themNull;
1024 try {
1025 themVal = t.getInt(pos);
1026 themNull = t.isNull(pos);
1027 } catch (ExecException e) {
1028 throw new RuntimeException("Unable to retrieve int field " + pos + " in given Tuple: " + t, e);
1029 }
1030 return compare(isNull, val, themNull, themVal);
1031 }
1032
1033 protected int compare(boolean usNull, long usVal, boolean themNull, long themVal) {
1034 if (usNull && themNull) {

Callers

nothing calls this directly

Calls 15

compareMethod · 0.95
getIntMethod · 0.65
isNullMethod · 0.65
getLongMethod · 0.65
getFloatMethod · 0.65
getDoubleMethod · 0.65
getBooleanMethod · 0.65
getBytesMethod · 0.65
getDateTimeMethod · 0.65
getBigDecimalMethod · 0.65
getBigIntegerMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected