Package com.basho.riak.client

Examples of com.basho.riak.client.RiakException


        final String strSpec = writeSpec();
        MapReduceSpec spec = new MapReduceSpec(strSpec);
        try {
            return client.mapReduce(spec);
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here


            jg.writeEndObject();
            jg.flush();

            return out.toString("UTF8");
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

            break;
        case HTTP:
            client = RiakFactory.httpClient(location.asString());
            break;
        default:
            throw new RiakException("Unknown Transport");
        }
        return client;
    }
View Full Code Here

     */
    public StreamingOperation<String> keys() throws RiakException {
        try {
            return client.listKeys(name);
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

                .withContinuation(continuation);
       
        try {
            return client.fetchIndex(builder.build());
        } catch (IOException ex) {
            throw new RiakException(ex);
        }
       
               
    }
View Full Code Here

                return client.fetchCounter(bucket, counter, fetchMetaBuilder.build());
            }
        }
        catch (IOException e)
        {
            throw new RiakException(e);
        }
    }
View Full Code Here

        try {
            return client.mapReduce(spec);
        } catch(RiakError e) {
            throw ErlangTermErrorParser.parseErlangError(e.getMessage());
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

            jg.writeEndObject();
            jg.flush();

            return out.toString("UTF8");
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

     */
    public Iterable<String> keys() throws RiakException {
        try {
            return client.listKeys(name);
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

        final String strSpec = writeSpec();
        MapReduceSpec spec = new MapReduceSpec(strSpec);
        try {
            return client.mapReduce(spec);
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.RiakException

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.