> ## 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.

# FilterByRangeRequest

> FilterByRangeRequest — Kinetica Java API

Package [com.gpudb.protocol](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/package-summary.md)

# Class FilterByRangeRequest

[java.lang.Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
com.gpudb.protocol.FilterByRangeRequest

All Implemented Interfaces:`org.apache.avro.generic.GenericContainer`, `org.apache.avro.generic.IndexedRecord`

***

public class FilterByRangeRequest extends [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) implements org.apache.avro.generic.IndexedRecord

A set of parameters for [`GPUdb.filterByRange`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/filterbyrange#filterByRange\(com.gpudb.protocol.FilterByRangeRequest\)).
&#x20;Calculates which objects from a table have a column that is within the given bounds. An object from the table identified by [`tableName`](#getTableName\(\)) is added to the view [`viewName`](#getViewName\(\)) if its column is within \[[`lowerBound`](#getLowerBound\(\)), [`upperBound`](#getUpperBound\(\))] (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.&#x20;
&#x20;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).

<ul>
  <li>
    ## Nested Class Summary

    Nested Classes

    Modifier and TypeClassDescription`static final class ``FilterByRangeRequest.Options`

    A set of string constants for the [`FilterByRangeRequest`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest) parameter [`options`](#getOptions\(\)).
  </li>

  <li>
    ## Constructor Summary

    Constructors

    ConstructorDescription`FilterByRangeRequest()`

    Constructs a FilterByRangeRequest object with default parameters.

    `FilterByRangeRequest(String tableName, String viewName, String columnName, double lowerBound, double upperBound, Map<String,String> options)`

    Constructs a FilterByRangeRequest object with the specified parameters.
  </li>

  <li>
    ## Method Summary

    All MethodsStatic MethodsInstance MethodsConcrete Methods

    Modifier and TypeMethodDescription`boolean``equals(Object obj)` `Object``get(int index)`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `static org.apache.avro.Schema``getClassSchema()`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `String``getColumnName()`

    Name of a column on which the operation would be applied.

    `double``getLowerBound()`

    Value of the lower bound (inclusive).

    `Map<String,String>``getOptions()`

    Optional parameters.

    `org.apache.avro.Schema``getSchema()`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `String``getTableName()`

    Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).

    `double``getUpperBound()`

    Value of the upper bound (inclusive).

    `String``getViewName()`

    If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution) and meeting [table naming criteria](https://docs.kinetica.com/content/concepts/tables.md#table-naming-criteria).

    `int``hashCode()` `void``put(int index, Object value)`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `FilterByRangeRequest``setColumnName(String columnName)`

    Name of a column on which the operation would be applied.

    `FilterByRangeRequest``setLowerBound(double lowerBound)`

    Value of the lower bound (inclusive).

    `FilterByRangeRequest``setOptions(Map<String,String> options)`

    Optional parameters.

    `FilterByRangeRequest``setTableName(String tableName)`

    Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).

    `FilterByRangeRequest``setUpperBound(double upperBound)`

    Value of the upper bound (inclusive).

    `FilterByRangeRequest``setViewName(String viewName)`

    If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution) and meeting [table naming criteria](https://docs.kinetica.com/content/concepts/tables.md#table-naming-criteria).

    `String``toString()` 

    Methods inherited from class java.lang.[Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
    `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`
  </li>
</ul>

<ul>
  <li>
    ## Constructor Details

    <ul>
      <li>
        ### FilterByRangeRequest

        public FilterByRangeRequest()Constructs a FilterByRangeRequest object with default parameters.
      </li>

      <li>
        ### FilterByRangeRequest

        public FilterByRangeRequest<wbr />([String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) tableName, [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) viewName, [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) columnName, double lowerBound, double upperBound, [Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options)Constructs a FilterByRangeRequest object with the specified parameters.

        Parameters:`tableName` - Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution). Must be an existing table.`viewName` - If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution) and meeting [table naming criteria](https://docs.kinetica.com/content/concepts/tables.md#table-naming-criteria). Must not be an already existing table or view. The default value is ''.`columnName` - Name of a column on which the operation would be applied.`lowerBound` - Value of the lower bound (inclusive).`upperBound` - Value of the upper bound (inclusive).

        `options` - Optional parameters.

        <ul>
          <li>
            [`CREATE_TEMP_TABLE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#CREATE_TEMP_TABLE): If [`TRUE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#TRUE), a unique temporary table name will be generated in the sys\_temp schema and used in place of `viewName`. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in [`QUALIFIED_VIEW_NAME`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeResponse.Info#QUALIFIED_VIEW_NAME). Supported values:

            <ul>
              <li>[`TRUE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#TRUE) </li>
              <li>[`FALSE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#FALSE) </li>
            </ul>

            The default value is [`FALSE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#FALSE).
          </li>

          <li>[`COLLECTION_NAME`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#COLLECTION_NAME): \[DEPRECATED--please specify the containing schema for the view as part of `viewName` and use [`GPUdb.createSchema`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/createschema#createSchema\(com.gpudb.protocol.CreateSchemaRequest\)) 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`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).
      </li>
    </ul>
  </li>

  <li>
    ## Method Details

    <ul>
      <li>
        ### getClassSchema

        public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.

        Returns:The schema for the class.
      </li>

      <li>
        ### getTableName

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) getTableName()Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution). Must be an existing table.

        Returns:The current value of `tableName`.
      </li>

      <li>
        ### setTableName

        public [FilterByRangeRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.md) setTableName<wbr />([String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) tableName)Name of the table on which the filter by range operation will be performed, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution). Must be an existing table.

        Parameters:`tableName` - The new value for `tableName`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getViewName

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) getViewName()If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution) and meeting [table naming criteria](https://docs.kinetica.com/content/concepts/tables.md#table-naming-criteria). Must not be an already existing table or view. The default value is ''.

        Returns:The current value of `viewName`.
      </li>

      <li>
        ### setViewName

        public [FilterByRangeRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.md) setViewName<wbr />([String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) viewName)If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution) and meeting [table naming criteria](https://docs.kinetica.com/content/concepts/tables.md#table-naming-criteria). Must not be an already existing table or view. The default value is ''.

        Parameters:`viewName` - The new value for `viewName`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getColumnName

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) getColumnName()Name of a column on which the operation would be applied.

        Returns:The current value of `columnName`.
      </li>

      <li>
        ### setColumnName

        public [FilterByRangeRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.md) setColumnName<wbr />([String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) columnName)Name of a column on which the operation would be applied.

        Parameters:`columnName` - The new value for `columnName`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getLowerBound

        public double getLowerBound()Value of the lower bound (inclusive).

        Returns:The current value of `lowerBound`.
      </li>

      <li>
        ### setLowerBound

        public [FilterByRangeRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.md) setLowerBound<wbr />(double lowerBound)Value of the lower bound (inclusive).

        Parameters:`lowerBound` - The new value for `lowerBound`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getUpperBound

        public double getUpperBound()Value of the upper bound (inclusive).

        Returns:The current value of `upperBound`.
      </li>

      <li>
        ### setUpperBound

        public [FilterByRangeRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.md) setUpperBound<wbr />(double upperBound)Value of the upper bound (inclusive).

        Parameters:`upperBound` - The new value for `upperBound`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getOptions

        public [Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> getOptions()

        Optional parameters.

        <ul>
          <li>
            [`CREATE_TEMP_TABLE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#CREATE_TEMP_TABLE): If [`TRUE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#TRUE), a unique temporary table name will be generated in the sys\_temp schema and used in place of [`viewName`](#getViewName\(\)). This is always allowed even if the caller does not have permission to create tables. The generated name is returned in [`QUALIFIED_VIEW_NAME`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeResponse.Info#QUALIFIED_VIEW_NAME). Supported values:

            <ul>
              <li>[`TRUE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#TRUE) </li>
              <li>[`FALSE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#FALSE) </li>
            </ul>

            The default value is [`FALSE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#FALSE).
          </li>

          <li>[`COLLECTION_NAME`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#COLLECTION_NAME): \[DEPRECATED--please specify the containing schema for the view as part of [`viewName`](#getViewName\(\)) and use [`GPUdb.createSchema`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/createschema#createSchema\(com.gpudb.protocol.CreateSchemaRequest\)) 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`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).

        Returns:The current value of `options`.
      </li>

      <li>
        ### setOptions

        public [FilterByRangeRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.md) setOptions<wbr />([Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options)

        Optional parameters.

        <ul>
          <li>
            [`CREATE_TEMP_TABLE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#CREATE_TEMP_TABLE): If [`TRUE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#TRUE), a unique temporary table name will be generated in the sys\_temp schema and used in place of [`viewName`](#getViewName\(\)). This is always allowed even if the caller does not have permission to create tables. The generated name is returned in [`QUALIFIED_VIEW_NAME`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeResponse.Info#QUALIFIED_VIEW_NAME). Supported values:

            <ul>
              <li>[`TRUE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#TRUE) </li>
              <li>[`FALSE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#FALSE) </li>
            </ul>

            The default value is [`FALSE`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#FALSE).
          </li>

          <li>[`COLLECTION_NAME`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/FilterByRangeRequest.Options#COLLECTION_NAME): \[DEPRECATED--please specify the containing schema for the view as part of [`viewName`](#getViewName\(\)) and use [`GPUdb.createSchema`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/createschema#createSchema\(com.gpudb.protocol.CreateSchemaRequest\)) 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`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).

        Parameters:`options` - The new value for `options`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getSchema

        public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`getSchema` in interface `org.apache.avro.generic.GenericContainer`Returns:The schema object describing this class.
      </li>

      <li>
        ### get

        public [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) get<wbr />(int index)This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`get` in interface `org.apache.avro.generic.IndexedRecord`Parameters:`index` - the position of the field to getReturns:value of the field with the given index.Throws:`IndexOutOfBoundsException`
      </li>

      <li>
        ### put

        public void put<wbr />(int index, [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) value)This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`put` in interface `org.apache.avro.generic.IndexedRecord`Parameters:`index` - the position of the field to set`value` - the value to setThrows:`IndexOutOfBoundsException`
      </li>

      <li>
        ### equals

        public boolean equals<wbr />([Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) obj)

        Overrides:`equals` in class `Object`
      </li>

      <li>
        ### toString

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) toString()

        Overrides:`toString` in class `Object`
      </li>

      <li>
        ### hashCode

        public int hashCode()

        Overrides:`hashCode` in class `Object`
      </li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.