Interface DataSubsetsApi
public interface DataSubsetsApi
Manage data subsets.
-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<org.apache.pekko.Done>createDataSubsets(HRN catalogHrn, List<DataSubset> dataSubsets) Create data subsetsCompletionStage<org.apache.pekko.Done>deleteDataSubset(HRN catalogHrn, String dataSubsetId) Delete a data subsetgetDataSubset(HRN catalogHrn, String dataSubsetId) Get the details of a data subsetgetDataSubsets(HRN catalogHrn, OptionalInt limit, Optional<List<String>> areas, Optional<List<String>> layers) Get the list of all accessible data subsets which match the optional areas or layers filterCompletionStage<org.apache.pekko.stream.javadsl.Source<DataSubset,org.apache.pekko.NotUsed>> getDataSubsetsAsSource(HRN catalogHrn, OptionalInt limit, Optional<List<String>> areas, Optional<List<String>> layers) Get the list of all accessible data subsets which match the optional areas or layers filtergetDataSubsetsFingerprint(HRN catalogHrn) Get data subsets fingerprint
-
Method Details
-
createDataSubsets
CompletionStage<org.apache.pekko.Done> createDataSubsets(HRN catalogHrn, List<DataSubset> dataSubsets) Create data subsets- Parameters:
catalogHrn- The HERE Resource Name (HRN) of the catalogdataSubsets- The data subsets to create.- Returns:
- future stage which completes when the data subsets are created.
- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
deleteDataSubset
Delete a data subset- Parameters:
catalogHrn- The HERE Resource Name (HRN) of the catalogdataSubsetId- The dats subset ID.- Returns:
- future stage which completes when the data subset is deleted.
- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
getDataSubset
Get the details of a data subset- Parameters:
catalogHrn- The HERE Resource Name (HRN) of the catalogdataSubsetId- The data subset ID.- Returns:
- details of a data subset
- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
getDataSubsets
CompletionStage<List<DataSubset>> getDataSubsets(HRN catalogHrn, OptionalInt limit, Optional<List<String>> areas, Optional<List<String>> layers) Get the list of all accessible data subsets which match the optional areas or layers filter- Parameters:
catalogHrn- The HERE Resource Name (HRN) of the cataloglimit- Optional number of maximum elements in data subsets list response.areas- Optional list of areaIds which is used to filter the data subsets list response.layers- Optional list of layerIds which is used to filter the data subsets list response.- Returns:
- list of data subsets
- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
getDataSubsetsAsSource
CompletionStage<org.apache.pekko.stream.javadsl.Source<DataSubset,org.apache.pekko.NotUsed>> getDataSubsetsAsSource(HRN catalogHrn, OptionalInt limit, Optional<List<String>> areas, Optional<List<String>> layers) Get the list of all accessible data subsets which match the optional areas or layers filter- Parameters:
catalogHrn- The HERE Resource Name (HRN) of the cataloglimit- Optional number of maximum elements in data subsets list response.areas- Optional list of areaIds which is used to filter the data subsets list response.layers- Optional list of layerIds which is used to filter the data subsets list response.- Returns:
- list of data subsets as a Pekko Source
- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
getDataSubsetsFingerprint
Get data subsets fingerprint- Parameters:
catalogHrn- The HERE Resource Name (HRN) of the catalog- Returns:
- Data subsets fingerprint
- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-