Class TransactionGetMultiReplicasFromPreferredServerGroupResult
- 
Constructor SummaryConstructorsConstructorDescriptionTransactionGetMultiReplicasFromPreferredServerGroupResult(List<TransactionGetMultiReplicasFromPreferredServerGroupSpecResult> results) 
- 
Method SummaryModifier and TypeMethodDescription<T> TDecodes the content of a document into the target class.<T> TDecodes the content of a document into the target class.byte[]contentAsBytes(int specIndex) Returns the raw unconverted contents as a byte[], bypassing any Serializer or Transcoder.contentAsObject(int specIndex) Decodes the content of a document into aJsonObject.booleanexists(int specIndex) If the document matching this `specIndex` existed.intsize()
- 
Constructor Details- 
TransactionGetMultiReplicasFromPreferredServerGroupResult@Internal public TransactionGetMultiReplicasFromPreferredServerGroupResult(List<TransactionGetMultiReplicasFromPreferredServerGroupSpecResult> results) 
 
- 
- 
Method Details- 
existspublic boolean exists(int specIndex) If the document matching this `specIndex` existed.- Parameters:
- specIndex- this is in the same order as the `specs` list provided to the getMulti() operation.
 
- 
contentAsObjectDecodes the content of a document into aJsonObject.The JsonSerializer configured on the underlying Java SDK is used, unless a Transcoder was specified in the TransactionGetMultiSpec, in which case that is used.The document is at the specified `specIndex`. If the document did not exist, a DocumentNotFoundExceptionis thrown.exists(int)can be called initially to check if the document existed.- Parameters:
- specIndex- this is in the same order as the `specs` list provided to the getMulti() operation.
 
- 
contentAsDecodes the content of a document into the target class.The JsonSerializer configured on the underlying Java SDK is used, unless a Transcoder was specified in the TransactionGetMultiSpec, in which case that is used.The document is at the specified `specIndex`. If the document did not exist, a DocumentNotFoundExceptionis thrown.exists(int)can be called initially to check if the document existed.- Parameters:
- specIndex- this is in the same order as the `specs` list provided to the getMulti() operation.
- target- the target class to decode the encoded content into.
 
- 
contentAsDecodes the content of a document into the target class.The JsonSerializer configured on the underlying Java SDK is used, unless a Transcoder was specified in the TransactionGetMultiSpec, in which case that is used.The document is at the specified `specIndex`. If the document did not exist, a DocumentNotFoundExceptionis thrown.exists(int)can be called initially to check if the document existed.- Parameters:
- specIndex- this is in the same order as the `specs` list provided to the getMulti() operation.
- target- the target class to decode the encoded content into.
 
- 
contentAsBytespublic byte[] contentAsBytes(int specIndex) Returns the raw unconverted contents as a byte[], bypassing any Serializer or Transcoder.
- 
sizepublic int size()
 
-