private long[] ReadNodesForLabel(LabelScanStore labelScanStore) { using (LabelScanReader reader = labelScanStore.NewReader()) { return(PrimitiveLongCollections.asArray(reader.NodesWithLabel(_labelId))); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static void checkLabelScanStoreAccessible(org.neo4j.kernel.api.labelscan.LabelScanStore labelScanStore) throws java.io.IOException private static void CheckLabelScanStoreAccessible(LabelScanStore labelScanStore) { int labelId = 1; using (LabelScanWriter labelScanWriter = labelScanStore.NewWriter()) { labelScanWriter.Write(NodeLabelUpdate.labelChanges(1, new long[] {}, new long[] { labelId })); } using (LabelScanReader labelScanReader = labelScanStore.NewReader()) { assertEquals(1, labelScanReader.NodesWithLabel(labelId).next()); } }