# Class: Query

## Query

Base class representing an Ignite SQL or Scan query.

The class has no public constructor. Only subclasses may be instantiated.

Source:
  - Query.js, line 35

### Methods

#### setLocal(local) → {Query}

Set local query flag.

##### Parameters:

Name | Type | Description
--- | --- | ---
`local` | boolean | local query flag: true or false.

Source:
  - Query.js, line 44

##### Returns:

- the same instance of the Query.

Type
  Query

#### setPageSize(pageSize) → {Query}

Set Cursor page size.

##### Parameters:

Name | Type | Description
--- | --- | ---
`pageSize` | number | cursor page size.

Source:
  - Query.js, line 56

##### Returns:

- the same instance of the Query.

Type
  Query