Documentation ¶
Index ¶
- func NewKeyPrefix(channelKey channel.Key) []byte
- type Header
- type Key
- type Range
- type Segment
- type Sugared
- func (s Sugared) BoundedOffset() telem.Offset
- func (s Sugared) BoundedRange() telem.TimeRange
- func (s Sugared) BoundedSize() telem.Size
- func (s Sugared) BoundedSpan() telem.TimeSpan
- func (s Sugared) ChannelKey() channel.Key
- func (s Sugared) FileKey() core.FileKey
- func (s *Sugared) Header() Header
- func (s *Sugared) ReadDataFrom(r io.ReaderAt) error
- func (s *Sugared) Segment() Segment
- func (s *Sugared) SetBounds(bounds telem.TimeRange)
- func (s *Sugared) SetFileKey(fk core.FileKey)
- func (s Sugared) Start() telem.TimeStamp
- func (s Sugared) UnboundedRange() telem.TimeRange
- func (s Sugared) UnboundedSize() telem.Size
- func (s Sugared) UnboundedSpan() telem.TimeSpan
- func (s *Sugared) WriteDataTo(w io.WriteSeeker) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyPrefix ¶
Types ¶
type Header ¶
type Header struct { ChannelKey channel.Key Start telem.TimeStamp FileKey core.FileKey Offset telem.Offset Size telem.Size }
func (Header) SetOptions ¶
func (h Header) SetOptions() []interface{}
SetOptions implements the gorp.Entry interface.
type Range ¶
func (*Range) UnboundedRange ¶
type Sugared ¶
type Sugared struct {
// contains filtered or unexported fields
}
func (Sugared) BoundedOffset ¶
BoundedOffset returns the file offset of the underlying segment after being restricted by the bounds set in SetBounds.
func (Sugared) BoundedRange ¶
BoundedRange returns the TimeRange of the underlying segment after being restricted by the bounds set in SetBounds.
func (Sugared) BoundedSize ¶
BoundedSize returns the size of the underlying segment's data in bytes after being restricted by the bounds set in SetBounds.
func (Sugared) BoundedSpan ¶
BoundedSpan returns the TimeSpan of the underlying segment after being restricted by the bounds set in
func (Sugared) ChannelKey ¶
ChannelKey returns the key of the channel the segment belongs to.
func (*Sugared) ReadDataFrom ¶
ReadDataFrom reads data from the reader into the underlying segment.
func (*Sugared) SetBounds ¶
SetBounds restricts the segment to a particular time range. This is particularly useful for enabling partial segment reads.
func (*Sugared) SetFileKey ¶
func (Sugared) UnboundedRange ¶
UnboundedRange returns the time range of the underlying segment. This value is not restricted by any bounds set.
func (Sugared) UnboundedSize ¶
UnboundedSize returns the size of the underlying segment's data in bytes. This value is not restricted by any bounds set.
func (Sugared) UnboundedSpan ¶
UnboundedSpan returns the TimeSpan of the underlying segment. This value is not restricted by any bounds set.
func (*Sugared) WriteDataTo ¶
func (s *Sugared) WriteDataTo(w io.WriteSeeker) error
WriteDataTo writes the segment's data to the writer.