Examples of MapReduceSpec


Examples of com.basho.riak.client.api.commands.mapreduce.MapReduceSpec

    phases.add(new MapPhase(Function.newNamedJsFunction("map_func")));
    phases.add(new ReducePhase(Function.newNamedJsFunction("reduce_func")));
    phases.add(new LinkPhase("bucket", "tag"));
    BucketInput input = new BucketInput(new Namespace("bucket"), Collections.<KeyFilter>emptyList());

    MapReduceSpec spec = new MapReduceSpec(input, phases, 1000L);

    jg.writeObject(spec);
       
    Assert.assertEquals("{\"inputs\":\"bucket\"," +
        "\"timeout\":1000,\"query\":" +
View Full Code Here

Examples of com.basho.riak.client.raw.query.MapReduceSpec

     * @throws InvalidMapReduceException
     */
    public MapReduceResult execute() throws RiakException {
        validate();
        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

Examples of com.basho.riak.client.raw.query.MapReduceSpec

     *
     * @return a {@link MapReduceResult} containing the results of the query.
     */
    public MapReduceResult execute() throws RiakException {
        final String strSpec = writeSpec();
        MapReduceSpec spec = new MapReduceSpec(strSpec);
        try {
            return client.mapReduce(spec);
        } catch(RiakError e) {
            throw ErlangTermErrorParser.parseErlangError(e.getMessage());
        } catch (IOException e) {
View Full Code Here

Examples of com.basho.riak.client.raw.query.MapReduceSpec

     * @throws InvalidMapReduceException
     */
    public MapReduceResult execute() throws RiakException {
        validate();
        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

Examples of com.basho.riak.client.raw.query.MapReduceSpec

     *
     * @return a {@link MapReduceResult} containing the results of the query.
     */
    public MapReduceResult execute() throws RiakException {
        final String strSpec = writeSpec();
        MapReduceSpec spec = new MapReduceSpec(strSpec);
        try {
            return client.mapReduce(spec);
        } catch(RiakError e) {
            throw ErlangTermErrorParser.parseErlangError(e.getMessage());
        } catch (IOException e) {
View Full Code Here

Examples of com.basho.riak.client.raw.query.MapReduceSpec

     * @throws InvalidMapReduceException
     */
    public MapReduceResult execute() throws RiakException {
        validate();
        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
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.