-
Notifications
You must be signed in to change notification settings - Fork 2
/
multileaffieldcomparator.go
57 lines (45 loc) · 1.43 KB
/
multileaffieldcomparator.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package search
import (
"github.com/geange/lucene-go/core/index"
"github.com/geange/lucene-go/core/types"
)
var _ index.LeafFieldComparator = &MultiLeafFieldComparator{}
type MultiLeafFieldComparator struct {
comparators []index.LeafFieldComparator
reverseMul []int
// we extract the first comparator to avoid array access in the common case
// that the first comparator compares worse than the bottom entry in the queue
firstComparator index.LeafFieldComparator
firstReverseMul int
}
func NewMultiLeafFieldComparator(comparators []index.LeafFieldComparator, reverseMul []int) *MultiLeafFieldComparator {
panic("")
}
func (m *MultiLeafFieldComparator) SetBottom(slot int) error {
//TODO implement me
panic("implement me")
}
func (m *MultiLeafFieldComparator) CompareBottom(doc int) (int, error) {
//TODO implement me
panic("implement me")
}
func (m *MultiLeafFieldComparator) CompareTop(doc int) (int, error) {
//TODO implement me
panic("implement me")
}
func (m *MultiLeafFieldComparator) Copy(slot, doc int) error {
//TODO implement me
panic("implement me")
}
func (m *MultiLeafFieldComparator) SetScorer(scorer index.Scorable) error {
//TODO implement me
panic("implement me")
}
func (m *MultiLeafFieldComparator) CompetitiveIterator() (types.DocIdSetIterator, error) {
//TODO implement me
panic("implement me")
}
func (m *MultiLeafFieldComparator) SetHitsThresholdReached() error {
//TODO implement me
panic("implement me")
}