Examples of AvroFixedBuilder


Examples of org.flowforwarding.warp.protocol.container.avro.AvroFixed.AvroFixedBuilder

        
         Collection<Schema> types = protocol.getTypes();
        
         for (Schema schema : types) {
            if (schema.getType().getName().equalsIgnoreCase("fixed")) {
               builders.put(schema.getName(), new AvroFixedBuilder(schema.getName(), schema));
            } else if (schema.getType().getName().equalsIgnoreCase("record")) {
               builders.put(schema.getName(), makeRecordBuilder(schema.getName(), schema));
            } else if (schema.getType().getName().equalsIgnoreCase("enum")) {
               builders.put(schema.getName(), new AvroEnumBuilder(schema.getName(), schema));
            }
View Full Code Here

Examples of org.flowforwarding.warp.protocol.container.avro.AvroFixed.AvroFixedBuilder

     
      AvroRecordBuilder b = new AvroRecordBuilder(name, schema);
      ArrayList<Field> fields = (ArrayList<Field>) schema.getFields();
      for (Field field : fields) {
         if (field.schema().getType().getName().equalsIgnoreCase("fixed") || field.schema().getType().getName().equalsIgnoreCase("bitmap")) {
            b.addItemBuilder(field.name(), new AvroFixedBuilder(field.name(), field.schema()));
            if (field.defaultValue() == null)
               b.notReadyToBinary();
         } else if (field.schema().getType().getName().equalsIgnoreCase("record")) {
            b.addItemBuilder(field.name(), makeRecordBuilder(field.name(), field.schema()));
            if (field.defaultValue() == null)
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.