Package | Description |
---|---|
com.couchbase.client.java.analytics |
Namespace for various analytics-service related classes.
|
com.couchbase.client.java.json |
JSON encoding and decoding.
|
com.couchbase.client.java.kv |
Namespace for various kv-service related classes.
|
com.couchbase.client.java.manager.analytics | |
com.couchbase.client.java.manager.query |
APIs related to N1QL query index management.
|
com.couchbase.client.java.manager.search | |
com.couchbase.client.java.query |
Namespace for various query-service related classes.
|
com.couchbase.client.java.search |
Namespace for various search-service related classes.
|
com.couchbase.client.java.search.result |
Holds search result classes and interfaces.
|
com.couchbase.client.java.transactions | |
com.couchbase.client.java.view |
Namespace for various view-service related classes.
|
Modifier and Type | Method and Description |
---|---|
Optional<JsonObject> |
AnalyticsMetaData.plans()
Returns plan information if present.
|
Flux<JsonObject> |
ReactiveAnalyticsResult.rowsAsObject()
Get a
Flux which publishes the rows that were fetched by the query which are then decoded to
JsonObject |
List<JsonObject> |
AnalyticsResult.rowsAsObject()
Returns all rows, converted into
JsonObject s. |
Optional<JsonObject> |
AnalyticsMetaData.signature()
Get the signature as the target type, if present.
|
Modifier and Type | Method and Description |
---|---|
void |
AnalyticsOptions.Built.injectParams(JsonObject input) |
AnalyticsOptions |
AnalyticsOptions.parameters(JsonObject named)
Sets named parameters for this query.
|
Modifier and Type | Method and Description |
---|---|
static JsonObject |
JacksonTransformers.bytesToJsonObject(byte[] input) |
static JsonObject |
JsonObject.create()
Creates a empty
JsonObject . |
static JsonObject |
JsonObject.create(int initialCapacity)
Creates a empty
JsonObject . |
static JsonObject |
JsonObject.from(Map<String,?> mapData)
Constructs a
JsonObject from a Map<String, ?> . |
static JsonObject |
JsonObject.fromJson(byte[] s) |
static JsonObject |
JsonObject.fromJson(String s)
Static method to create a
JsonObject from a JSON String . |
JsonObject |
JsonArray.getObject(int index)
Retrieves the value by the position in the
JsonArray and casts it to JsonObject . |
JsonObject |
JsonObject.getObject(String name)
Retrieves the value from the field name and casts it to
JsonObject . |
JsonObject |
JsonObjectCrypto.getObject(String fieldName) |
static JsonObject |
JsonValue.jo()
Static factory method to create an empty
JsonObject . |
JsonObject |
JsonObjectCrypto.object()
Returns the JsonObject bound to this crypto view.
|
JsonObject |
JsonObject.put(String name,
boolean value)
Stores a
Boolean value identified by the field name. |
JsonObject |
JsonObject.put(String name,
double value)
Stores a
Double value identified by the field name. |
JsonObject |
JsonObject.put(String name,
int value)
Stores a
Integer value identified by the field name. |
JsonObject |
JsonObject.put(String name,
JsonArray value)
Stores a
JsonArray value identified by the field name. |
JsonObject |
JsonObject.put(String name,
JsonObject value)
Stores a
JsonObject value identified by the field name. |
JsonObject |
JsonObject.put(String name,
List<?> value)
Stores a
JsonArray value identified by the field name. |
JsonObject |
JsonObject.put(String name,
long value)
Stores a
Long value identified by the field name. |
JsonObject |
JsonObject.put(String name,
Map<String,?> value)
Attempt to convert a
Map to a JsonObject value and store it, identified by the field name. |
JsonObject |
JsonObject.put(String name,
Number value)
Stores a
Number value identified by the field name. |
JsonObject |
JsonObject.put(String name,
Object value)
Stores a
Object value identified by the field name. |
JsonObject |
JsonObject.put(String name,
String value)
Stores a
String value identified by the field name. |
JsonObject |
JsonObject.putNull(String name)
Store a null value identified by the field's name.
|
JsonObject |
JsonObject.removeKey(String name)
Removes an entry from the
JsonObject . |
static JsonObject |
JacksonTransformers.stringToJsonObject(String input) |
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(JsonObject value)
Append an
JsonObject element to the JsonArray . |
JsonObject |
JsonObject.put(String name,
JsonObject value)
Stores a
JsonObject value identified by the field name. |
JsonObjectCrypto |
JsonObjectCrypto.withObject(JsonObject object)
Returns a new instance that is a view of the given JsonObject.
|
Constructor and Description |
---|
JsonObjectCrypto(JsonObject jsonObject,
com.couchbase.client.core.encryption.CryptoManager cryptoManager,
String encrypterAlias) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
ScanResult.contentAsObject()
Decodes the content of the document into a
JsonObject . |
JsonObject |
GetResult.contentAsObject()
Decodes the content of the document into a
JsonObject . |
JsonObject |
LookupInResult.contentAsObject(int index)
Decodes the encoded content at the given index into a
JsonObject . |
JsonObject |
MutationState.export()
Exports the
MutationState into a universal format, which can be used either to serialize it into
a N1QL query or to send it over the network to a different application/SDK. |
JsonObject |
MutationState.exportForSearch()
Exports the
MutationState into a format recognized by the FTS search engine. |
Modifier and Type | Method and Description |
---|---|
static MutationState |
MutationState.from(JsonObject source)
Create a
MutationState from the serialized state. |
Modifier and Type | Method and Description |
---|---|
JsonObject |
AnalyticsDataset.json()
Returns the "raw" JSON returned from the analytics service.
|
JsonObject |
AnalyticsDataverse.json()
Returns the "raw" JSON returned from the analytics service.
|
JsonObject |
AnalyticsIndex.raw()
Returns the "raw" JSON returned from the analytics service.
|
Constructor and Description |
---|
AnalyticsDataset(JsonObject json)
Creates a new dataset from a raw JSON object.
|
AnalyticsDataverse(JsonObject json)
Creates a new dataverse from a raw JSON object.
|
AnalyticsIndex(JsonObject raw)
Creates a new dataset from a raw JSON object.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
QueryIndex.raw()
Returns the JSON as it arrived from the server.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<JsonObject>> |
AsyncScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
ScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
SearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
CompletableFuture<List<JsonObject>> |
AsyncSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
Flux<JsonObject> |
ReactiveSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
CompletableFuture<List<JsonObject>> |
AsyncScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
ScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
SearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
CompletableFuture<List<JsonObject>> |
AsyncSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
Flux<JsonObject> |
ReactiveSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<JsonObject>> |
AsyncScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
ScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
SearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
CompletableFuture<List<JsonObject>> |
AsyncSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
Flux<JsonObject> |
ReactiveSearchIndexManager.analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
CompletableFuture<List<JsonObject>> |
AsyncScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
ScopeSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
List<JsonObject> |
SearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
CompletableFuture<List<JsonObject>> |
AsyncSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
Flux<JsonObject> |
ReactiveSearchIndexManager.analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
Modifier and Type | Method and Description |
---|---|
Optional<JsonObject> |
QueryMetaData.profile()
Returns the profiling information returned by the query engine which is then decoded to
JsonObject |
List<JsonObject> |
QueryResult.rowsAsObject()
Returns all rows, converted into
JsonObject s. |
Flux<JsonObject> |
ReactiveQueryResult.rowsAsObject()
Get a
Flux which publishes the rows that were fetched by the query which are then decoded to
JsonObject |
Optional<JsonObject> |
QueryMetaData.signature()
Returns the signature returned by the query engine, parsed as a
JsonObject ,
or an empty optional if no signature is available. |
Modifier and Type | Method and Description |
---|---|
void |
QueryOptions.Built.injectParams(JsonObject queryJson) |
QueryOptions |
QueryOptions.parameters(JsonObject named)
Sets named parameters for this query.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
SearchQuery.export()
Exports the whole query as a
JsonObject . |
Modifier and Type | Method and Description |
---|---|
JsonObject |
SearchRow.explanation()
If
SearchOptions.explain(boolean) was set to true, returns an explanation of the match. |
Modifier and Type | Method and Description |
---|---|
JsonObject |
TransactionGetResult.contentAsObject()
Decodes the content of the document into a
JsonObject using the default decoder. |
Modifier and Type | Method and Description |
---|---|
List<JsonObject> |
TransactionQueryResult.rowsAsObject()
Returns all rows, converted into
JsonObject s. |
Modifier and Type | Method and Description |
---|---|
TransactionQueryOptions |
TransactionQueryOptions.parameters(JsonObject named)
Sets named parameters for this query.
|
Modifier and Type | Method and Description |
---|---|
Optional<JsonObject> |
ViewMetaData.debug()
If present, returns debug information of the view request.
|
Modifier and Type | Method and Description |
---|---|
ViewOptions |
ViewOptions.endKey(JsonObject key) |
ViewOptions |
ViewOptions.key(JsonObject key) |
ViewOptions |
ViewOptions.startKey(JsonObject key) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.