private void ConvertAndAssert(long[] before, long[] after, long[] expectedRemoved, long[] expectedAdded)
        {
            NodeLabelUpdate update = NodeLabelUpdate.labelChanges(0, before, after);

            PhysicalToLogicalLabelChanges.ConvertToAdditionsAndRemovals(update);
            assertArrayEquals(Terminate(update.LabelsBefore), expectedRemoved);
            assertArrayEquals(Terminate(update.LabelsAfter), expectedAdded);
        }
示例#2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void initializeNativeLabelScanStoreWithContent(org.neo4j.io.layout.DatabaseLayout databaseLayout) throws java.io.IOException
        private void InitializeNativeLabelScanStoreWithContent(DatabaseLayout databaseLayout)
        {
            using (Lifespan lifespan = new Lifespan())
            {
                NativeLabelScanStore nativeLabelScanStore = GetNativeLabelScanStore(databaseLayout, false);
                lifespan.Add(nativeLabelScanStore);
                using (LabelScanWriter labelScanWriter = nativeLabelScanStore.NewWriter())
                {
                    labelScanWriter.Write(NodeLabelUpdate.labelChanges(1, new long[0], new long[] { 1 }));
                }
                nativeLabelScanStore.Force(Org.Neo4j.Io.pagecache.IOLimiter_Fields.Unlimited);
            }
        }