Skip to content

Add query v3 #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 162 additions & 0 deletions openapi-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1120,12 +1120,63 @@ definitions:
properties:
layout:
$ref: "#/definitions/Layout"
stats:
$ref: "#/definitions/Stats"
ranges:
description: List of 1D ranges, one per dimension
type: array
x-omitempty: true
items:
$ref: "#/definitions/SubarrayRanges"
relevantFragments:
type: array
x-omitempty: true
items:
type: integer
format: uint32
coalesceRanges:
type: boolean

Stats:
description: Stats struct
type: object
properties:
timers:
$ref: "#/definitions/MapFloat64"
counters:
$ref: "#/definitions/MapUInt64"

MapFloat64:
description: Stats struct
type: object
properties:
entries:
type: array
x-omitempty: true
items:
type: object
properties:
key:
type: string
value:
type: number
format: double

MapUInt64:
description: Stats struct
type: object
properties:
entries:
type: array
x-omitempty: true
items:
type: object
properties:
key:
type: string
value:
type: integer
format: uint64

SubarrayPartitioner:
description: The subarray partitioner
Expand Down Expand Up @@ -1220,6 +1271,111 @@ definitions:
description: To handle incomplete read queries.
$ref: "#/definitions/ReadState"

ReaderIndex:
description: Contains data needed for continuation of incomplete sparse reads with index readers
type: object
properties:
layout:
$ref: "#/definitions/Layout"
subarray:
$ref: "#/definitions/Subarray"
readState:
description: Read state of reader
$ref: "#/definitions/ReadStateIndex"
stats:
$ref: "#/definitions/Stats"
condition:
description: The query condition
$ref: "#/definitions/Condition"

ReadStateIndex:
description: State of reader
type: object
properties:
doneAddingResultTiles:
description: Is the reader done adding result tiles.
type: boolean
fragTileIdx:
description: Tile/cell index for each fragments.
type: array
x-omitempty: true
items:
$ref: "#/definitions/FragmentIndex"
resultCellSlab:
description: Result cell slab.
type: array
x-omitempty: true
items:
$ref: "#/definitions/ResultCellSlab"

ResultCellSlab:
description: Result cell slab
type: object
properties:
fragIdx:
description: Fragment index
type: integer
format: uint32
tileIdx:
description: Tile index
type: integer
format: uint64
start:
description: Start of the cell slab
type: integer
format: uint64
length:
description: length of the cell slab
type: integer
format: uint64

FragmentIndex:
description: Tile/cell index for fragment
type: object
properties:
tileIdx:
description: Tile index
type: integer
format: uint64
cellIdx:
description: Cell index
type: integer
format: uint64

Condition:
description: The query condition
type: object
properties:
clauseCombinationOps:
description: The operation that combines each condition
type: array
x-omitempty: true
items:
type: string
clauses:
description: All clauses in this condition
type: array
x-omitempty: true
items:
$ref: "#/definitions/ConditionClause"

ConditionClause:
description: A clause within a condition
type: object
properties:
fieldName:
description: The name of the field this clause applies to
type: string
value:
description: The comparison value
type: array
items:
type: integer
format: uint8
op:
description: The comparison operation
type: string

Query:
type: object
required:
Expand Down Expand Up @@ -1249,6 +1405,12 @@ definitions:
reader:
description: reader contains data needed for continuation of reads
$ref: "#/definitions/QueryReader"
denseReader:
description: denseReader contains data needed for continuation of incomplete dense reads with dense reader
$ref: "#/definitions/QueryReader"
readerIndex:
description: readerIndex contains data needed for continuation of incomplete sparse reads with index readers
$ref: "#/definitions/ReaderIndex"
array:
description: Represents an open array
$ref: "#/definitions/Array"
Expand Down
Loading