(Object other)
| 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); |
no test coverage detected