Package com.netflix.zeno.fastblob.record.schema

Examples of com.netflix.zeno.fastblob.record.schema.FastBlobSchema.addField()


    @Test
    public void remapsMapFieldOrdinals() {
        FastBlobSchema schema = new FastBlobSchema("Test", 2);
        schema.addField("intField", new FieldDefinition(FieldType.INT));
        schema.addField("mapField", new MapFieldDefinition("ElementType", "ElementType"));

        Random rand = new Random();

        for(int i=0;i<1000;i++) {
View Full Code Here


    }

    @Test
    public void remapsSetFieldOrdinals() {
        FastBlobSchema schema = new FastBlobSchema("Test", 2);
        schema.addField("intField", new FieldDefinition(FieldType.INT));
        schema.addField("setField", new TypedFieldDefinition(FieldType.SET, "ElementType"));

        Random rand = new Random();

        for(int i=0;i<1000;i++) {
View Full Code Here

    @Test
    public void remapsSetFieldOrdinals() {
        FastBlobSchema schema = new FastBlobSchema("Test", 2);
        schema.addField("intField", new FieldDefinition(FieldType.INT));
        schema.addField("setField", new TypedFieldDefinition(FieldType.SET, "ElementType"));

        Random rand = new Random();

        for(int i=0;i<1000;i++) {
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.