github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/entity/columns_conversion.go (about)

     1  package entity
     2  
     3  func (c *ColumnInt8) GetAsInt64(idx int) (int64, error) {
     4  	v, err := c.ValueByIdx(idx)
     5  	return int64(v), err
     6  }
     7  
     8  func (c *ColumnInt16) GetAsInt64(idx int) (int64, error) {
     9  	v, err := c.ValueByIdx(idx)
    10  	return int64(v), err
    11  }
    12  
    13  func (c *ColumnInt32) GetAsInt64(idx int) (int64, error) {
    14  	v, err := c.ValueByIdx(idx)
    15  	return int64(v), err
    16  }
    17  
    18  func (c *ColumnInt64) GetAsInt64(idx int) (int64, error) {
    19  	return c.ValueByIdx(idx)
    20  }
    21  
    22  func (c *ColumnString) GetAsString(idx int) (string, error) {
    23  	return c.ValueByIdx(idx)
    24  }
    25  
    26  func (c *ColumnFloat) GetAsDouble(idx int) (float64, error) {
    27  	v, err := c.ValueByIdx(idx)
    28  	return float64(v), err
    29  }
    30  
    31  func (c *ColumnDouble) GetAsDouble(idx int) (float64, error) {
    32  	return c.ValueByIdx(idx)
    33  }
    34  
    35  func (c *ColumnBool) GetAsBool(idx int) (bool, error) {
    36  	return c.ValueByIdx(idx)
    37  }