Package org.apache.hadoop.tools.rumen.serializers

Examples of org.apache.hadoop.tools.rumen.serializers.DefaultRumenSerializer


    // define a module
    SimpleModule module = new SimpleModule("Default Serializer"
                                           new Version(0, 1, 1, "FINAL"));
    // add various serializers to the module
    //   add default (all-pass) serializer for all rumen specific data types
    module.addSerializer(DataType.class, new DefaultRumenSerializer());
    //   add a serializer to use object.toString() while serializing
    module.addSerializer(ID.class, new ObjectStringSerializer<ID>());
   
    // register the module with the object-mapper
    mapper.registerModule(module);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.tools.rumen.serializers.DefaultRumenSerializer

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.