Package org.voltdb.types

Examples of org.voltdb.types.TimestampType


        }
       
        tuple[0] = coId; // fi_co_id
        tuple[1] = finYear; // fi_year
        tuple[2] = finQuarter + 1; // fi_qtr
        tuple[3] = new TimestampType(EGenDate.getDateFromYMD(finYear, finQuarter * 3, 1)); // fi_qtr_start_date
       
        finRev *= rnd.doubleRange(finDataDownMult, finDataUpMult); // finRev is changed incrementally!
        tuple[4] = finRev; // fi_revenue
       
        finEarn *= rnd.doubleRange(finDataDownMult, finDataUpMult);
View Full Code Here


            inputStructure.setAcctId(0);                                         
            inputStructure.setMaxAcctId(0);                                     
            inputStructure.setSymbol(new String());                  
           
            GregorianCalendar date = new GregorianCalendar(0,0,0,0,0);       
            inputStructure.setStartTradeDts(new TimestampType(date.getTime()))
            inputStructure.setEndTradeDts(new TimestampType(date.getTime()))
        }
        else if( threshold <=  driverCETxnSettings.TL_settings.cur_do_frame1 + driverCETxnSettings.TL_settings.cur_do_frame2 ){
            inputStructure.setFrameToExecute(2);
            inputStructure.setAcctId(generateRandomCustomerAccountId());
            inputStructure.setMaxTrades(driverCETxnSettings.TL_settings.cur_MaxRowsFrame2);
View Full Code Here

            inputStructure.setAcctId(0);                                         
            inputStructure.setMaxAcctId(0);                                     
            inputStructure.setSymbol(new String())
           
            GregorianCalendar date = new GregorianCalendar(0,0,0,0,0);    
            inputStructure.setStartTradeDts(new TimestampType(date.getTime()))
            inputStructure.setEndTradeDts(new TimestampType(date.getTime()));
        }
        else if( threshold <=  driverCETxnSettings.TU_settings.cur_do_frame1 +
                                driverCETxnSettings.TU_settings.cur_do_frame2 ){
          inputStructure.setFrameToExecute(2);
            inputStructure.setMaxTrades(driverCETxnSettings.TU_settings.cur_MaxRowsFrame2);
View Full Code Here

        tuple[3] = namesAndtaxId[1]; // c_l_name
        tuple[4] = namesAndtaxId[0]; // c_f_name
        tuple[5] = person.getMiddleName(cid); // c_m_name
        tuple[6] = person.getGender(cid); // c_gndr
        tuple[7] = (short)CustomerSelection.getTier(cid).ordinal() + 1; // c_tier
        tuple[8] = new TimestampType(getDOB()); // c_dob
        tuple[9] = getAddrID(cid); // c_ad_id
       
        tuple[10] = usCountryCode; // c_ctry_1
        tuple[11] = getAreaCode(1, cid); // c_area_1
        tuple[12] = getLocal(); // c_local_1
View Full Code Here

        tuple[3] = compRecord[3]; // co_in
        tuple[4] = generateSP(coId); // co_sp_rate
        tuple[5] = person.getFirstName(multCEO * coId) + " " + person.getLastName(multCEO * coId); // co_ceo
        tuple[6] = ++companyAddrId; // co_ad_id
        tuple[7] = compRecord[4]; // co_desc
        tuple[8] = new TimestampType(EGenDate.getDateFromDayNo(openDay)); // co_open_date
       
        return tuple;
    }
View Full Code Here

        tuple[3] = newsHeadSumItem[2]; // ni_item
       
        // generating date
        int dayAdd = rnd.intRange(0, newsItemMaxDaysAgo);
        int msecAdd = rnd.intRange(0, 3600 * 24 * 1000); // msecs per day
        tuple[4] = new TimestampType(EGenDate.addDaysMsecs(newsbaseDate, (-1) * dayAdd, (-1) * msecAdd, false)); // ni_dts
       
        // source and author
        int authorKey = rnd.intRange(0, lastNamesFile.getMaxKey());
        int sourceKey = rnd.intRange(0, lastNamesFile.getMaxKey());
        tuple[5] = lastNamesFile.getTupleByKey(authorKey)[0]; // ni_author
View Full Code Here

public class TTradeUpdateTxnInput {
   
    public TTradeUpdateTxnInput(){
        trade_id = new long [TPCEConstants.TradeUpdateFrame1MaxRows];
        symbol = new String();
        start_trade_dts = new TimestampType(new GregorianCalendar(0,0,0,0,0,0).getTime());
        end_trade_dts = new TimestampType(new GregorianCalendar(0,0,0,0,0,0).getTime());
    }
View Full Code Here

     * Start the timer used to keep track of how long we are searching for
     * solutions
     */
    public TimestampType startGlobalSearchTimer() {
        if (this.start_time == null) {
            this.start_time = new TimestampType();
        }
        return (this.start_time);
    }
View Full Code Here

    public TimestampType getGlobalStopTime() {
        long stop = 9999999;
        if (this.limit_total_time != null && this.limit_total_time >= 0) {
            stop = (this.limit_total_time * 1000);
        }
        return new TimestampType((this.startGlobalSearchTimer().getMSTime() + stop) * 1000);
    }
View Full Code Here

        long now = System.currentTimeMillis();
        long stop = 9999999;
        if (this.limit_local_time != null && this.limit_local_time >= 0) {
            stop = (this.limit_local_time * 1000);
        }
        return new TimestampType((now + stop) * 1000);
    }
View Full Code Here

TOP

Related Classes of org.voltdb.types.TimestampType

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.