druid

package
v0.48.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDSN added in v0.47.0

func GetDSN(config map[string]string) (string, error)

func Ingest

func Ingest(coordinatorURL, specJSON, datasourceName string, timeout time.Duration) error

Ingest uses the Druid REST API to submit an ingestion spec. It returns once Druid has finished ingesting data. This function is for test and development usage and has not been tested for production use.

Types

type NativeQuery added in v0.47.0

type NativeQuery struct {
	// contains filtered or unexported fields
}

func NewNativeQuery added in v0.47.0

func NewNativeQuery(dsn string) NativeQuery

func (*NativeQuery) Do added in v0.47.0

func (n *NativeQuery) Do(ctx context.Context, dr, res interface{}, queryID string) error

type NativeSearchQuery added in v0.47.0

type NativeSearchQuery struct {
	Type          string `json:"type"`
	CaseSensitive bool   `json:"case_sensitive"`
	Value         string `json:"value"`
}

type NativeSearchQueryRequest added in v0.47.0

type NativeSearchQueryRequest struct {
	Context          QueryContext           `json:"context"`
	QueryType        string                 `json:"queryType"`
	DataSource       string                 `json:"dataSource"`
	SearchDimensions []string               `json:"searchDimensions"`
	Limit            int                    `json:"limit"`
	Query            NativeSearchQuery      `json:"query"`
	Sort             NativeSearchSort       `json:"sort"`
	Intervals        []string               `json:"intervals"`
	Filter           map[string]interface{} `json:"filter"`
}

func NewNativeSearchQueryRequest added in v0.47.0

func NewNativeSearchQueryRequest(source, search string, dimensions []string, start, end time.Time, filter map[string]interface{}) NativeSearchQueryRequest

type NativeSearchQueryResponse added in v0.47.0

type NativeSearchQueryResponse []struct {
	Timestamp time.Time `json:"timestamp"`
	Result    []struct {
		Dimension string `json:"dimension"`
		Value     string `json:"value"`
	} `json:"result"`
}

type NativeSearchSort added in v0.47.0

type NativeSearchSort struct {
	Type string `json:"type"`
}

type QueryContext added in v0.47.0

type QueryContext struct {
	QueryID string `json:"queryId,omitempty"`
}

type QueryPlan added in v0.47.0

type QueryPlan struct {
	Query struct {
		Filter *map[string]interface{} `json:"filter"`
	} `json:"query"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL