Examples of RecordImpl


Examples of org.lilyproject.repository.impl.RecordImpl

        this.tableName = tableName;
    }

    @Override
    public Record newRecord() throws RecordException {
        return new RecordImpl();
    }
View Full Code Here

Examples of org.lilyproject.repository.impl.RecordImpl

        return new RecordImpl();
    }

    @Override
    public Record newRecord(RecordId recordId) throws RecordException {
        return new RecordImpl(recordId);
    }
View Full Code Here

Examples of org.lilyproject.repository.impl.RecordImpl

    }

    @Override
    @SuppressWarnings("unchecked")
    public Record read(DataInput dataInput) throws RepositoryException, InterruptedException {
        Record record = new RecordImpl();
        dataInput.readByte(); // Ignore, there is currently only one encoding : 1
        int length = dataInput.readVInt();
        byte[] recordTypeId = dataInput.readBytes(length);
        Long recordTypeVersion = dataInput.readLong();
        RecordType recordType = typeManager.getRecordTypeById(new SchemaIdImpl(recordTypeId), recordTypeVersion);
        record.setRecordType(recordType.getName(), recordTypeVersion);

        Map<SchemaId, QName> idToQNameMapping = new HashMap<SchemaId, QName>();
        List<FieldType> fieldTypes = getSortedFieldTypes(recordType);
        for (FieldType fieldType : fieldTypes) {
            byte readByte = dataInput.readByte();
            if (DEFINED == readByte) {
                Object value = fieldType.getValueType().read(dataInput);
                record.setField(fieldType.getName(), value);
                idToQNameMapping.put(fieldType.getId(), fieldType.getName());
            }
        }

        Map<Scope, SchemaId> recordTypeIds = new EnumMap<Scope, SchemaId>(Scope.class);
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.