Interface JsonOperations.JsonResults

All Superinterfaces:
Iterable<JsonOperations.JsonResult>, Streamable<JsonOperations.JsonResult>, Supplier<Stream<JsonOperations.JsonResult>>
Enclosing interface:
JsonOperations<K>

public static interface JsonOperations.JsonResults extends Streamable<JsonOperations.JsonResult>
A sequence of JSON results with access to their JSON representations and deserialized values.

Elements retain the order of the matching paths or input keys of the originating command.

Since:
4.2
Author:
Mark Paluch, Yordan Tsintsov, Moritz Halbritter
  • Method Details

    • as

      <V> List<@Nullable V> as(Class<V> type)
      Deserialize each JSON result into an object of the given type.
      Type Parameters:
      V - the result element type.
      Parameters:
      type - the target type for each result.
      Returns:
      the deserialized values in result order.
    • as

      Deserialize each JSON result into an object of the given type.
      Type Parameters:
      V - the result element type.
      Parameters:
      type - the target type for each result.
      Returns:
      the deserialized values in result order.
    • asString

      List<@Nullable String> asString()
      Return the JSON representation of each result as a UTF-8 string.
      Returns:
      the JSON string representations.
    • asBytes

      List<byte @Nullable []> asBytes()
      Return the JSON representation of each result as raw bytes.
      Returns:
      the raw JSON bytes.