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

Examples of com.basho.riak.client.core.query.Location


        public List<Entry> getEntries()
        {
            List<Entry> convertedList = new ArrayList<Entry>();
            for (SecondaryIndexQueryOperation.Response.Entry e : coreResponse.getEntryList())
            {
                Location loc = getLocationFromCoreEntry(e);
                Entry ce = new Entry(loc, e.getIndexKey(), converter);
                convertedList.add(ce);
            }
            return convertedList;
        }
View Full Code Here


        public List<Entry> getEntries()
        {
            List<Entry> convertedList = new ArrayList<Entry>();
            for (SecondaryIndexQueryOperation.Response.Entry e : coreResponse.getEntryList())
            {
                Location loc = getLocationFromCoreEntry(e);
                Entry ce = new Entry(loc, e.getIndexKey(), converter);
                convertedList.add(ce);
            }
            return convertedList;
        }
View Full Code Here

            return !coreResponse.getEntryList().isEmpty();
        }
       
        protected final Location getLocationFromCoreEntry(SecondaryIndexQueryOperation.Response.Entry e)
        {
            Location loc = new Location(queryLocation, e.getObjectKey());
            return loc;
        }
View Full Code Here

        public List<Entry> getEntries()
        {
            List<Entry> convertedList = new ArrayList<Entry>();
            for (SecondaryIndexQueryOperation.Response.Entry e : coreResponse.getEntryList())
            {
                Location loc = getLocationFromCoreEntry(e);
                Entry ce = new Entry(loc, e.getIndexKey(), converter);
                convertedList.add(ce);
            }
            return convertedList;
        }
View Full Code Here

        public List<Entry> getEntries()
        {
            List<Entry> convertedList = new ArrayList<Entry>();
            for (SecondaryIndexQueryOperation.Response.Entry e : coreResponse.getEntryList())
            {
                Location loc = getLocationFromCoreEntry(e);
                Entry ce = new Entry(loc, e.getIndexKey(), converter);
                convertedList.add(ce);
            }
            return convertedList;
        }
View Full Code Here

    @Override
    public Location next()
    {
      BinaryValue key = iterator.next();
      return new Location(namespace, key);
    }
View Full Code Here

    {
        DtUpdateOperation.Builder builder;
       
        if (key != null)
        {
            Location loc = new Location(namespace, key);
            builder = new DtUpdateOperation.Builder(loc);
        }
        else
        {
            builder = new DtUpdateOperation.Builder(namespace);
View Full Code Here

                    if (coreResponse.hasGeneratedKey())
                    {
                        key = coreResponse.getGeneratedKey();
                    }
                   
                    Location loc = new Location(ns, key);
                   
                    return new Response.Builder()
                        .withValues(coreResponse.getObjectList())
                        .withGeneratedKey(coreResponse.getGeneratedKey())
                        .withLocation(loc) // for ORM
View Full Code Here

    {
        StoreOperation.Builder builder;
       
        if (orm.hasKey())
        {
            Location loc = new Location(orm.getNamespace(), orm.getKey());
            builder = new StoreOperation.Builder(loc);
        }
        else
        {
            builder = new StoreOperation.Builder(orm.getNamespace());
View Full Code Here

    {
        try
        {
            RiakClient client = new RiakClient(cluster);
            Namespace ns = new Namespace(bucketType, bucketName.toString());
            Location loc = new Location(ns, "test_fetch_key1");
           
            Pojo pojo = new Pojo();
            pojo.value = "test value";
            StoreValue sv =
                new StoreValue.Builder(pojo).withLocation(loc).build();
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.query.Location

Copyright © 2018 www.massapicom. 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.