Interface DataApiVersionedAdapter
public interface DataApiVersionedAdapter
DataApiCatalogFacade is the adapter to interact with the HERE data service.
It is the single point of access used by the data-client-v2 library to interact with the HERE Data service.
-
Method Summary
Modifier and TypeMethodDescriptiongetBlob
(String layer, String dataHandle, AdditionalField[] additionalFields) Retrieve the blob data as an input stream.Fetch layer configuration.getPartitions
(String layer, long version, List<String> additionalFields) List all partitions.getPartitionsById
(String layer, long version, List<String> partitions, List<String> additionalFields) Get the metadata (Partition) for a list of partitions from the data service.
-
Method Details
-
getBlob
Retrieve the blob data as an input stream.- Parameters:
layer
- Layer id to which the blob belongs to.dataHandle
- Data handle identifies a specific blob so that you can get that blob's contents.additionalFields
- Collection of retrieved additional fields which can optionally be used for example to perform extra validation (e.g.checksum
).- Returns:
- Returns an InputStream of the blob data.
-
getLayers
Iterator<VersionedLayer> getLayers()Fetch layer configuration.- Returns:
- Returns an iterator with the layer configuration.
-
getPartitions
List all partitions.- Parameters:
layer
- Layer id to which the blob belongs to.version
- Catalog version.additionalFields
- collection of additional fields ids to retrieve.- Returns:
- Returns an iterator with the partitions.
-
getPartitionsById
Iterator<Partition> getPartitionsById(String layer, long version, List<String> partitions, List<String> additionalFields) Get the metadata (Partition) for a list of partitions from the data service.- Parameters:
layer
- Layer id for which we want to retrieve partition metadata.version
- Catalog version.partitions
- collection of partition ids to retrieve.additionalFields
- collection of additional fields ids to retrieve.- Returns:
- Returns the metadata for the available partitions.
-