Class AnalyticsLink
java.lang.Object
com.couchbase.client.java.manager.analytics.link.AnalyticsLink
- Direct Known Subclasses:
CouchbaseRemoteAnalyticsLink
,RawExternalAnalyticsLink
,S3ExternalAnalyticsLink
Represents a Link to an external datasource that is connected with the Analytics service.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AnalyticsLink
(String name, String dataverse) Creates a newAnalyticsLink
. -
Method Summary
Modifier and TypeMethodDescriptionstatic CouchbaseRemoteAnalyticsLink
couchbaseRemote
(String linkName, String dataverseName) Static factory method to create a remote Couchbase link.Returns the name of the dataverse in which this link is stored.name()
Returns the name of the analytics link.static S3ExternalAnalyticsLink
Static factory method to create an S3 link.toMap()
Returns an (internal) representation of this link as a map.abstract AnalyticsLinkType
type()
Returns the type of the link.
-
Constructor Details
-
AnalyticsLink
Creates a newAnalyticsLink
.- Parameters:
name
- the name of the link.dataverse
- the dataverse in which this link is stored.
-
-
Method Details
-
s3
@SinceCouchbase("7.0") public static S3ExternalAnalyticsLink s3(String linkName, String dataverseName) Static factory method to create an S3 link.Please note that additional parameters are required and must be set on
S3ExternalAnalyticsLink
in order for a S3 link to work properly.- Parameters:
linkName
- the name of the link.dataverseName
- the dataverse name inside which the link exists.- Returns:
- the created link instance.
-
couchbaseRemote
Static factory method to create a remote Couchbase link.- Parameters:
linkName
- the name of the link.dataverseName
- the dataverse name inside which the link exists.- Returns:
- the created link instance.
-
type
Returns the type of the link.- Returns:
- the type of the link.
-
name
Returns the name of the analytics link.- Returns:
- the name of the link.
-
dataverse
Returns the name of the dataverse in which this link is stored.- Returns:
- the name of the dataverse.
-
toMap
Returns an (internal) representation of this link as a map.- Returns:
- a map representation of this link.
-