public abstract class LookupInSpec extends Object
Operations allow specifying an empty path ("") which means that the root document level is used (so it will be applied to the full document). By nature it makes sense to only use such a command in isolation, but it can be combined with xattr (extended attributes, a document metadata section) operations as well.
Constructor and Description |
---|
LookupInSpec() |
Modifier and Type | Method and Description |
---|---|
static LookupInSpecStandard |
count(String path)
Counts the number of values at a given path in the document.
|
static LookupInSpecStandard |
exists(String path)
Checks if a value at the given path exists in the document.
|
static LookupInSpecStandard |
get(String path)
Fetches the content from a field (if present) at the given path.
|
abstract com.couchbase.client.core.api.kv.CoreSubdocGetCommand |
toCore()
Internal operation called from the encoding side that encodes the spec into its internal representation.
|
@Stability.Internal public abstract com.couchbase.client.core.api.kv.CoreSubdocGetCommand toCore()
public static LookupInSpecStandard get(String path)
path
- the path identifying where to get the value.LookupInSpec
.public static LookupInSpecStandard exists(String path)
path
- the path to check if the field exists.LookupInSpec
.public static LookupInSpecStandard count(String path)
path
- the path identifying where to count the values.LookupInSpec
.Copyright © 2024 Couchbase, Inc.. All rights reserved.