示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private org.neo4j.cursor.RawCursor<org.neo4j.index.internal.gbptree.Hit<LabelScanKey,LabelScanValue>,java.io.IOException> seekerForLabel(long startId, int labelId) throws java.io.IOException
        private RawCursor <Hit <LabelScanKey, LabelScanValue>, IOException> SeekerForLabel(long startId, int labelId)
        {
            LabelScanKey from = new LabelScanKey(labelId, rangeOf(startId));
            LabelScanKey to   = new LabelScanKey(labelId, long.MaxValue);

            return(_index.seek(from, to));
        }
示例#2
0
        private static Hit <LabelScanKey, LabelScanValue> Hit(long baseNodeId, long bits)
        {
            LabelScanKey   key   = new LabelScanKey(LABEL_ID, baseNodeId);
            LabelScanValue value = new LabelScanValue();

            value.Bits = bits;
            return(new MutableHit <LabelScanKey, LabelScanValue>(key, value));
        }
 internal virtual bool KeysInOrder(LabelScanKey key)
 {
     Debug.Assert(key.LabelId >= _prevLabel, "Expected to get ordered results, got " + key +);
     " where previous label was " + _prevLabel;
     Debug.Assert(key.IdRange > _prevRange, "Expected to get ordered results, got " + key +);
     " where previous range was " + _prevRange;
     _prevLabel = key.LabelId;
     _prevRange = key.IdRange;
     // Made as a method returning boolean so that it can participate in an assert call.
     return(true);
 }