Package org.scale7.cassandra.pelops

Examples of org.scale7.cassandra.pelops.Mutator.execute()


                columns.add(col);
            }

            mutator.writeColumns(column_family, Bytes.fromUTF8(key), columns);
            mutator.execute(writeConsistencyLevel);

            return Ok;
        }
        catch (Exception e)
        {
View Full Code Here


                                .fromByteBuffer(CassandraUtilities.toBytes(thriftRow.getId(), thriftRow.getId()
                                        .getClass())), Bytes.fromByteArray(sc.getName()), sc.getColumns());
                    }
                }
            }
            mutator.execute(consistencyLevel);
            indexThriftyRows = null;
        }
    }

    /**
 
View Full Code Here

    public void deleteColumn(String indexColumnFamily, String rowKey, byte[] superColumnName, String persistenceUnit,
            ConsistencyLevel consistencyLevel, byte[] columnName)
    {
        Mutator mutator = pelopsClient.getMutator();
        mutator.deleteColumn(indexColumnFamily, rowKey, Bytes.fromByteArray(superColumnName));
        mutator.execute(consistencyLevel);
    }
}
View Full Code Here

        }
        if (log.isInfoEnabled())
        {
            log.info(" Persisted data with join table column family {}", joinTableData.getJoinTableName());
        }
        mutator.execute(getConsistencyLevel());
    }

    @Override
    public <E> List<E> getColumnsById(String schemaName, String joinTableName, String joinColumnName,
            String inverseJoinColumnName, Object parentId, Class columnJavaType)
View Full Code Here

                                    Bytes.fromByteBuffer(CassandraUtilities.toBytes(tf.getId(), tf.getId().getClass())),
                                    Bytes.fromByteArray(sc.getName()), sc.getColumns());
                        }
                    }
                }
                mutator.execute(getConsistencyLevel());
            }
            tfRows = null;
            if (isTtlPerRequest())
            {
                getTtlValues().clear();
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.