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.kv.projections | |
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.facet |
Search facets APIs.
|
com.couchbase.client.java.search.queries |
Contains the various APIs for search queries.
|
com.couchbase.client.java.search.result |
Holds search result classes and interfaces.
|
com.couchbase.client.java.search.sort |
Holds classes related to search sorting.
|
com.couchbase.client.java.view |
Namespace for various view-service related classes.
|
Modifier and Type | Method and Description |
---|---|
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 |
JsonObjectCrypto.getObject(String fieldName) |
JsonObject |
JsonObject.getObject(String name)
Retrieves the value from the field name and casts it to
JsonObject . |
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,
CryptoManager cryptoManager,
String encrypterAlias) |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
static JsonObject |
ProjectionsApplier.parse(JsonObject in,
String path,
byte[] contentRaw) |
Modifier and Type | Method and Description |
---|---|
static JsonObject |
ProjectionsApplier.parse(JsonObject in,
String path,
byte[] contentRaw) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
AnalyticsDataset.json() |
JsonObject |
AnalyticsDataverse.json() |
JsonObject |
AnalyticsIndex.raw() |
Constructor and Description |
---|
AnalyticsDataset(JsonObject json) |
AnalyticsDataverse(JsonObject json) |
AnalyticsIndex(JsonObject raw) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
QueryIndex.raw() |
Constructor and Description |
---|
QueryIndex(JsonObject raw) |
Modifier and Type | Method and Description |
---|---|
Flux<JsonObject> |
ReactiveSearchIndexManager.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,
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.
|
Modifier and Type | Method and Description |
---|---|
Flux<JsonObject> |
ReactiveSearchIndexManager.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,
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.
|
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 as returned by the query engine which is then decoded to
JsonObject |
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 |
---|---|
protected abstract void |
SearchQuery.injectParams(JsonObject input) |
void |
SearchOptions.Built.injectParams(String indexName,
JsonObject queryJson)
Inject the top level parameters of a query into a prepared
JsonObject
that represents the root of the query. |
void |
SearchQuery.injectParamsAndBoost(JsonObject input) |
Modifier and Type | Method and Description |
---|---|
void |
NumericRangeFacet.injectParams(JsonObject queryJson) |
void |
DateRangeFacet.injectParams(JsonObject queryJson) |
void |
SearchFacet.injectParams(JsonObject queryJson) |
Modifier and Type | Method and Description |
---|---|
protected void |
PhraseQuery.injectParams(JsonObject input) |
protected void |
MatchQuery.injectParams(JsonObject input) |
protected void |
ConjunctionQuery.injectParams(JsonObject input) |
protected void |
PrefixQuery.injectParams(JsonObject input) |
protected void |
DisjunctionQuery.injectParams(JsonObject input) |
protected void |
MatchNoneQuery.injectParams(JsonObject input) |
protected void |
RegexpQuery.injectParams(JsonObject input) |
protected void |
NumericRangeQuery.injectParams(JsonObject input) |
protected void |
GeoPolygonQuery.injectParams(JsonObject input) |
protected void |
MatchAllQuery.injectParams(JsonObject input) |
protected void |
DateRangeQuery.injectParams(JsonObject input) |
protected void |
TermQuery.injectParams(JsonObject input) |
protected void |
BooleanQuery.injectParams(JsonObject input) |
protected void |
BooleanFieldQuery.injectParams(JsonObject input) |
protected void |
TermRangeQuery.injectParams(JsonObject input) |
protected void |
DocIdQuery.injectParams(JsonObject input) |
protected void |
GeoDistanceQuery.injectParams(JsonObject input) |
protected void |
QueryStringQuery.injectParams(JsonObject input) |
protected void |
MatchPhraseQuery.injectParams(JsonObject input) |
protected void |
GeoBoundingBoxQuery.injectParams(JsonObject input) |
protected void |
WildcardQuery.injectParams(JsonObject input) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
SearchRow.explanation()
If
SearchOptions.explain(boolean) () requested in the query}, an explanation of the match, in JSON form. |
Modifier and Type | Method and Description |
---|---|
static SearchRowLocations |
SearchRowLocations.from(JsonObject locationsJson)
Parses a FTS JSON representation of a
SearchRowLocations . |
Constructor and Description |
---|
SearchRow(String index,
String id,
double score,
JsonObject explanation,
Optional<SearchRowLocations> locations,
Map<String,List<String>> fragments,
byte[] fields,
JsonSerializer serializer) |
Modifier and Type | Method and Description |
---|---|
void |
SearchSort.injectParams(JsonObject queryJson) |
void |
SearchSortField.injectParams(JsonObject queryJson) |
void |
SearchSortGeoDistance.injectParams(JsonObject queryJson) |
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 © 2020 Couchbase, Inc.. All rights reserved.