Examples of SliceFromReadCommand


Examples of org.apache.cassandra.db.SliceFromReadCommand

    Object start =  TypeUtil.convert(operation.getArguments().get("start"));
    Object end =  TypeUtil.convert(operation.getArguments().get("end"));
    List<ReadCommand> commands = new ArrayList<ReadCommand>(1);
    QueryPath path = new QueryPath(columnFamily, null);
    //TODO hardcode
    SliceFromReadCommand sr = new SliceFromReadCommand(keyspace,
            ByteBufferUtil.bytes((String)rowkey), path, ByteBufferUtil.bytes((String)start), ByteBufferUtil.bytes((String)end), false, 100);
    commands.add(sr);
    List<Row> results = null;
    List<Map> returnResults = new ArrayList<>();
    try {
View Full Code Here

Examples of org.apache.cassandra.db.SliceFromReadCommand

        }

        ByteBuffer key = CassandraUtils.hashKeyBytes(indexName.getBytes("UTF-8"), CassandraUtils.delimeterBytes,
                "shards".getBytes("UTF-8"));

        ReadCommand cmd = new SliceFromReadCommand(CassandraUtils.keySpace, key, new ColumnParent(
                CassandraUtils.schemaInfoColumnFamily), ByteBufferUtil.EMPTY_BYTE_BUFFER,
                ByteBufferUtil.EMPTY_BYTE_BUFFER, false, Integer.MAX_VALUE);

        List<Row> rows = CassandraUtils.robustRead(ConsistencyLevel.QUORUM, cmd);
View Full Code Here

Examples of org.apache.cassandra.db.SliceFromReadCommand

        {
            SliceRange range = predicate.slice_range;
            for (ByteBuffer key: keys)
            {
                ThriftValidation.validateKey(key);
                commands.add(new SliceFromReadCommand(keyspace, key, column_parent, range.start, range.finish, range.reversed, range.count));
            }
        }

        return getSlice(commands, consistency_level);
    }
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.