Package com.couchbase.client.java.kv
Class LookupInSpec
java.lang.Object
com.couchbase.client.java.kv.LookupInSpec
- Direct Known Subclasses:
- LookupInSpecStandard
Defines specs to lookup parts in a JSON document.
 
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LookupInSpecStandardCounts the number of values at a given path in the document.static LookupInSpecStandardChecks if a value at the given path exists in the document.static LookupInSpecStandardFetches the content from a field (if present) at the given path.abstract CoreSubdocGetCommandtoCore()Internal operation called from the encoding side that encodes the spec into its internal representation.
- 
Constructor Details- 
LookupInSpecpublic LookupInSpec()
 
- 
- 
Method Details- 
toCoreInternal operation called from the encoding side that encodes the spec into its internal representation.
- 
getFetches the content from a field (if present) at the given path.- Parameters:
- path- the path identifying where to get the value.
- Returns:
- the created LookupInSpec.
 
- 
existsChecks if a value at the given path exists in the document.- Parameters:
- path- the path to check if the field exists.
- Returns:
- the created LookupInSpec.
 
- 
countCounts the number of values at a given path in the document.- Parameters:
- path- the path identifying where to count the values.
- Returns:
- the created LookupInSpec.
 
 
-