ToObject converts a set of segments into an object ready to be written to the tempodb backend. The resultant byte slice can then be manipulated using the corresponding ObjectDecoder. ToObject is on the write path and should do as little as possible.
(segments [][]byte)
| 26 | // The resultant byte slice can then be manipulated using the corresponding ObjectDecoder. |
| 27 | // ToObject is on the write path and should do as little as possible. |
| 28 | ToObject(segments [][]byte) ([]byte, error) |
| 29 | // FastRange returns the start and end unix epoch timestamp of the provided segment. If its not possible to efficiently get these |
| 30 | // values from the underlying encoding then it should return decoder.ErrUnsupported |
| 31 | FastRange(segment []byte) (uint32, uint32, error) |
no outgoing calls