0
0
Fork 0

added Close() method to Segment

This commit is contained in:
Marty Schoch 2017-12-05 09:31:02 -05:00
parent 22ffc8940e
commit ed067f45dd
2 changed files with 7 additions and 0 deletions

View File

@ -151,3 +151,8 @@ func (s *Segment) DocNumbers(ids []string) (*roaring.Bitmap, error) {
}
return rv, nil
}
// Close releases all resources associated with this segment
func (s *Segment) Close() error {
return nil
}

View File

@ -33,6 +33,8 @@ type Segment interface {
DocNumbers([]string) (*roaring.Bitmap, error)
Fields() []string
Close() error
}
type TermDictionary interface {