Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void nodeIndexDistinctValues(org.neo4j.internal.kernel.api.IndexReference index, org.neo4j.internal.kernel.api.NodeValueIndexCursor cursor, boolean needsValues) throws org.neo4j.internal.kernel.api.exceptions.schema.IndexNotFoundKernelException
        public override void NodeIndexDistinctValues(IndexReference index, NodeValueIndexCursor cursor, bool needsValues)
        {
            Ktx.assertOpen();
            DefaultNodeValueIndexCursor cursorImpl = ( DefaultNodeValueIndexCursor )cursor;
            IndexReader reader = IndexReader(index, true);

            cursorImpl.Read = this;
            using (CursorPropertyAccessor accessor = new CursorPropertyAccessor(_cursors.allocateNodeCursor(), _cursors.allocatePropertyCursor(), this))
            {
                reader.DistinctValues(cursorImpl, accessor, needsValues);
            }
        }