Examples of asApproximateJavaDate()


Examples of org.voltdb.types.TimestampType.asApproximateJavaDate()

            voltQueueSQL(selectFinancial, co_id);
            VoltTable[] results = voltExecuteSQL();
            assert (results[0].advanceRow());

            TimestampType orig_start_timestamp = results[0].getTimestampAsTimestamp(0);
            Date qtr_start_date = orig_start_timestamp.asApproximateJavaDate();
            Calendar c = Calendar.getInstance();
            c.setTime(qtr_start_date);
            int qtr_start_day = c.get(Calendar.DAY_OF_MONTH);
            long delta = DAY_MICROSECONDS;
View Full Code Here

Examples of org.voltdb.types.TimestampType.asApproximateJavaDate()

        TimestampType type_null_timestamp;
        if (row[++col].equals("NULL")) {  // col 17
            type_null_timestamp = null;
        } else {
            TimestampType tmp = new TimestampType(row[col]);
            type_null_timestamp = new TimestampType(tmp.asApproximateJavaDate());
        }

        if ( (!(type_null_timestamp == null && valid.type_null_timestamp == null)) &&
             (!type_null_timestamp.equals(valid.type_null_timestamp)) )
        {
View Full Code Here

Examples of org.voltdb.types.TimestampType.asApproximateJavaDate()

                } else if (type == VoltType.TIMESTAMP) {
                    final TimestampType timestamp = vt.getTimestampAsTimestamp(ii);
                    if (vt.wasNull()) {
                        fields[ii] = Constants.CSV_NULL;
                    } else {
                        fields[ii] = sdf.format(timestamp.asApproximateJavaDate());
                        fields[ii] += String.format("%03d", timestamp.getUSec());
                    }
                } else if (type == VoltType.VARBINARY) {
                   byte bytes[] = vt.getVarbinary(ii);
                   if (vt.wasNull()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.