3.4.7.3 Message: ObjectFragment

Topic Version1Published10/31/2016
For StandardETP v1.1

Contains a single list item. Used as the return message for GrowingObjectGet and GrowingObjectGetRange. For GetRange, the store MUST send a stream of these, in index order.

Message Type ID: 6

Correlation Id Usage:

The messageId of the GrowingObjectGet or GetRange that resulted in this fragment.

Multi-part: True

Sent by: store

Attribute

Description

Data Type

Min

Max

uri

The URI for the parent object.

string

1

1

contentType

The XML content type of the fragment.

string

1

1

contentEncoding

Currently, this is always "text/xml"

string

1

1

data

The XML data for one part_ wrapper object, returned from a Get or GetRange message, as described in the data field of the DataObjectrecord.

bytes

1

1

Avro Source{

      "type": "record",

      "namespace": "Energistics.Protocol.GrowingObject",

      "name": "ObjectFragment",

      "messageType": "6",

      "protocol": "6",

      "senderRole": "store",

      "protocolRoles": "store,customer",

      "fields":

     [

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

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

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

         { "name": "data", "type": "bytes" }

     ]

}