syncbase/src/main/java/io/v/syncbase/Database.java
/**
     * Runs the given operation in a batch, managing retries and commit/abort. Writable batches are
     * committed, retrying if commit fails due to a concurrent batch. Read-only batches are aborted.
     *
     * @param op   the operation to run
     * @param opts options for this batch
     */
Runs the given operation in a batch, managing retries and commit/abort. Writable batches are
committed, retrying if commit fails due to a concurrent batch. Read-only batches are aborted.

@param op   the operation to run
@param opts options for this batch
Runs the given operation in a batch managing retries and commit / abort . Writable batches are committed retrying if commit fails due to a concurrent batch . Read - only batches are aborted . @param op the operation to run @param opts options for this batch
public void runInBatch(final BatchOperation op, BatchOptions opts) throws SyncbaseException {
        try {
            mCoreDatabase.runInBatch(new io.v.syncbase.core.Database.BatchOperation() {
                @Override
                public void run(io.v.syncbase.core.BatchDatabase batchDatabase) {
                    try {
                        op.run(new BatchDatabase(batchDatabase));
                    } catch (SyncbaseException e) {
                        e.printStackTrace();
                    }
                }
            }, opts.toCore());
        } catch (VError e) {
            chainThrow("running batch operation in database", mCoreDatabase.id().name, e);
        }
    }
public void runInBatch ( final BatchOperation op , BatchOptions opts ) throws SyncbaseException { try { mCoreDatabase . runInBatch ( new io . v . syncbase . core . Database . BatchOperation ( ) { @ Override public void run ( io . v . syncbase . core . BatchDatabase batchDatabase ) { try { op . run ( new BatchDatabase ( batchDatabase ) ) ; } catch ( SyncbaseException e ) { e . printStackTrace ( ) ; } } } , opts . toCore ( ) ) ; } catch ( VError e ) { chainThrow ( "running batch operation in database" , mCoreDatabase . id ( ) . name , e ) ; } }
Runs the given operation in a batch, managing retries and commit/abort.
Runs the given operation in a batch managing retries and commit / abort .