3.4.8.2 Message: PutDataArraySlice

Topic Version1Published10/31/2016
For StandardETP v1.1

Send a portion of a data array, referenced by URI and with an index range for each dimension.

Message Type ID: 5

Correlation Id Usage: n/a

Multi-part: False

Sent by: customer

Attribute

Description

Data Type

Min

Max

uri

A URI string identifying the array that is sought. This protocol does NOT specify the exact format of the URI; it uses various existing URI conventions.

Specifically, for RESQML V2 data sets, the URI is a serialization of the HDF5 proxy as follows:

eml://array/resqml20/{uuid of hdf5}/{dataset path}

string

1

1

data

The array data.

AnyArray

1

1

dimensions

An array of dimension sizes for the data array. This MUST be the actual size of the included data, whether or not it is a slice of another array.

long

1

*

start

The starting index of the sub-array, per dimension.

long

0

*

count

The count of values along each dimension.

long

0

*

Avro Source

{

      "type": "record",

      "namespace": "Energistics.Protocol.DataArray",

      "name": "PutDataArraySlice",

      "messageType": "5",

      "protocol": "7",

      "senderRole": "customer",

      "protocolRoles": "store,customer",

      "fields":

     [

         { "name": "uri", "type": "string" },

         { "name": "data", "type": "Energistics.Datatypes.AnyArray" },

         {

          "name": "dimensions",

          "type": { "type": "array", "items": "long" }

     },

         {

          "name": "start",

          "type": { "type": "array", "items": "long" }

     },

         {

          "name": "count",

          "type": { "type": "array", "items": "long" }

     }

     ]

}