@Override public int compareTo(HiveVarcharWritable rhs) { return value.compareTo(rhs.value); }
public boolean iterate(Text o) { if (o != null) { if (mEmpty) { mMax = new Text(o); mEmpty = false; } else if (mMax.compareTo(o) < 0) { mMax.set(o); } } return true; }
public boolean iterate(Text o) { if (o != null) { if (mEmpty) { mMin = new Text(o); mEmpty = false; } else if (mMin.compareTo(o) > 0) { mMin.set(o); } } return true; }
private int compareData(RowWithPartVal other) { if (data == null && other.data == null) return 0; else if (data == null) return -1; else return data.compareTo(other.data); }
private int compareData(RowWithPartNRecID other) { if (data == null && other.data == null) return 0; else if (data == null) return -1; else return data.compareTo(other.data); } }
private int comparePartVal(RowWithRecID other) { return partVal.compareTo(other.partVal); }
@Override public int compareTo(SelfDefineSortableKey o) { if (this.typeId != o.typeId) throw new IllegalStateException("Error. Incompatible types"); if (!isNumberFamily()) { return ((Text) this.keyInObj).compareTo(((Text) o.keyInObj)); } else { if (isIntegerFamily()) { return Long.compare((Long) this.keyInObj, (Long) o.keyInObj); } else { return Double.compare((Double) this.keyInObj, (Double) o.keyInObj); } } }
public int compareTo(HiveCharWritable rhs) { return getStrippedValue().compareTo(rhs.getStrippedValue()); }
int compareTo = splitCompareKey.compareTo(scannedCompareKey); if (compareTo <= 0) { location = Optional.of(entry.getValue().toString());
private int comparePartVal(RowWithPartNRecID other) { if (partVal == null && other.partVal == null) { return compareData(other); } else if (partVal == null) { return -1; } else { int rc = partVal.compareTo(other.partVal); if (rc == 0) return compareData(other); else return rc; } }
@Override public int compareTo(Row row) { RowWithPartVal other = (RowWithPartVal) row; if (partVal == null && other.partVal == null) { return compareData(other); } else if (partVal == null) { return -1; } else { int rc = partVal.compareTo(other.partVal); if (rc == 0) return compareData(other); else return rc; } }
Text t2 = (Text) poi2.getPrimitiveWritableObject(o2); return t1 == null ? (t2 == null ? 0 : -1) : (t2 == null ? 1 : t1.compareTo(t2)); } else { String s1 = (String) poi1.getPrimitiveJavaObject(o1);
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) <= 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) < 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) >= 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) > 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) < 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) > 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) >= 0); break; case COMPARE_INT:
t0 = soi0.getPrimitiveWritableObject(o0); t1 = soi1.getPrimitiveWritableObject(o1); result.set(t0.compareTo(t1) <= 0); break; case COMPARE_INT: