Documentation
¶
Index ¶
- Variables
- type Schema
- func (s *Schema) BuildDeleteSchema() error
- func (s *Schema) BuildScalarSchema() error
- func (s *Schema) BuildVectorSchema() error
- func (s *Schema) DeleteSchema() *arrow.Schema
- func (s *Schema) FromProtobuf(schema *schema_proto.Schema) error
- func (s *Schema) Options() *SchemaOptions
- func (s *Schema) ScalarSchema() *arrow.Schema
- func (s *Schema) Schema() *arrow.Schema
- func (s *Schema) ToProtobuf() (*schema_proto.Schema, error)
- func (s *Schema) Validate() error
- func (s *Schema) VectorSchema() *arrow.Schema
- type SchemaOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPrimaryColumnNotFound = errors.New("primary column not found") ErrPrimaryColumnType = errors.New("primary column is not int64 or string") ErrPrimaryColumnEmpty = errors.New("primary column is empty") ErrVersionColumnNotFound = errors.New("version column not found") ErrVersionColumnType = errors.New("version column is not int64") ErrVectorColumnNotFound = errors.New("vector column not found") ErrVectorColumnType = errors.New("vector column is not fixed size binary or fixed size list") ErrVectorColumnEmpty = errors.New("vector column is empty") )
Functions ¶
This section is empty.
Types ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
Schema is a wrapper of arrow schema
func (*Schema) BuildDeleteSchema ¶
func (*Schema) BuildScalarSchema ¶
func (*Schema) BuildVectorSchema ¶
func (*Schema) DeleteSchema ¶
func (*Schema) FromProtobuf ¶
func (s *Schema) FromProtobuf(schema *schema_proto.Schema) error
func (*Schema) Options ¶
func (s *Schema) Options() *SchemaOptions
func (*Schema) ScalarSchema ¶
func (*Schema) ToProtobuf ¶
func (s *Schema) ToProtobuf() (*schema_proto.Schema, error)
func (*Schema) VectorSchema ¶
type SchemaOptions ¶
func DefaultSchemaOptions ¶
func DefaultSchemaOptions() *SchemaOptions
func (*SchemaOptions) FromProtobuf ¶
func (o *SchemaOptions) FromProtobuf(options *schema_proto.SchemaOptions)
func (*SchemaOptions) HasVersionColumn ¶
func (o *SchemaOptions) HasVersionColumn() bool
func (*SchemaOptions) ToProtobuf ¶
func (o *SchemaOptions) ToProtobuf() *schema_proto.SchemaOptions
Click to show internal directories.
Click to hide internal directories.