> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# filterByRange

<div className="kinetica-doxygen">
  <div id="abb55e3a7ca457708686d596cdd5f1d05" />

  <h2 className="memtitle"><span className="permalink"><a href="#abb55e3a7ca457708686d596cdd5f1d05">◆ </a></span>filterByRange() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">FilterByRangeResponse</a> gpudb::GPUdb::filterByRange </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest">FilterByRangeRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Calculates which objects from a table have a column that is within the given bounds. </p>
      <p>An object from the table identified by <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#a669efcf8167a36aef6d8bd5c0199e430">tableName</a> is added to the view <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#ab088a1e77fb566b1732b9e8696e258a9">viewName</a> if its column is within \[<a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#a3ecf2521d8347867930e5d43b4743ef6">lowerBound</a>, <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#a8558d271c3649580d12f65e5ff0ee7f1">upperBound</a>] (inclusive). The operation is synchronous. The response provides a count of the number of objects which passed the bound filter. Although this functionality can also be accomplished with the standard filter function, it is more efficient.</p>
      <p>For track objects, the count reflects how many points fall within the given bounds (which may not include all the track points of any given track).</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="ab9870f431c1afe2a8454a167c143f1be" />

  <h2 className="memtitle"><span className="permalink"><a href="#ab9870f431c1afe2a8454a167c143f1be">◆ </a></span>filterByRange() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">FilterByRangeResponse</a> & gpudb::GPUdb::filterByRange </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest">FilterByRangeRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">FilterByRangeResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Calculates which objects from a table have a column that is within the given bounds. </p>
      <p>An object from the table identified by <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#a669efcf8167a36aef6d8bd5c0199e430">tableName</a> is added to the view <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#ab088a1e77fb566b1732b9e8696e258a9">viewName</a> if its column is within \[<a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#a3ecf2521d8347867930e5d43b4743ef6">lowerBound</a>, <a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest#a8558d271c3649580d12f65e5ff0ee7f1">upperBound</a>] (inclusive). The operation is synchronous. The response provides a count of the number of objects which passed the bound filter. Although this functionality can also be accomplished with the standard filter function, it is more efficient.</p>
      <p>For track objects, the count reflects how many points fall within the given bounds (which may not include all the track points of any given track).</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a5053d89bf393fe4405f6011fa4a2a6ce" />

  <h2 className="memtitle"><span className="permalink"><a href="#a5053d89bf393fe4405f6011fa4a2a6ce">◆ </a></span>filterByRange() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">FilterByRangeResponse</a> gpudb::GPUdb::filterByRange </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">tableName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">viewName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">columnName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const double</td>
          <td className="paramname"><span className="paramname"><span className="em">lowerBound</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const double</td>
          <td className="paramname"><span className="paramname"><span className="em">upperBound</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Calculates which objects from a table have a column that is within the given bounds. </p>
      <p>An object from the table identified by <span className="em arg">tableName</span> is added to the view <span className="em arg">viewName</span> if its column is within \[<span className="em arg">lowerBound</span>, <span className="em arg">upperBound</span>] (inclusive). The operation is synchronous. The response provides a count of the number of objects which passed the bound filter. Although this functionality can also be accomplished with the standard filter function, it is more efficient.</p>
      <p>For track objects, the count reflects how many points fall within the given bounds (which may not include all the track points of any given track).</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">tableName</td>
              <td>Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must be an existing table. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">viewName</td>
              <td>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. Must not be an already existing table or view. The default value is ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">columnName</td>
              <td>Name of a column on which the operation would be applied. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">lowerBound</td>
              <td>Value of the lower bound (inclusive). </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">upperBound</td>
              <td>Value of the upper bound (inclusive). </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#aa20bd18ef39d26154308f8866767c01a">filter\_by\_range\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a0a3e23476b8657bdb3286baaf72a4640">true</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em arg">viewName</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <a className="el" href="/content/api/cpp/namespacegpudb#af0bddfdcae500e3747cd9fa34244a8ab">qualified\_view\_name</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0a3e23476b8657bdb3286baaf72a4640">filter\_by\_range\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad711517efbefcd93e24b0768132b8bc0">filter\_by\_range\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#ad711517efbefcd93e24b0768132b8bc0">filter\_by\_range\_false</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a72e7794cdf95ed6cd92dc21a80537d76">filter\_by\_range\_collection\_name</a>: \[DEPRECATED–please specify the containing schema for the view as part of <span className="em arg">viewName</span> and use <a className="el" href="#a33d9a0a8e738d14b688f9f869f9640ad">createSchema</a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a2f9a414b5ba06eba04464e4b76dae887" />

  <h2 className="memtitle"><span className="permalink"><a href="#a2f9a414b5ba06eba04464e4b76dae887">◆ </a></span>filterByRange() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">FilterByRangeResponse</a> & gpudb::GPUdb::filterByRange </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">tableName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">viewName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">columnName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const double</td>
          <td className="paramname"><span className="paramname"><span className="em">lowerBound</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const double</td>
          <td className="paramname"><span className="paramname"><span className="em">upperBound</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">FilterByRangeResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Calculates which objects from a table have a column that is within the given bounds. </p>
      <p>An object from the table identified by <span className="em arg">tableName</span> is added to the view <span className="em arg">viewName</span> if its column is within \[<span className="em arg">lowerBound</span>, <span className="em arg">upperBound</span>] (inclusive). The operation is synchronous. The response provides a count of the number of objects which passed the bound filter. Although this functionality can also be accomplished with the standard filter function, it is more efficient.</p>
      <p>For track objects, the count reflects how many points fall within the given bounds (which may not include all the track points of any given track).</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">tableName</td>
              <td>Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must be an existing table. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">viewName</td>
              <td>If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. Must not be an already existing table or view. The default value is ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">columnName</td>
              <td>Name of a column on which the operation would be applied. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">lowerBound</td>
              <td>Value of the lower bound (inclusive). </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">upperBound</td>
              <td>Value of the upper bound (inclusive). </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#aa20bd18ef39d26154308f8866767c01a">filter\_by\_range\_create\_temp\_table</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a0a3e23476b8657bdb3286baaf72a4640">true</a>, a unique temporary table name will be generated in the sys\_temp schema and used in place of <span className="em arg">viewName</span>. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in <a className="el" href="/content/api/cpp/namespacegpudb#af0bddfdcae500e3747cd9fa34244a8ab">qualified\_view\_name</a>. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0a3e23476b8657bdb3286baaf72a4640">filter\_by\_range\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad711517efbefcd93e24b0768132b8bc0">filter\_by\_range\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#ad711517efbefcd93e24b0768132b8bc0">filter\_by\_range\_false</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a72e7794cdf95ed6cd92dc21a80537d76">filter\_by\_range\_collection\_name</a>: \[DEPRECATED–please specify the containing schema for the view as part of <span className="em arg">viewName</span> and use <a className="el" href="#a33d9a0a8e738d14b688f9f869f9640ad">createSchema</a> to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1FilterByRangeResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
