Package com.couchbase.client.java.kv
Class GetOptions
Allows to customize a get request.
- Since:
- 3.0.0
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.couchbase.client.java.CommonOptionsCommonOptions.BuiltCommonOptions
- 
Method SummaryModifier and TypeMethodDescriptionbuild()static GetOptionsCreates a new set ofGetOptionswith aJsonObjecttarget.Allows to specify a custom list paths to fetch from the document instead of the whole.Allows to specify a custom list paths to fetch from the document instead of the whole.transcoder(Transcoder transcoder) Allows to specify a custom transcoder that is used to decode the content of the result.withExpiry(boolean expiry) If set to true, the get will fetch the expiry for the document as well and return it as part of theGetResult.Methods inherited from class com.couchbase.client.java.CommonOptionsclientContext, parentSpan, retryStrategy, self, timeout
- 
Method Details- 
getOptionsCreates a new set ofGetOptionswith aJsonObjecttarget.- Returns:
- options to customize.
 
- 
withExpiryIf set to true, the get will fetch the expiry for the document as well and return it as part of theGetResult.- Parameters:
- expiry- true if it should be fetched.
- Returns:
- the GetOptionsto allow method chaining.
 
- 
projectAllows to specify a custom list paths to fetch from the document instead of the whole.Note that a maximum of 16 individual paths can be projected at a time due to a server limitation. If you need more than that, think about fetching less-generic paths or the full document straight away. - Parameters:
- path- a path that should be loaded if present.
- morePaths- additional paths that should be loaded if present.
- Returns:
- the GetOptionsto allow method chaining.
 
- 
projectAllows to specify a custom list paths to fetch from the document instead of the whole.Note that a maximum of 16 individual paths can be projected at a time due to a server limitation. If you need more than that, think about fetching less-generic paths or the full document straight away. - Parameters:
- paths- each individual path that should be loaded if present.
- Returns:
- the GetOptionsto allow method chaining.
 
- 
transcoderAllows to specify a custom transcoder that is used to decode the content of the result.- Parameters:
- transcoder- the custom transcoder that should be used for decoding.
- Returns:
- the GetOptionsto allow method chaining.
 
- 
build
 
-