Examples of MapFieldDefinition


Examples of com.netflix.zeno.fastblob.record.schema.MapFieldDefinition

                currentPointerPosition = copyListWithRemappedOrdinals(toBuffer, fromSpace, currentPointerPosition, typedFieldDef.getSubType());

                break;
            case MAP:
                MapFieldDefinition mapFieldDef = (MapFieldDefinition)fieldDef;
                currentPointerPosition = copyMapWithRemappedOrdinals(toBuffer, fromSpace, currentPointerPosition, mapFieldDef);

                break;
            default:
                if(fromSpace instanceof SegmentedByteArray)
View Full Code Here

Examples of com.netflix.zeno.fastblob.record.schema.MapFieldDefinition

    }

    protected FastBlobSchemaField mapField(String name, String keyType, String valueType) {
        FastBlobSchemaField field = new FastBlobSchemaField();
        field.name = name;
        field.type = new MapFieldDefinition(keyType, valueType);
        return field;
    }
View Full Code Here

Examples of com.netflix.zeno.fastblob.record.schema.MapFieldDefinition

    @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

Examples of com.netflix.zeno.fastblob.record.schema.MapFieldDefinition

        long position = positionFor(fieldIndex);

        if(VarInt.readVNull(data, position))
            return false;

        MapFieldDefinition fieldDef = (MapFieldDefinition) schema.getFieldDefinition(fieldIndex);

        map.position(stateEngine, fieldDef.getKeyType(), fieldDef.getValueType(), data, position);

        return true;
    }
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.