mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
rename view.SetFieldValue() to view.setValue()
This commit is contained in:
parent
c49fdb7b9b
commit
17c8944685
2 changed files with 3 additions and 3 deletions
2
frame.go
2
frame.go
|
|
@ -747,7 +747,7 @@ func (f *Frame) SetValue(columnID uint64, value int64) (changed bool, err error)
|
|||
// Determine base value to store.
|
||||
baseValue := uint64(value - field.Min)
|
||||
|
||||
return view.SetFieldValue(columnID, field.BitDepth(), baseValue)
|
||||
return view.setValue(columnID, field.BitDepth(), baseValue)
|
||||
}
|
||||
|
||||
// FieldSum returns the sum and count for a field.
|
||||
|
|
|
|||
4
view.go
4
view.go
|
|
@ -333,8 +333,8 @@ func (v *View) FieldValue(columnID uint64, bitDepth uint) (value uint64, exists
|
|||
return frag.FieldValue(columnID, bitDepth)
|
||||
}
|
||||
|
||||
// SetFieldValue uses a column of bits to set a multi-bit value.
|
||||
func (v *View) SetFieldValue(columnID uint64, bitDepth uint, value uint64) (changed bool, err error) {
|
||||
// setValue uses a column of bits to set a multi-bit value.
|
||||
func (v *View) setValue(columnID uint64, bitDepth uint, value uint64) (changed bool, err error) {
|
||||
slice := columnID / SliceWidth
|
||||
frag, err := v.CreateFragmentIfNotExists(slice)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue