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

Method compare

src/org/apache/pig/data/SchemaTuple.java:1006–1015  ·  view source on GitHub ↗
(boolean usNull, int usVal, boolean themNull, int themVal)

Source from the content-addressed store, hash-verified

1004 }
1005
1006 protected int compare(boolean usNull, int usVal, boolean themNull, int themVal) {
1007 if (usNull && themNull) {
1008 return 0;
1009 } else if (themNull) {
1010 return 1;
1011 } else if (usNull) {
1012 return -1;
1013 }
1014 return compare(usVal, themVal);
1015 }
1016
1017 protected int compare(int val, int themVal) {
1018 return val == themVal ? 0 : (val > themVal ? 1 : -1);

Callers 3

compareSizeMethod · 0.95
compareElementAtPosMethod · 0.95

Calls 3

compareMethod · 0.95
compareMethod · 0.95
compareToMethod · 0.45

Tested by

no test coverage detected