Skip to content

Commit

Permalink
cardinality API impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Thejas-bhat committed Dec 13, 2024
1 parent 992ac44 commit 45aa0b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ func (d *FieldDict) Next() (*index.DictEntry, error) {
return nil, nil
}

func (d *FieldDict) Cardinality() int {
return len(d.terms)
}

func (d *FieldDict) BytesRead() uint64 {
// not implemented
return 0
Expand Down

0 comments on commit 45aa0b6

Please sign in to comment.