func NewColumnInt8(name string, values []int8) *ColumnInt8 {
	return &ColumnInt8 {
		name: name,
		values: values,
	}
}
NewColumnInt8 auto generated constructor
package entity 
import (
	"errors"
	"fmt"
	"github.com/milvus-io/milvus-sdk-go/v2/internal/proto/schema"
)
type ColumnBool struct {
	name   string
	values []bool
}
func (c *ColumnBool) Name() string {
	return c.name
}
func (c *ColumnBool) Type() FieldType {
	return FieldTypeBool
}
func (c *ColumnBool) Len() int {
	return len(c.values)
}
func (c *ColumnBool) FieldData() *schema.FieldData {
	fd := &schema.FieldData{
		Type: schema.DataType_Bool,
		FieldName: c.name,
	}
	data := make([]bool, 0, c.Len())
	for i := 0 ;i < c.Len(); i++ {
		data = append(data, bool(c.values[i]))
	}
	fd.Field = &schema.FieldData_Scalars{
		Scalars: &schema.ScalarField{
			Data: &schema.ScalarField_BoolData{
				BoolData: &schema.BoolArray{
					Data: data,
				},
			},
		},
	}
	return fd
}
func (c *ColumnBool) ValueByIdx(idx int) (bool, error) {
	var r bool  
	if idx < 0 || idx >= c.Len() {
		return r, errors.New("index out of range")
	}
	return c.values[idx], nil
}
func(c *ColumnBool) AppendValue(i interface{}) error {
	v, ok := i.(bool)
	if !ok {
		return fmt.Errorf("invalid type, expected bool, got %T", i)
	}
	c.values = append(c.values, v)
	return nil
}
func (c *ColumnBool) Data() []bool {
	return c.values
}
func NewColumnBool(name string, values []bool) *ColumnBool {
	return &ColumnBool {
		name: name,
		values: values,
	}
}
type ColumnInt8 struct {
	name   string
	values []int8
}
func (c *ColumnInt8) Name() string {
	return c.name
}
func (c *ColumnInt8) Type() FieldType {
	return FieldTypeInt8
}
func (c *ColumnInt8) Len() int {
	return len(c.values)
}
func (c *ColumnInt8) FieldData() *schema.FieldData {
	fd := &schema.FieldData{
		Type: schema.DataType_Int8,
		FieldName: c.name,
	}
	data := make([]int32, 0, c.Len())
	for i := 0 ;i < c.Len(); i++ {
		data = append(data, int32(c.values[i]))
	}
	fd.Field = &schema.FieldData_Scalars{
		Scalars: &schema.ScalarField{
			Data: &schema.ScalarField_IntData{
				IntData: &schema.IntArray{
					Data: data,
				},
			},
		},
	}
	return fd
}
func (c *ColumnInt8) ValueByIdx(idx int) (int8, error) {
	var r int8  
	if idx < 0 || idx >= c.Len() {
		return r, errors.New("index out of range")
	}
	return c.values[idx], nil
}
func(c *ColumnInt8) AppendValue(i interface{}) error {
	v, ok := i.(int8)
	if !ok {
		return fmt.Errorf("invalid type, expected int8, got %T", i)
	}
	c.values = append(c.values, v)
	return nil
}
func (c *ColumnInt8) Data() []int8 {
	return c.values
}