public void batch()

in hbase-client/src/main/java/org/apache/omid/transaction/TTable.java [645:660]


    public void batch(Transaction transaction, List<? extends Row> rows, boolean addShadowCells) throws IOException {
        List<Mutation> mutations = new ArrayList<>(rows.size());
        for (Row row : rows) {
            if (row instanceof Put) {
                mutations.add(putInternal(transaction, (Put)row, addShadowCells));
            } else if (row instanceof Delete) {
                Put deleteP = deleteInternal(transaction, (Delete)row);
                if (!deleteP.isEmpty()) {
                    mutations.add(deleteP);
                }
            } else {
                throw new UnsupportedOperationException("Unsupported mutation: " + row);
            }
        }
        addMutations(mutations);
    }