func (c *ColumnInt64) Len() int {
	return len(c.values)
}
Len returns column values length
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
}
func NewColumnInt8(name string, values []int8) *ColumnInt8 {
	return &ColumnInt8 {
		name: name,
		values: values,
	}
}
type ColumnInt16 struct {
	name   string
	values []int16
}
func (c *ColumnInt16) Name() string {
	return c.name
}
func (c *ColumnInt16) Type() FieldType {
	return FieldTypeInt16
}
func (c *ColumnInt16) Len() int {
	return len(c.values)
}
func (c *ColumnInt16) FieldData() *schema.FieldData {
	fd := &schema.FieldData{
		Type: schema.DataType_Int16,
		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 *ColumnInt16) ValueByIdx(idx int) (int16, error) {
	var r int16  
	if idx < 0 || idx >= c.Len() {
		return r, errors.New("index out of range")
	}
	return c.values[idx], nil
}
func(c *ColumnInt16) AppendValue(i interface{}) error {
	v, ok := i.(int16)
	if !ok {
		return fmt.Errorf("invalid type, expected int16, got %T", i)
	}
	c.values = append(c.values, v)
	return nil
}
func (c *ColumnInt16) Data() []int16 {
	return c.values
}
func NewColumnInt16(name string, values []int16) *ColumnInt16 {
	return &ColumnInt16 {
		name: name,
		values: values,
	}
}
type ColumnInt32 struct {
	name   string
	values []int32
}
func (c *ColumnInt32) Name() string {
	return c.name
}
func (c *ColumnInt32) Type() FieldType {
	return FieldTypeInt32
}
func (c *ColumnInt32) Len() int {
	return len(c.values)
}
func (c *ColumnInt32) FieldData() *schema.FieldData {
	fd := &schema.FieldData{
		Type: schema.DataType_Int32,
		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 *ColumnInt32) ValueByIdx(idx int) (int32, error) {
	var r int32  
	if idx < 0 || idx >= c.Len() {
		return r, errors.New("index out of range")
	}
	return c.values[idx], nil
}
func(c *ColumnInt32) AppendValue(i interface{}) error {
	v, ok := i.(int32)
	if !ok {
		return fmt.Errorf("invalid type, expected int32, got %T", i)
	}
	c.values = append(c.values, v)
	return nil
}
func (c *ColumnInt32) Data() []int32 {
	return c.values
}
func NewColumnInt32(name string, values []int32) *ColumnInt32 {
	return &ColumnInt32 {
		name: name,
		values: values,
	}
}
type ColumnInt64 struct {
	name   string
	values []int64
}
func (c *ColumnInt64) Name() string {
	return c.name
}
func (c *ColumnInt64) Type() FieldType {
	return FieldTypeInt64
}