MCPcopy Create free account
hub / github.com/brimdata/super / NewConstInt

Function NewConstInt

vector/const.go:24–27  ·  view source on GitHub ↗
(typ super.Type, v int64, length uint32)

Source from the content-addressed store, hash-verified

22 return &Const{vec, length}
23}
24func NewConstInt(typ super.Type, v int64, length uint32) *Const {
25 vec := NewInt(typ, []int64{v})
26 return &Const{vec, length}
27}
28func NewConstFloat(typ super.Type, v float64, length uint32) *Const {
29 vec := NewFloat(typ, []float64{v})
30 return &Const{vec, length}

Callers 15

TestArithOpsAndFormsFunction · 0.92
arithAddIntConstConstFunction · 0.92
arithSubIntConstConstFunction · 0.92
arithMulIntConstConstFunction · 0.92
arithDivIntConstConstFunction · 0.92
arithModIntConstConstFunction · 0.92
convertMethod · 0.92
constBinMethod · 0.92
CallMethod · 0.92
absMethod · 0.92
CallMethod · 0.92
date_time_dayofweekFunction · 0.92

Calls 1

NewIntFunction · 0.70

Tested by 1

TestArithOpsAndFormsFunction · 0.74