Esempio n. 1
0
        private void AssertKeysAndChildren(long stable, long unstable, params long[] keysAndChildren)
        {
            KEY actualKey = _layout.newKey();
            int pos;

            for (int i = 0; i < keysAndChildren.Length; i++)
            {
                pos = i / 2;
                if (i % 2 == 0)
                {
                    assertEquals(keysAndChildren[i], GenerationSafePointerPair.Pointer(_node.childAt(Cursor, pos, stable, unstable)));
                }
                else
                {
                    KEY expectedKey = Key(keysAndChildren[i]);
                    _node.keyAt(Cursor, actualKey, pos, INTERNAL);
                    assertEquals(0, _layout.Compare(expectedKey, actualKey));
                }
            }
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: static void goTo(org.neo4j.io.pagecache.PageCursor cursor, String messageOnError, long nodeId) throws java.io.IOException
        internal static void GoTo(PageCursor cursor, string messageOnError, long nodeId)
        {
            PageCursorUtil.GoTo(cursor, messageOnError, GenerationSafePointerPair.Pointer(nodeId));
        }
Esempio n. 3
0
 internal static bool IsNode(long node)
 {
     return(GenerationSafePointerPair.Pointer(node) != NO_NODE_FLAG);
 }