contentAs

inline fun <T> contentAs(transcoder: Transcoder? = null): T

Returns the document content after transcoding it into the type specified by the type parameter.

Parameters

transcoder

the transcoder to use, or null to use the transcoder configured on the cluster environment.