Package org.neo4j.batchimport.structs

Examples of org.neo4j.batchimport.structs.Property


    private void encodeProperties(PropertyHolder holder) {
        if (holder.propertyCount ==0) return;
        // todo cache encoded blocks in an LRU cache
        for (int id = 0; id < holder.propertyCount; id++) {
            Property value = holder.properties[id];
            value.encode(propStore);
            count++;
        }
    }
View Full Code Here


        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

    private void encodeProperties(PropertyHolder holder) {
        if (holder.propertyCount ==0) return;
        // todo cache encoded blocks in an LRU cache
        for (int id = 0; id < holder.propertyCount; id++) {
            Property value = holder.properties[id];
            value.encode(propStore);
            count++;
        }
    }
View Full Code Here

        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.clean();
        }
        if (index<holder.propertyRecords.length) holder.propertyRecords[index]=null;
    }
View Full Code Here

TOP

Related Classes of org.neo4j.batchimport.structs.Property

Copyright © 2018 www.massapicom. 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.