Package org.apache.drill.exec.expr.holders

Examples of org.apache.drill.exec.expr.holders.IntervalHolder


        TimeStampHolder timeStampHolder = new TimeStampHolder();
        timeStampHolder.value = fieldReader.readLong();
        mapWriter.timeStamp(MappifyUtility.fieldValue).write(timeStampHolder);
        break;
      case INTERVAL:
        IntervalHolder intervalHolder = new IntervalHolder();
        Period period = fieldReader.readPeriod();
        intervalHolder.months = (period.getYears() * org.apache.drill.exec.expr.fn.impl.DateUtility.yearsToMonths) + period.getMonths();
        intervalHolder.days = period.getDays();
        intervalHolder.milliseconds = (period.getHours() * org.apache.drill.exec.expr.fn.impl.DateUtility.hoursToMillis) +
            (period.getMinutes() * org.apache.drill.exec.expr.fn.impl.DateUtility.minutesToMillis) +
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.expr.holders.IntervalHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.