Package com.basho.riak.client.core.query.indexes

Examples of com.basho.riak.client.core.query.indexes.RawIndex.values()


            values.add(BinaryValue.unsafeCreate(("value" + i).getBytes()));
        }
       
        index.add(values);
       
        Set<BinaryValue> valueSet = index.values();
       
        for (BinaryValue b : values)
        {
            assertTrue(valueSet.contains(b));
        }
View Full Code Here


                case RAW:
                    IndexType iType = IndexType.typeFromFullname(f.getIndexName());
                    RawIndex rawIndex = indexes.getIndex((RawIndex.named(f.getIndexName(), iType)));
                    // Convert from BinaryValue to bytes
                    Set<byte[]> byteSet = new HashSet<byte[]>();
                    for (BinaryValue bv : rawIndex.values())
                    {
                        byteSet.add(bv.unsafeGetValue());
                    }
                    val = byteSet;
                    break;
View Full Code Here

                case RAW_SETTER:
                    IndexType iType = IndexType.typeFromFullname(m.getIndexName());
                    RawIndex rawIndex = indexes.getIndex(RawIndex.named(m.getIndexName(), iType));
                    // Convert from BinaryValue to bytes
                    Set<byte[]> byteSet = new HashSet<byte[]>();
                    for (BinaryValue bv : rawIndex.values())
                    {
                        byteSet.add(bv.unsafeGetValue());
                    }
                    val = byteSet;
                    break;
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.