예제 #1
0
 private RelationshipRecord GetRelationship(long relId, bool inUse, int type)
 {
     if (!inUse)
     {
         type = -1;
     }
     return((new RelationshipRecord(relId)).initialize(inUse, NO_NEXT_PROPERTY.longValue(), 0, 0, type, NO_NEXT_RELATIONSHIP.longValue(), NO_NEXT_RELATIONSHIP.longValue(), NO_NEXT_RELATIONSHIP.longValue(), NO_NEXT_RELATIONSHIP.longValue(), true, false));
 }
예제 #2
0
        private NodeRecord GetNode(int nodeId, bool inUse)
        {
            NodeRecord nodeRecord = new NodeRecord(nodeId);

            nodeRecord = nodeRecord.Initialize(inUse, NO_NEXT_PROPERTY.longValue(), false, NO_NEXT_RELATIONSHIP.longValue(), NO_LABELS_FIELD.longValue());
            if (inUse)
            {
                InlineNodeLabels labelFieldWriter = new InlineNodeLabels(nodeRecord);
                labelFieldWriter.Put(new long[] { ENTITY_TOKEN }, null, null);
            }
            return(nodeRecord);
        }