minVal = resultSetColToLong(results, 1, sqlDataType); maxVal = resultSetColToLong(results, 2, sqlDataType); List<Long> splitPoints = split(numSplits, minVal, maxVal); List<InputSplit> splits = new ArrayList<InputSplit>(); Date startDate = longToDate(start, sqlDataType); if (sqlDataType == Types.TIMESTAMP) { Date endDate = longToDate(end, sqlDataType); lowClausePrefix + dateToString(startDate), colName + " <= " + dateToString(endDate))); } else { lowClausePrefix + dateToString(startDate), highClausePrefix + dateToString(endDate)));
case Types.TIME: case Types.TIMESTAMP: return new DateSplitter();
case Types.TIME: case Types.TIMESTAMP: return new DateSplitter();
minVal = resultSetColToLong(results, 1, sqlDataType); maxVal = resultSetColToLong(results, 2, sqlDataType); List<Long> splitPoints = split(numSplits, minVal, maxVal); List<InputSplit> splits = new ArrayList<InputSplit>(); Date startDate = longToDate(start, sqlDataType); if (sqlDataType == Types.TIMESTAMP) { Date endDate = longToDate(end, sqlDataType); lowClausePrefix + dateToString(startDate), colName + " <= " + dateToString(endDate))); } else { lowClausePrefix + dateToString(startDate), highClausePrefix + dateToString(endDate)));
case Types.TIME: case Types.TIMESTAMP: return new DateSplitter();
minVal = resultSetColToLong(results, 1, sqlDataType); maxVal = resultSetColToLong(results, 2, sqlDataType); List<Long> splitPoints = split(numSplits, minVal, maxVal); List<InputSplit> splits = new ArrayList<InputSplit>(); Date startDate = longToDate(start, sqlDataType); if (sqlDataType == Types.TIMESTAMP) { Date endDate = longToDate(end, sqlDataType); lowClausePrefix + dateToString(startDate), colName + " <= " + dateToString(endDate))); } else { lowClausePrefix + dateToString(startDate), highClausePrefix + dateToString(endDate)));
case Types.TIME: case Types.TIMESTAMP: return new DateSplitter();
minVal = resultSetColToLong(results, 1, sqlDataType); maxVal = resultSetColToLong(results, 2, sqlDataType); List<Long> splitPoints = split(numSplits, minVal, maxVal); List<InputSplit> splits = new ArrayList<InputSplit>(); Date startDate = longToDate(start, sqlDataType); if (sqlDataType == Types.TIMESTAMP) { Date endDate = longToDate(end, sqlDataType); lowClausePrefix + dateToString(startDate), colName + " <= " + dateToString(endDate))); } else { lowClausePrefix + dateToString(startDate), highClausePrefix + dateToString(endDate)));
case Types.TIME: case Types.TIMESTAMP: return new DateSplitter();
minVal = resultSetColToLong(results, 1, sqlDataType); maxVal = resultSetColToLong(results, 2, sqlDataType); List<Long> splitPoints = split(numSplits, minVal, maxVal); List<InputSplit> splits = new ArrayList<InputSplit>(); Date startDate = longToDate(start, sqlDataType); if (sqlDataType == Types.TIMESTAMP) { Date endDate = longToDate(end, sqlDataType); lowClausePrefix + dateToString(startDate), colName + " <= " + dateToString(endDate))); } else { lowClausePrefix + dateToString(startDate), highClausePrefix + dateToString(endDate)));