added Close() method to Segment
This commit is contained in:
parent
22ffc8940e
commit
ed067f45dd
|
@ -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
|
||||
}
|
||||
|
|
|
@ -33,6 +33,8 @@ type Segment interface {
|
|||
DocNumbers([]string) (*roaring.Bitmap, error)
|
||||
|
||||
Fields() []string
|
||||
|
||||
Close() error
|
||||
}
|
||||
|
||||
type TermDictionary interface {
|
||||
|
|
Loading…
Reference in New Issue