Package org.voltdb

Examples of org.voltdb.StoredProcedureInvocation


                    (txnId-1),
                    txnId,
                    System.currentTimeMillis(),
                    true,
                    false,
                    new StoredProcedureInvocation(),
                    0,
                    0,
                    false);
        int hsids = 1;
        buddyHSId = 0;
View Full Code Here


                    (txnId -1),
                    txnId,
                    System.currentTimeMillis(),
                    true,
                    false,
                    new StoredProcedureInvocation(),
                    0,
                    0,
                    false);
        int hsids = 6;
        buddyHSId = 0;
View Full Code Here

                    (txnId - 1),
                    txnId,
                    System.currentTimeMillis(),
                    true,
                    false,
                    new StoredProcedureInvocation(),
                    0,
                    0,
                    false);
        int hsids = 6;
        buddyHSId = 3;
View Full Code Here

                    (txnId - 1),
                    txnId,
                    System.currentTimeMillis(),
                    true,
                    false,
                    new StoredProcedureInvocation(),
                    0,
                    0,
                    false);
        int hsids = 1;
        buddyHSId = 0;
View Full Code Here

                    (txnId - 1),
                    txnId,
                    System.currentTimeMillis(),
                    true,
                    false,
                    new StoredProcedureInvocation(),
                    0,
                    0,
                    false);
        int hsids = 1;
        buddyHSId = 0;
View Full Code Here

    public void testTruncationHandleForwarding() throws IOException
    {
        long truncPt = 100L;
        Iv2InitiateTaskMessage taskmsg =
            new Iv2InitiateTaskMessage(0, 0, truncPt, 101L, System.currentTimeMillis(),
                                       true, false, new StoredProcedureInvocation(), 0, 0, false);
        assertEquals(truncPt, taskmsg.getTruncationHandle());

        FragmentTaskMessage localFrag = mock(FragmentTaskMessage.class);
        FragmentTaskMessage remoteFrag = mock(FragmentTaskMessage.class);
        when(remoteFrag.getFragmentCount()).thenReturn(1);
View Full Code Here

                        (txnId -1),
                        txnId,
                        System.currentTimeMillis(),
                        true,
                        false,
                        new StoredProcedureInvocation(),
                        0,
                        0,
                        false);
        int hsids = 6;
        buddyHSId = 0;
View Full Code Here

        m_mpiTxnEgo = TxnEgo.makeZero(MpInitiator.MP_INIT_PID);
    }

    private Iv2InitiateTaskMessage makeIv2InitiateTaskMsg(boolean readOnly)
    {
        StoredProcedureInvocation spi = mock(StoredProcedureInvocation.class);
        ParameterSet ps = mock(ParameterSet.class);
        when(spi.getParams()).thenReturn(ps);
        Iv2InitiateTaskMessage msg =
            new Iv2InitiateTaskMessage(0l, 0l, 0l, Long.MIN_VALUE, 0l, readOnly, true, spi,
                    0l, 0l, false);
        return msg;
    }
View Full Code Here

     */
    public InitiateResponseMessage dedupe(long inTxnId, TransactionInfoBaseMessage in)
    {
        if (in instanceof Iv2InitiateTaskMessage) {
            final Iv2InitiateTaskMessage init = (Iv2InitiateTaskMessage) in;
            final StoredProcedureInvocation invocation = init.getStoredProcedureInvocation();
            final String procName = invocation.getProcName();

            /*
             * Ning - @LoadSinglepartTable and @LoadMultipartTable always have the same txnId
             * which is the txnId of the snapshot.
             */
 
View Full Code Here

        if (invocation.getSerializedParams() == null) {
            ByteBuffer buf = ByteBuffer.allocate(invocation.getSerializedSize());
            invocation.flattenToBuffer(buf);
            buf.flip();

            StoredProcedureInvocation rti = new StoredProcedureInvocation();
            rti.initFromBuffer(buf);
            return rti;
        } else {
            return invocation;
        }
    }
View Full Code Here

TOP

Related Classes of org.voltdb.StoredProcedureInvocation

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.