Class CatalogConfiguration
Class CatalogConfiguration
- java.lang.Object
-
- com.here.sdk.core.engine.CatalogConfiguration
-
public final class CatalogConfiguration extends java.lang.ObjectUsing this class you can configure in the
SDKOptions, how theSDKNativeEngineshould access, use and store the data for the desired catalog.Using this class, you can access default catalogs on the HERE platform and also custom catalogs such as for self-hosted or BYOD (bring your own data) use cases.
For information on how the user can identify a catalog on the HERE platform, see
DesiredCatalogFor further information about catalogs and related concepts seeCatalogIdentifier.Note: This API is only applicable for enhanced editions such as the Navigate Edition.
-
-
Field Summary
Fields Modifier and Type Field Description booleanallowDownloadA flag to indicate if the data for this catalog is allowed to be stored in persistent storage for use with offline maps.DurationcacheExpirationPeriodExpiration time in seconds for how long the catalog data is retained in the map cache before it is removed.DesiredCatalogcatalogThe identifier for the desired catalog to be accessed on the HERE platform.java.lang.StringpatchHrnSome catalogs may have additional modifications to their data contained in an entirely separate catalog, called the patch catalog.
-
Constructor Summary
Constructors Constructor Description CatalogConfiguration(DesiredCatalog catalog)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static CatalogConfigurationgetDefault(CatalogType catalogType)Gets the default catalog configuration for the specified catalog type.inthashCode()
-
-
-
Field Detail
-
catalog
@NonNull public DesiredCatalog catalog
The identifier for the desired catalog to be accessed on the HERE platform. See
DesiredCatalog.
-
patchHrn
@Nullable public java.lang.String patchHrn
Some catalogs may have additional modifications to their data contained in an entirely separate catalog, called the patch catalog. This field indicates the HERE Resource Name (HRN) for the patch catalog. When this field is present, the catalog's data as referenced by
catalogis merged with data from the patch catalog. If this field isnull, then incremental updates are disabled.
-
cacheExpirationPeriod
@Nullable public Duration cacheExpirationPeriod
Expiration time in seconds for how long the catalog data is retained in the map cache before it is removed. Cache path is specified by
SDKOptions.cachePath. If not set, the cache will be deleted on a Least Recently Used (LRU) basis.
-
allowDownload
public boolean allowDownload
A flag to indicate if the data for this catalog is allowed to be stored in persistent storage for use with offline maps. The storage path is specified in
SDKOptions.persistentMapStoragePath. If set to false, the data is not stored in persistent storage and is only retained in the cache for a limited time (seecacheExpirationPeriod). Defaults totrue.
-
-
Constructor Detail
-
CatalogConfiguration
public CatalogConfiguration(@NonNull DesiredCatalog catalog)Creates a new instance.
- Parameters:
catalog-The identifier for the desired catalog to be accessed on the HERE platform. See
DesiredCatalog.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getDefault
@NonNull public static CatalogConfiguration getDefault(@NonNull CatalogType catalogType)
Gets the default catalog configuration for the specified catalog type. It uses the catalog version that was the latest at the time when the HERE SDK was built.
- Parameters:
catalogType-Catalog type
- Returns:
Instance of
CatalogConfiguration.
-
-