utils

package
v0.0.0-...-26d813d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AliyunOssEndpointSuffix string = ".aliyuncs.com"
View Source
const BuiltinFlightServerEndpointURI string = "kuscia://datamesh"

Variables

This section is empty.

Functions

func CreateDateMeshFlightInfo

func CreateDateMeshFlightInfo(tick []byte, endpointURI string) *flight.FlightInfo

func DescForCommand

func DescForCommand(cmd proto.Message) (*flight.FlightDescriptor, error)

func GenerateArrowColumnType

func GenerateArrowColumnType(domainData *datamesh.DomainData) (map[string]arrow.DataType, error)

GenerateArrowColumnType generate column from domaindata

func GenerateArrowSchema

func GenerateArrowSchema(domainData *datamesh.DomainData) (*arrow.Schema, error)

GenerateArrowSchema generate schema from domaindata

func GenerateBinaryDataArrowSchema

func GenerateBinaryDataArrowSchema() *arrow.Schema

func PackActionResult

func PackActionResult(msg proto.Message) (*flight.Result, error)

func ParseRegionFromEndpoint

func ParseRegionFromEndpoint(endpoint string) (string, error)

Types

type DataMeshRequestContext

type DataMeshRequestContext struct {
	DataSourceType string
	Query          *datamesh.CommandDomainDataQuery
	Update         *datamesh.CommandDomainDataUpdate
	SqlQuery       *datamesh.CommandDataSourceSqlQuery
	// contains filtered or unexported fields
}

func (*DataMeshRequestContext) GetDomainData

func (rc *DataMeshRequestContext) GetDomainData(ctx context.Context) (*datamesh.DomainData, error)

func (*DataMeshRequestContext) GetDomainDataAndSource

func (*DataMeshRequestContext) GetDomainDataSource

func (rc *DataMeshRequestContext) GetDomainDataSource(ctx context.Context) (*datamesh.DomainDataSource, error)

func (*DataMeshRequestContext) GetTransferContentType

func (rc *DataMeshRequestContext) GetTransferContentType() datamesh.ContentType

type FlightRecordWriter

type FlightRecordWriter struct {
	FlightWriter flight.FlightService_DoGetServer
	*flight.Writer
}

type RecordWriter

type RecordWriter interface {
	Write(rec arrow.Record) error
	Close() error
}

Jump to

Keyboard shortcuts

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