Package com.basho.riak.client.api.commands.mapreduce

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


    this.jg = new JsonFactory().createGenerator(out);

    ObjectMapper objectMapper = new ObjectMapper();
    SimpleModule specModule = new SimpleModule("SpecModule", Version.unknownVersion());
    specModule.addSerializer(PhaseFunction.class, new PhaseFunctionSerializer());
    specModule.addSerializer(FunctionPhase.class, new FunctionPhaseSerializer());
    objectMapper.registerModule(specModule);

    jg.setCodec(objectMapper);

  }
View Full Code Here


    ObjectMapper objectMapper = new ObjectMapper();
    SimpleModule specModule = new SimpleModule("SpecModule", Version.unknownVersion());
    specModule.addSerializer(PhaseFunction.class, new PhaseFunctionSerializer());
    specModule.addSerializer(LinkPhase.class, new LinkPhaseSerializer());
    specModule.addSerializer(FunctionPhase.class, new FunctionPhaseSerializer());
    specModule.addSerializer(BucketInput.class, new BucketInputSerializer());
    specModule.addSerializer(SearchInput.class, new SearchInputSerializer());
    specModule.addSerializer(BucketKeyInput.class, new BucketKeyInputSerializer());
    specModule.addSerializer(IndexInput.class, new IndexInputSerializer());
    objectMapper.registerModule(specModule);
View Full Code Here

TOP

Related Classes of com.basho.riak.client.api.commands.mapreduce.FunctionPhaseSerializer

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.