class CompiledIndexUtils {

    public static NodeValueIndexCursor indexSeek( Read read, CursorFactory cursors, IndexReference index, Object value )
            throws KernelException
    {
        assert index.properties().length == 1;
        if ( value == Values.NO_VALUE || value == null )
        {
            return NodeValueIndexCursor.EMPTY;
        }
        else
        {
            NodeValueIndexCursor cursor = cursors.allocateNodeValueIndexCursor();
            IndexQuery.ExactPredicate query = exact( index.properties()[0], makeValueNeoSafe( value ) );
            read.nodeIndexSeek( index, cursor, IndexOrder.NONE, false, query );
            return cursor;
        }
    }

    private  CompiledIndexUtils();

}