Class DataClient
java.lang.Object
com.here.platform.data.client.javadsl.DataClient
- All Implemented Interfaces:
DataClientApi,org.apache.pekko.actor.Extension
public final class DataClient
extends Object
implements DataClientApi, org.apache.pekko.actor.Extension
Entry point of the Java
data-client module.
Use provided API objects to query and publish metadata for catalogs and layers.
DataEngineExt's provided API objects can later interact with this metadata to upload,
or download, actual data to/from the layer's storage.
Use DataClient.get to access the global instance.
Consider passing this global instance as a DataClientApi for unit testing purposes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadminApi()Create a catalog admin API objectCreate a catalog admin API objectstatic Tapply(org.apache.pekko.actor.ActorSystem system) static Tapply(org.apache.pekko.actor.ClassicActorSystemProvider system) static DataClientcreateExtension(org.apache.pekko.actor.ExtendedActorSystem system) Default setting which will be used if no overrides is providedstatic final booleanstatic DataClientget(org.apache.pekko.actor.ActorSystem system) Get client execution context (internal for testing)static final inthashCode()voidinvalidateCache(HRN hrn) Invalidate internal caches for catalogstatic com.here.platform.data.client.javadsl.DataClient$lookup()publishApi(HRN hrn) Create a catalog publish API objectpublishApi(HRN hrn, Settings settings) Create a catalog publish API objectCreate a catalog query API objectCreate a catalog query API object
-
Constructor Details
-
DataClient
public DataClient(org.apache.pekko.actor.ActorSystem system)
-
-
Method Details
-
get
-
lookup
public static com.here.platform.data.client.javadsl.DataClient$ lookup() -
createExtension
-
apply
public static T apply(org.apache.pekko.actor.ActorSystem system) -
apply
public static T apply(org.apache.pekko.actor.ClassicActorSystemProvider system) -
hashCode
public static final int hashCode() -
equals
-
defaultSettings
Description copied from interface:DataClientApiDefault setting which will be used if no overrides is provided- Specified by:
defaultSettingsin interfaceDataClientApi
-
queryApi
Description copied from interface:DataClientApiCreate a catalog query API object- Specified by:
queryApiin interfaceDataClientApi- Parameters:
hrn- catalog identifier- Returns:
- catalog query API if catalog exists, return error if catalog does not exists
-
queryApi
Description copied from interface:DataClientApiCreate a catalog query API object- Specified by:
queryApiin interfaceDataClientApi- Parameters:
hrn- catalog identifiersettings- setting to be used while using query API- Returns:
- catalog query API if catalog exists, return error if catalog does not exists
-
publishApi
Description copied from interface:DataClientApiCreate a catalog publish API object- Specified by:
publishApiin interfaceDataClientApi- Parameters:
hrn- catalog identifier- Returns:
- catalog publish API if catalog exists, return error if catalog does not exists
-
publishApi
Description copied from interface:DataClientApiCreate a catalog publish API object- Specified by:
publishApiin interfaceDataClientApi- Parameters:
hrn- catalog identifiersettings- setting to be used while using publish API- Returns:
- catalog publish API if catalog exists, return error if catalog does not exists
-
adminApi
Description copied from interface:DataClientApiCreate a catalog admin API object- Specified by:
adminApiin interfaceDataClientApi- Parameters:
settings- setting to be used while using admin API- Returns:
- catalog admin API
-
adminApi
Description copied from interface:DataClientApiCreate a catalog admin API object- Specified by:
adminApiin interfaceDataClientApi- Returns:
- catalog admin API
-
invalidateCache
Description copied from interface:DataClientApiInvalidate internal caches for catalog- Specified by:
invalidateCachein interfaceDataClientApi- Parameters:
hrn- catalog identifier
-
getClientExecutionContext
Description copied from interface:DataClientApiGet client execution context (internal for testing)- Specified by:
getClientExecutionContextin interfaceDataClientApi
-