QueryRange
QueryRange represents a LIMIT + OFFSET pair and provides high-level methods for comparing, copying and joining ranges. It also provides syntax sugar around infinity (the absence of a defined LIMIT or OFFSET).
Static Method Summary
| Static Public Methods | ||
| public static |
infinite(): * |
|
| public static |
rangeWithUnion(a: *, b: *): * |
|
| public static |
rangesBySubtracting(a: *, b: *): * |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(objectPattern: {"limit": *, "offset": *, "start": *, "end": *}) |
|
Member Summary
| Public Members | ||
| public get |
end: * |
|
| public |
limit: * |
|
| public |
offset: * |
|
| public get |
start: * |
|
Method Summary
| Public Methods | ||
| public |
clone(): * |
|
| public |
isContiguousWith(b: *): * |
|
| public |
isEqual(b: *): * |
|
| public |
isInfinite(): * |
|
| public |
|
|
Static Public Methods
public static rangeWithUnion(a: *, b: *): * source
Params:
| Name | Type | Attribute | Description |
| a | * | ||
| b | * |
Return:
| * |
public static rangesBySubtracting(a: *, b: *): * source
Params:
| Name | Type | Attribute | Description |
| a | * | ||
| b | * |
Return:
| * |
Public Constructors
public constructor(objectPattern: {"limit": *, "offset": *, "start": *, "end": *}) source
Params:
| Name | Type | Attribute | Description |
| objectPattern | {"limit": *, "offset": *, "start": *, "end": *} |
|