IndexLayerClient
Constructors
constructor
- new
Index Layer Client(params: IndexLayerClientParams): IndexLayerClient
-
Creates the IndexLayerClient instance with IndexLayerClientParams.
Parameters-
params: IndexLayerClientParams
parameters for use to initialize IndexLayerClient.
Returns IndexLayerClient -
Methods
get Data
-
Fetches partition data using data handle.
Parameters-
The data model of partition metadata.
-
Optional abortSignal: AbortSignal
A signal object that allows you to communicate with a request (such as the
fetchrequest) and, if required, abort it using theAbortControllerobject.For more information, see the
AbortControllerdocumentation.
Returns Promise<Response>The data from the requested partition.
-
get Partitions
- get
Partitions(request: IndexQueryRequest, abortSignal?: AbortSignal): Promise<IndexApi.Index[]>
-
Fetches all partitions metadata from a layer that match a query from the IndexQueryRequest instance.
Parameters-
request: IndexQueryRequest
-
Optional abortSignal: AbortSignal
A signal object that allows you to communicate with a request (such as the
fetchrequest) and, if required, abort it using theAbortControllerobject.For more information, see the
AbortControllerdocumentation.
A list of metadata for each of the partitions from the requested layer.
-
Describes a index layer and provides the possibility to get partitions metadata and data.