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

Method compareTo

src/org/apache/pig/data/SchemaTuple.java:283–299  ·  view source on GitHub ↗
(Object other)

Source from the content-addressed store, hash-verified

281
282 //TODO also need to implement the raw comparator
283 @SuppressWarnings("unchecked")
284 @Override
285 public int compareTo(Object other) {
286 if (isSpecificSchemaTuple(other)) {
287 return compareToSpecific((T)other);
288 }
289
290 if (other instanceof SchemaTuple<?>) {
291 return compareTo((SchemaTuple<?>)other, false);
292 }
293
294 if (other instanceof Tuple) {
295 return compareTo((Tuple)other, false);
296 }
297
298 return DataType.compare(this, other);
299 }
300
301 public int compareTo(Tuple t) {
302 return compareTo(t, true);

Callers 7

equalsMethod · 0.95
equalsMethod · 0.45
compareMethod · 0.45
compareMethod · 0.45

Calls 10

isSpecificSchemaTupleMethod · 0.95
compareToSpecificMethod · 0.95
compareMethod · 0.95
sizeMethod · 0.95
getMethod · 0.95
compareSizeMethod · 0.95
getClassMethod · 0.80
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected