public static ValueBoundaryScanner getScanner(BoundaryDef start, BoundaryDef end,
      OrderDef orderDef, boolean nullsLast) throws HiveException {
    OrderExpressionDef exprDef = orderDef.getExpressions().get(0);
    PrimitiveObjectInspector pOI = (PrimitiveObjectInspector) exprDef.getOI();

    if (pOI != null) {// non-vectorized codepath: PTFOperator
      return new MultiValueBoundaryScanner(start, end, orderDef, nullsLast);
    } else { // vectorized codepath: VectorPTFOperator
      return new MultiPrimitiveValueBoundaryScanner(start, end, orderDef, nullsLast);
    }
  }
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