Documentation ¶
Index ¶
- func Load(data []byte) (builder.ExtractionFn, error)
- type Base
- type Bucket
- type Cascade
- type Identity
- type Javascript
- type Lookup
- func (l *Lookup) SetInjective(injective bool) *Lookup
- func (l *Lookup) SetLookup(lookup builder.LookupExtractor) *Lookup
- func (l *Lookup) SetOptimize(optimize bool) *Lookup
- func (l *Lookup) SetReplaceMissingValueWith(replaceMissingValueWith string) *Lookup
- func (l *Lookup) SetRetainMissingValue(retainMissingValue bool) *Lookup
- func (l *Lookup) UnmarshalJSON(data []byte) error
- type Lower
- type Partial
- type Regex
- type RegisteredLookup
- func (l *RegisteredLookup) SetInjective(injective bool) *RegisteredLookup
- func (l *RegisteredLookup) SetLookup(lookup string) *RegisteredLookup
- func (l *RegisteredLookup) SetOptimize(optimize bool) *RegisteredLookup
- func (l *RegisteredLookup) SetReplaceMissingValueWith(replaceMissingValueWith string) *RegisteredLookup
- func (l *RegisteredLookup) SetRetainMissingValue(retainMissingValue bool) *RegisteredLookup
- type SearchQuery
- type StringFormat
- type Strlen
- type Substring
- type Time
- type TimeFormat
- func (t *TimeFormat) SetAsMillis(asMillis bool) *TimeFormat
- func (t *TimeFormat) SetFormat(format string) *TimeFormat
- func (t *TimeFormat) SetGranularity(granularity builder.Granularity) *TimeFormat
- func (t *TimeFormat) SetLocale(locale string) *TimeFormat
- func (t *TimeFormat) SetTimeZone(timeZone types.DateTimeZone) *TimeFormat
- func (t *TimeFormat) UnmarshalJSON(data []byte) error
- type Upper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct {
Typ builder.ComponentType `json:"type,omitempty"`
}
func (*Base) Type ¶
func (b *Base) Type() builder.ComponentType
type Bucket ¶
type Cascade ¶
type Cascade struct { Base ExtractionFns []builder.ExtractionFn `json:"extractionFns,omitempty"` }
func NewCascade ¶
func NewCascade() *Cascade
func (*Cascade) SetExtractionFns ¶
func (c *Cascade) SetExtractionFns(extractionFns []builder.ExtractionFn) *Cascade
func (*Cascade) UnmarshalJSON ¶
type Javascript ¶
type Javascript struct { Base Function string `json:"function,omitempty"` Injective *bool `json:"injective,omitempty"` }
func NewJavascript ¶
func NewJavascript() *Javascript
func (*Javascript) SetFunction ¶
func (j *Javascript) SetFunction(function string) *Javascript
func (*Javascript) SetInjective ¶
func (j *Javascript) SetInjective(injective bool) *Javascript
type Lookup ¶
type Lookup struct { Base Lookup builder.LookupExtractor `json:"lookup,omitempty"` RetainMissingValue *bool `json:"retainMissingValue,omitempty"` ReplaceMissingValueWith string `json:"replaceMissingValueWith,omitempty"` Injective *bool `json:"injective,omitempty"` Optimize *bool `json:"optimize,omitempty"` }
func (*Lookup) SetInjective ¶
func (*Lookup) SetOptimize ¶
func (*Lookup) SetReplaceMissingValueWith ¶
func (*Lookup) SetRetainMissingValue ¶
func (*Lookup) UnmarshalJSON ¶
type Partial ¶
func NewPartial ¶
func NewPartial() *Partial
type Regex ¶
type Regex struct { Base Expr string `json:"expr,omitempty"` Index int64 `json:"index,omitempty"` ReplaceMissingValue *bool `json:"replaceMissingValue,omitempty"` ReplaceMissingValueWith string `json:"replaceMissingValueWith,omitempty"` }
func (*Regex) SetReplaceMissingValue ¶
func (*Regex) SetReplaceMissingValueWith ¶
type RegisteredLookup ¶
type RegisteredLookup struct { Base Lookup string `json:"lookup,omitempty"` RetainMissingValue *bool `json:"retainMissingValue,omitempty"` ReplaceMissingValueWith string `json:"replaceMissingValueWith,omitempty"` Injective *bool `json:"injective,omitempty"` Optimize *bool `json:"optimize,omitempty"` }
RegisteredLookup holds the registered lookup extraction function struct based on https://druid.apache.org/docs/latest/querying/dimensionspecs.html#registered-lookup-extraction-function
func NewRegisteredLookup ¶
func NewRegisteredLookup() *RegisteredLookup
func (*RegisteredLookup) SetInjective ¶
func (l *RegisteredLookup) SetInjective(injective bool) *RegisteredLookup
func (*RegisteredLookup) SetLookup ¶
func (l *RegisteredLookup) SetLookup(lookup string) *RegisteredLookup
func (*RegisteredLookup) SetOptimize ¶
func (l *RegisteredLookup) SetOptimize(optimize bool) *RegisteredLookup
func (*RegisteredLookup) SetReplaceMissingValueWith ¶
func (l *RegisteredLookup) SetReplaceMissingValueWith(replaceMissingValueWith string) *RegisteredLookup
func (*RegisteredLookup) SetRetainMissingValue ¶
func (l *RegisteredLookup) SetRetainMissingValue(retainMissingValue bool) *RegisteredLookup
type SearchQuery ¶
type SearchQuery struct { Base Query builder.SearchQuerySpec `json:"query,omitempty"` }
func NewSearchQuery ¶
func NewSearchQuery() *SearchQuery
func (*SearchQuery) SetQuery ¶
func (s *SearchQuery) SetQuery(q builder.SearchQuerySpec) *SearchQuery
func (*SearchQuery) UnmarshalJSON ¶
func (s *SearchQuery) UnmarshalJSON(data []byte) error
type StringFormat ¶
type StringFormat struct { Base Format string `json:"format,omitempty"` NullHandling types.NullHandling `json:"nullHandling,omitempty"` }
func NewStringFormat ¶
func NewStringFormat() *StringFormat
func (*StringFormat) SetFormat ¶
func (s *StringFormat) SetFormat(format string) *StringFormat
func (*StringFormat) SetNullHandling ¶
func (s *StringFormat) SetNullHandling(nullHandling types.NullHandling) *StringFormat
type Substring ¶
type Substring struct { Base Index int64 `json:"index,omitempty"` Length int64 `json:"length,omitempty"` }
func NewSubstring ¶
func NewSubstring() *Substring
type Time ¶
type Time struct { Base TimeFormat string `json:"timeFormat,omitempty"` ResultFormat string `json:"resultFormat,omitempty"` Joda *bool `json:"joda,omitempty"` }
func (*Time) SetResultFormat ¶
func (*Time) SetTimeFormat ¶
type TimeFormat ¶
type TimeFormat struct { Base Format string `json:"format,omitempty"` TimeZone types.DateTimeZone `json:"timeZone,omitempty"` Locale string `json:"locale,omitempty"` Granularity builder.Granularity `json:"granularity,omitempty"` AsMillis *bool `json:"asMillis,omitempty"` }
func NewTimeFormat ¶
func NewTimeFormat() *TimeFormat
func (*TimeFormat) SetAsMillis ¶
func (t *TimeFormat) SetAsMillis(asMillis bool) *TimeFormat
func (*TimeFormat) SetFormat ¶
func (t *TimeFormat) SetFormat(format string) *TimeFormat
func (*TimeFormat) SetGranularity ¶
func (t *TimeFormat) SetGranularity(granularity builder.Granularity) *TimeFormat
func (*TimeFormat) SetLocale ¶
func (t *TimeFormat) SetLocale(locale string) *TimeFormat
func (*TimeFormat) SetTimeZone ¶
func (t *TimeFormat) SetTimeZone(timeZone types.DateTimeZone) *TimeFormat
func (*TimeFormat) UnmarshalJSON ¶
func (t *TimeFormat) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.