Skip to content

Commit

Permalink
Polished query.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
guj authored Sep 19, 2023
1 parent 6efb7db commit c4ce07a
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions docs/user_guide/source/advanced/query.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,31 @@ to construct a query and evaluate using the engine.
void GetResultCoverage(adios2::Box<adios2::Dims> &,
std::vector<adios2::Box<adios2::Dims>> &touched_blocks);
}


Sample Query:
-------------
A Sample Compound Query:
----------------------

.. code-block:: xml
<adios-query>
<io name="query">
<var name="intV">
<boundingbox start="5" count="80"/>
<op value="OR">
<range compare="GT" value="6.6"/>
<range compare="LT" value="-0.17"/>
<op value="AND">
<range compare="LT" value="2.9"/>
<range compare="GT" value="2.8"/>
</op>
</op>
</var>
</io>
</adios-query>
<adios-query>
<io name="query">
<var name="intV">
<boundingbox start="5" count="80"/>
<op value="OR">
<range compare="GT" value="6.6"/>
<range compare="LT" value="-0.17"/>
<op value="AND">
<range compare="LT" value="2.9"/>
<range compare="GT" value="2.8"/>
</op>
</op>
</var>
</io>
</adios-query>
EXAMPLES:
=========
Code EXAMPLES:
==============
C++:
----
.. code-block:: c++
Expand All @@ -62,7 +63,7 @@ C++:
<< std::endl;
}

Full C++ example is here:
The Full C++ example is here:
https://github.com/ornladios/ADIOS2/blob/master/examples/query/test.cpp


Expand Down

0 comments on commit c4ce07a

Please sign in to comment.