service

package
v0.0.0-...-7c47925 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataTokenService

func NewDataTokenService(client *internal.DataTokenClient) pb.DataTokenServiceServer

NewDataTokenService creates a new user service

func NewMaterializationService

func NewMaterializationService(computeManager *compute.ComputeManager, materializationManager *compute.MaterializationManager, kaskadaTableClient *internal.KaskadaTableClient, kaskadaViewClient *internal.KaskadaViewClient, dataTokenClient *internal.DataTokenClient, materializationClient *internal.MaterializationClient) *materializationService

NewMaterializationService creates a new materialization service

func NewQueryV1Service

func NewQueryV1Service(computeManager *compute.ComputeManager, dataTokenClient *internal.DataTokenClient, kaskadaQueryClient *internal.KaskadaQueryClient, kaskadaTableClient *internal.KaskadaTableClient, objectStoreClient *client.ObjectStoreClient, prepareManager *compute.PrepareManager) v1alpha.QueryServiceServer

NewQueryV1Service creates a new query service

func NewQueryV2Service

func NewQueryV2Service(computeManager *compute.ComputeManager, dataTokenClient *internal.DataTokenClient, kaskadaQueryClient *internal.KaskadaQueryClient) apiv2alpha.QueryServiceServer

NewQueryV2Service creates a new query service

func NewTableService

func NewTableService(computeManager *compute.ComputeManager, fileManager *compute.FileManager, kaskadaTableClient *internal.KaskadaTableClient, objectStoreClient *client.ObjectStoreClient, tableStore *store.TableStore, dependencyAnalyzer *Analyzer) *tableService

NewTableService creates a new table service

func NewViewService

func NewViewService(compileManager *compute.CompileManager, kaskadaTableClient *internal.KaskadaTableClient, kaskadaViewClient *internal.KaskadaViewClient, dependencyAnalyzer *Analyzer) *viewService

NewViewService creates a new view service

Types

type Analyzer

type Analyzer interface {
	Analyze(ctx context.Context, owner *ent.Owner, name string, dependencyType schema.DependencyType) (*ResourceDependency, error)
}

func NewDependencyAnalyzer

func NewDependencyAnalyzer(kaskadaViewClient *internal.KaskadaViewClient, materializationClient *internal.MaterializationClient) Analyzer

type DependencyAnalyzer

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

func (*DependencyAnalyzer) Analyze

func (d *DependencyAnalyzer) Analyze(ctx context.Context, owner *ent.Owner, name string, dependencyType schema.DependencyType) (*ResourceDependency, error)

Analyze implements Analyzer

type ResourceDependency

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

func (*ResourceDependency) ToErrorDetails

type TableService

type TableService interface {
	SetAnalyzer(analyzer Analyzer)
	ListTables(ctx context.Context, request *v1alpha.ListTablesRequest) (*v1alpha.ListTablesResponse, error)
	GetTable(ctx context.Context, request *v1alpha.GetTableRequest) (*v1alpha.GetTableResponse, error)
	CreateTable(ctx context.Context, request *v1alpha.CreateTableRequest) (*v1alpha.CreateTableResponse, error)
	DeleteTable(ctx context.Context, request *v1alpha.DeleteTableRequest) (*v1alpha.DeleteTableResponse, error)
	LoadData(ctx context.Context, request *v1alpha.LoadDataRequest) (*v1alpha.LoadDataResponse, error)
}

type ViewService

type ViewService interface {
	SetAnalyzer(analyzer Analyzer)
	ListViews(ctx context.Context, request *pb.ListViewsRequest) (*pb.ListViewsResponse, error)
	GetView(ctx context.Context, request *pb.GetViewRequest) (*pb.GetViewResponse, error)
	CreateView(ctx context.Context, request *pb.CreateViewRequest) (*pb.CreateViewResponse, error)
	DeleteView(ctx context.Context, request *pb.DeleteViewRequest) (*pb.DeleteViewResponse, error)
}

Jump to

Keyboard shortcuts

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