druid

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NativeClient added in v0.49.0

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

func NewNativeClient added in v0.49.0

func NewNativeClient(olap drivers.OLAPStore) (*NativeClient, error)

func (*NativeClient) Search added in v0.49.0

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"`
	VirtualColumns   []NativeVirtualColumns `json:"virtualColumns"`
	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, dims []string, virtualCols []NativeVirtualColumns, limit int, 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 NativeVirtualColumns added in v0.49.0

type NativeVirtualColumns struct {
	Type       string `json:"type"`
	Name       string `json:"name"`
	Expression string `json:"expression"`
}

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