elasticsearch

package
v0.0.0-...-7129fda Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticsearchDB

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

Implements db.AnalysisDB for Elasticsearch.

func NewElasticsearchDB

func NewElasticsearchDB(config config.Config) (ElasticsearchDB, error)

func (ElasticsearchDB) CreateStoredSchemasTable

func (elastic ElasticsearchDB) CreateStoredSchemasTable(ctx context.Context) error

func (ElasticsearchDB) CreateTable

func (elastic ElasticsearchDB) CreateTable(ctx context.Context, schema db.TableSchema) error

func (ElasticsearchDB) DeleteTableSchema

func (elastic ElasticsearchDB) DeleteTableSchema(ctx context.Context, table string) error

func (ElasticsearchDB) DropTable

func (elastic ElasticsearchDB) DropTable(
	ctx context.Context,
	table string,
) (alreadyDropped bool, err error)

func (ElasticsearchDB) GetTableSchema

func (elastic ElasticsearchDB) GetTableSchema(
	ctx context.Context,
	table string,
) (db.TableSchema, error)

func (ElasticsearchDB) IngestData

func (elastic ElasticsearchDB) IngestData(
	ctx context.Context,
	data db.DataSource,
	schema db.TableSchema,
) error

func (ElasticsearchDB) RunAnalysisQuery

func (elastic ElasticsearchDB) RunAnalysisQuery(
	ctx context.Context,
	analysis db.AnalysisQuery,
	table string,
) (db.AnalysisResult, error)

func (ElasticsearchDB) StoreTableSchema

func (elastic ElasticsearchDB) StoreTableSchema(
	ctx context.Context,
	schema db.TableSchema,
) error

Jump to

Keyboard shortcuts

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