Documentation ¶
Index ¶
- Constants
- type Batch
- type FragmentKey
- type Fragments
- type QuantizedTime
- func (q *QuantizedTime) Clone() *QuantizedTime
- func (q *QuantizedTime) Release()
- func (q *QuantizedTime) Reset()
- func (qt *QuantizedTime) Set(t time.Time)
- func (qt *QuantizedTime) SetDay(day string)
- func (qt *QuantizedTime) SetHour(hour string)
- func (qt *QuantizedTime) SetMonth(month string)
- func (qt *QuantizedTime) SetYear(year string)
- func (qt *QuantizedTime) Time() (time.Time, error)
- func (qt *QuantizedTime) Views(q quantum.TimeQuantum) ([]string, error)
- type Translator
Constants ¶
View Source
const ( Timestamp uint64 = iota Labels Value )
View Source
const (
Quantum = quantum.TimeQuantum("YMDH")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
func (*Batch) WithTranslator ¶
func (b *Batch) WithTranslator(t Translator) *Batch
type FragmentKey ¶
func (*FragmentKey) Compare ¶ added in v1.22.5
func (f *FragmentKey) Compare(o *FragmentKey) int
type Fragments ¶
type Fragments map[FragmentKey]map[string]*roaring.Bitmap
func (Fragments) DeleteView ¶
func (Fragments) GetOrCreate ¶
func (Fragments) GetViewMap ¶
type QuantizedTime ¶ added in v1.22.5
type QuantizedTime struct {
// contains filtered or unexported fields
}
QuantizedTime represents a moment in time down to some granularity (year, month, day, or hour).
func NeqQuantumTime ¶ added in v1.22.5
func NeqQuantumTime() *QuantizedTime
func (*QuantizedTime) Clone ¶ added in v1.22.5
func (q *QuantizedTime) Clone() *QuantizedTime
func (*QuantizedTime) Release ¶ added in v1.22.5
func (q *QuantizedTime) Release()
func (*QuantizedTime) Reset ¶ added in v1.22.5
func (q *QuantizedTime) Reset()
func (*QuantizedTime) Set ¶ added in v1.22.5
func (qt *QuantizedTime) Set(t time.Time)
Set sets the Quantized time to the given timestamp (down to hour granularity).
func (*QuantizedTime) SetDay ¶ added in v1.22.5
func (qt *QuantizedTime) SetDay(day string)
SetDay sets the QuantizedTime's day, but leaves year, month, and hour untouched.
func (*QuantizedTime) SetHour ¶ added in v1.22.5
func (qt *QuantizedTime) SetHour(hour string)
SetHour sets the QuantizedTime's hour, but leaves year, month, and day untouched.
func (*QuantizedTime) SetMonth ¶ added in v1.22.5
func (qt *QuantizedTime) SetMonth(month string)
SetMonth sets the QuantizedTime's month, but leaves year, day, and hour untouched.
func (*QuantizedTime) SetYear ¶ added in v1.22.5
func (qt *QuantizedTime) SetYear(year string)
SetYear sets the quantized time's year, but leaves month, day, and hour untouched.
func (*QuantizedTime) Views ¶ added in v1.22.5
func (qt *QuantizedTime) Views(q quantum.TimeQuantum) ([]string, error)
Views builds the list of Pilosa Views for this particular time, given a quantum.
type Translator ¶
Click to show internal directories.
Click to hide internal directories.