Examples of PropertyRecord


Examples of org.neo4j.kernel.impl.nioneo.store.PropertyRecord

    private void writePropertyRecords(PropertyHolder holder) {
        if (holder.propertyCount==0) return;

        for (int i=0;i<holder.propertyCount;i++) {
            PropertyRecord record = holder.propertyRecords[i];
            if (record == null) break;
            propStore.updateRecord(record);
            counter++;
        }
        holder.cleanProperties();
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.PropertyRecord

    }

    private void createPropertyRecords(PropertyHolder holder) {
        if (holder.propertyCount==0) return;
        holder.firstPropertyId = propertyId;
        PropertyRecord currentRecord = createRecord(propertyId);
        propertyId++;
        int index=0;
        holder.propertyRecords[index++] = currentRecord;
        for (int i = 0; i < holder.propertyCount; i++) {
            Property property = holder.properties[i];
            PropertyBlock block = property.block;
            if (currentRecord.size() + block.getSize() > PAYLOAD_SIZE){
                currentRecord.setNextProp(propertyId);
                currentRecord = createRecord(propertyId);
                currentRecord.setPrevProp(propertyId-1);
                propertyId++;
                holder.propertyRecords[index++] = currentRecord;
            }
            currentRecord.addPropertyBlock(block);
            property.cleanValue();
        }
        if (index<holder.propertyRecords.length) holder.propertyRecords[index]=null;
    }
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.PropertyRecord

        }
        if (index<holder.propertyRecords.length) holder.propertyRecords[index]=null;
    }

    private PropertyRecord createRecord(long id) {
        PropertyRecord currentRecord = new PropertyRecord(id);
        currentRecord.setInUse( true );
        currentRecord.setCreated();
        return currentRecord;
    }
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.