in datahub/resultmodel.go [567:596]
func fillBlobData(br *BlobRecord, recordEntry *pbmodel.RecordEntry) error {
if recordEntry.ShardId != nil {
br.ShardId = *recordEntry.ShardId
}
if recordEntry.HashKey != nil {
br.HashKey = *recordEntry.HashKey
}
if recordEntry.PartitionKey != nil {
br.Sequence = *recordEntry.Sequence
}
if recordEntry.Cursor != nil {
br.Cursor = *recordEntry.Cursor
}
if recordEntry.NextCursor != nil {
br.NextCursor = *recordEntry.NextCursor
}
if recordEntry.Sequence != nil {
br.Sequence = *recordEntry.Sequence
}
if recordEntry.SystemTime != nil {
br.SystemTime = *recordEntry.SystemTime
}
if recordEntry.Attributes != nil {
for _, pair := range recordEntry.Attributes.Attributes {
br.Attributes[*pair.Key] = *pair.Value
}
}
br.RawData = recordEntry.Data.Data[0].Value
return nil
}