Package org.teiid.couchbase
Interface CouchbaseConnection
-
- All Superinterfaces:
Connection
- All Known Implementing Classes:
CouchbaseConnectionImpl
public interface CouchbaseConnection extends Connection
The Logical Hierarchy of a Couchbase cluster looksNamespaces └── Keyspaces └──Documents
A Keyspace is a set of JSON documents that may vary in structure, use a self-describing format, flexible Data Model, dynamic schemas. ACouchbaseConnection
is a connection to a specific Couchbase Namespace, build upon Couchbase N1QL, used to handle application-level operations (SELECT/UPDATE/INSERT/DELETE) against the documents under a specific Couchbase Namespace.- Author:
- kylin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.couchbase.client.java.query.N1qlQueryResult
execute(String statement)
Executes the given N1QL statement, which returns a singleN1qlQueryResult
object.String
getNamespace()
Returns the name of the Namespace-
Methods inherited from interface org.teiid.resource.api.Connection
close
-
-
-
-
Method Detail
-
getNamespace
String getNamespace()
Returns the name of the Namespace- Returns:
-
execute
com.couchbase.client.java.query.N1qlQueryResult execute(String statement) throws TranslatorException
Executes the given N1QL statement, which returns a singleN1qlQueryResult
object.- Parameters:
statement
- Any N1QL statement, like Insert, Select, Update, Delete, etc.- Returns:
- Throws:
TranslatorException
-
-