v1

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: BSD-3-Clause Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const BEACON_START = "weaviate://localhost/"

Variables

This section is empty.

Functions

func BatchFromProto added in v1.27.0

func BatchFromProto(req *pb.BatchObjectsRequest, authorizedGetClass func(string, string) (*models.Class, error)) ([]*models.Object, map[int]int, map[int]error)

func ExtractFilters added in v1.27.0

func ExtractFilters(filterIn *pb.Filters, authorizedGetClass func(string) (*models.Class, error), className string) (filters.Clause, error)

func NewBoolValue added in v1.23.0

func NewBoolValue(v bool) *pb.Value

NewBoolValue constructs a new boolean Value.

func NewDateValue added in v1.23.0

func NewDateValue(v string) *pb.Value

NewDateValue constructs a new string Value.

func NewGeoValue added in v1.23.0

func NewGeoValue(v *models.GeoCoordinates) *pb.Value

NewGeoValue constructs a new geo Value.

func NewIntValue added in v1.23.0

func NewIntValue(v int64) *pb.Value

NewIntValue constructs a new number Value.

func NewNumberValue added in v1.23.0

func NewNumberValue(v float64) *pb.Value

NewNumberValue constructs a new number Value.

func NewObjectValue added in v1.23.0

func NewObjectValue(v *pb.Properties) *pb.Value

NewObjectValue constructs a new struct Value.

func NewStringValue added in v1.23.0

func NewStringValue(v string) *pb.Value

NewStringValue constructs a new string Value.

func NewTextValue added in v1.25.0

func NewTextValue(v string) *pb.Value

func NewUuidValue added in v1.23.0

func NewUuidValue(v string) *pb.Value

NewUuidValue constructs a new string Value.

Types

type AggregateParser added in v1.28.5

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

func NewAggregateParser added in v1.28.5

func NewAggregateParser(authorizedGetClass func(string) (*models.Class, error)) *AggregateParser

func (*AggregateParser) Aggregate added in v1.28.5

func (p *AggregateParser) Aggregate(req *pb.AggregateRequest) (*aggregation.Params, error)

type AggregateReplier added in v1.28.5

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

func NewAggregateReplier added in v1.28.5

func NewAggregateReplier(authorizedGetClass func(string) (*models.Class, error), params *aggregation.Params) *AggregateReplier

func (*AggregateReplier) Aggregate added in v1.28.5

func (r *AggregateReplier) Aggregate(res interface{}, isGroupby bool) (*pb.AggregateReply, error)

type Mapper added in v1.25.0

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

func NewMapping added in v1.25.0

func NewMapping(uses125 bool) *Mapper

func (*Mapper) NewNestedValue added in v1.25.0

func (m *Mapper) NewNestedValue(v interface{}, dt schema.DataType, parent schema.PropertyInterface, prop search.SelectProperty) (*pb.Value, error)

func (*Mapper) NewNilValue added in v1.25.0

func (m *Mapper) NewNilValue() *pb.Value

NewNilValue constructs a new nil Value.

func (*Mapper) NewPrimitiveValue added in v1.25.0

func (m *Mapper) NewPrimitiveValue(v interface{}, dt schema.DataType) (*pb.Value, error)

type NestedProperty

type NestedProperty struct {
	*models.NestedProperty
}

func (*NestedProperty) GetName

func (p *NestedProperty) GetName() string

func (*NestedProperty) GetNestedProperties

func (p *NestedProperty) GetNestedProperties() []*models.NestedProperty

type Parser added in v1.27.0

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

func NewParser added in v1.27.0

func NewParser(uses127Api bool,
	authorizedGetClass func(string) (*models.Class, error),
) *Parser

func (*Parser) Search added in v1.27.0

func (p *Parser) Search(req *pb.SearchRequest, config *config.Config) (dto.GetParams, error)

type Property

type Property struct {
	*models.Property
}

func (*Property) GetName

func (p *Property) GetName() string

func (*Property) GetNestedProperties

func (p *Property) GetNestedProperties() []*models.NestedProperty

type Replier added in v1.25.0

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

func NewReplier added in v1.25.0

func NewReplier(uses123 bool,
	uses125 bool,
	uses127 bool,
	generativeParams generativeQueryParamsGetter,
	logger logrus.FieldLogger,
) *Replier

func (*Replier) Search added in v1.25.0

func (r *Replier) Search(res []interface{}, start time.Time, searchParams dto.GetParams, scheme schema.Schema) (*pb.SearchReply, error)

type Service

type Service struct {
	pb.UnimplementedWeaviateServer
	// contains filtered or unexported fields
}

func NewService

func NewService(traverser *traverser.Traverser, authComposer composer.TokenFunc,
	allowAnonymousAccess bool, schemaManager *schemaManager.Manager,
	batchManager *objects.BatchManager, config *config.Config, authorization authorization.Authorizer,
	logger logrus.FieldLogger,
) *Service

func (*Service) Aggregate added in v1.28.5

func (s *Service) Aggregate(ctx context.Context, req *pb.AggregateRequest) (*pb.AggregateReply, error)

func (*Service) BatchDelete added in v1.23.3

func (s *Service) BatchDelete(ctx context.Context, req *pb.BatchDeleteRequest) (*pb.BatchDeleteReply, error)

func (*Service) BatchObjects

func (s *Service) BatchObjects(ctx context.Context, req *pb.BatchObjectsRequest) (*pb.BatchObjectsReply, error)

func (*Service) Search

func (s *Service) Search(ctx context.Context, req *pb.SearchRequest) (*pb.SearchReply, error)

func (*Service) TenantsGet added in v1.25.0

func (s *Service) TenantsGet(ctx context.Context, req *pb.TenantsGetRequest) (*pb.TenantsGetReply, error)

func (*Service) Watch

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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