Unexport Row.ClearBit

This commit is contained in:
Cody Soyland 2018-07-05 21:53:07 -05:00
parent 6b5595d48c
commit edf87473ee
2 changed files with 3 additions and 3 deletions

View file

@ -446,7 +446,7 @@ func (f *fragment) unprotectedClearBit(rowID, columnID uint64) (changed bool, er
// Get the row from cache or fragment.storage.
row := f.unprotectedRow(rowID, true, true)
row.ClearBit(columnID)
row.clearBit(columnID)
// Update the cache.
f.cache.Add(rowID, row.Count())

4
row.go
View file

@ -159,8 +159,8 @@ func (r *Row) SetBit(i uint64) (changed bool) {
return r.createSegmentIfNotExists(i / ShardWidth).SetBit(i)
}
// ClearBit clears the i-th column of the row.
func (r *Row) ClearBit(i uint64) (changed bool) {
// clearBit clears the i-th column of the row.
func (r *Row) clearBit(i uint64) (changed bool) {
s := r.segment(i / ShardWidth)
if s == nil {
return false