@Override
  public boolean isDistanceGreater(Object v1, Object v2, int amt) {
    if (v1 != null && v2 != null) {
      boolean b1 = PrimitiveObjectInspectorUtils.getBoolean(v1,
          (PrimitiveObjectInspector) expressionDef.getOI());
      boolean b2 = PrimitiveObjectInspectorUtils.getBoolean(v2,
          (PrimitiveObjectInspector) expressionDef.getOI());

      return Boolean.compare(b1, b2) > 0;
    }
    return false;
  }
Calculates ranges on longs representing localtz timestamps in seconds returned by
IntervalDayTimeColumnVector.getTotalSeconds. Refer to VectorPTFGroupBatches.getValue for
INTERVAL_DAY_TIME.
ql/src/java/org/apache/hadoop/hive/ql/udf/ptf/ValueBoundaryScanner.java