mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
Unexport Row.InvalidateCount
This commit is contained in:
parent
018905fcd9
commit
259f5ac3b9
3 changed files with 8 additions and 8 deletions
|
|
@ -661,7 +661,7 @@ func (e *executor) executeDifferenceShard(ctx context.Context, index string, c *
|
|||
other = other.Difference(row)
|
||||
}
|
||||
}
|
||||
other.InvalidateCount()
|
||||
other.invalidateCount()
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
@ -715,7 +715,7 @@ func (e *executor) executeIntersectShard(ctx context.Context, index string, c *p
|
|||
other = other.intersect(row)
|
||||
}
|
||||
}
|
||||
other.InvalidateCount()
|
||||
other.invalidateCount()
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
@ -937,7 +937,7 @@ func (e *executor) executeUnionShard(ctx context.Context, index string, c *pql.C
|
|||
other = other.Union(row)
|
||||
}
|
||||
}
|
||||
other.InvalidateCount()
|
||||
other.invalidateCount()
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
@ -956,7 +956,7 @@ func (e *executor) executeXorShard(ctx context.Context, index string, c *pql.Cal
|
|||
other = other.Xor(row)
|
||||
}
|
||||
}
|
||||
other.InvalidateCount()
|
||||
other.invalidateCount()
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ func (f *fragment) unprotectedRow(rowID uint64, checkRowCache bool, updateRowCac
|
|||
writable: false,
|
||||
}},
|
||||
}
|
||||
row.InvalidateCount()
|
||||
row.invalidateCount()
|
||||
|
||||
if updateRowCache {
|
||||
f.rowCache.Add(rowID, row)
|
||||
|
|
|
|||
6
row.go
6
row.go
|
|
@ -63,7 +63,7 @@ func (r *Row) Merge(other *Row) {
|
|||
}
|
||||
|
||||
r.segments = segments
|
||||
r.InvalidateCount()
|
||||
r.invalidateCount()
|
||||
}
|
||||
|
||||
// intersectionCount returns the number of intersections between r and other.
|
||||
|
|
@ -208,8 +208,8 @@ func (r *Row) createSegmentIfNotExists(shard uint64) *RowSegment {
|
|||
return &r.segments[i]
|
||||
}
|
||||
|
||||
// InvalidateCount updates the cached count in the row.
|
||||
func (r *Row) InvalidateCount() {
|
||||
// invalidateCount updates the cached count in the row.
|
||||
func (r *Row) invalidateCount() {
|
||||
for i := range r.segments {
|
||||
r.segments[i].InvalidateCount()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue