Méthode | Description | |
---|---|---|
Compare ( int slot1, int slot2 ) : int |
Compare hit at slot1 with hit at slot2.
|
|
CompareBottom ( int doc ) : int |
Compare the bottom of the queue with doc. This will only invoked after setBottom has been called. This should return the same result as Compare(int,int) } as if bottom were slot1 and the new document were slot 2. For a search that hits many results, this method will be the hotspot (invoked by far the most frequently).
|
|
Copy ( int slot, int doc ) : void |
This method is called when a new hit is competitive. You should copy any state associated with this document that will be required for future comparisons, into the specified slot.
|
|
SetBottom ( int slot ) : void |
Set the bottom slot, ie the "weakest" (sorted last) entry in the queue. When CompareBottom is called, you should compare against this slot. This will always be called before CompareBottom.
|
|
SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void |
Set a new Reader. All doc correspond to the current Reader.
|
|
SetScorer ( Lucene.Net.Search.Scorer scorer ) : void |
Sets the Scorer to use in case a document's score is needed.
|
|
this ( int slot ) : IComparable |
Return the actual value in the slot.
|
Méthode | Description | |
---|---|---|
BinarySearch ( System a, System key ) : int | ||
BinarySearch ( System a, System key, int low, int high ) : int |
protected static BinarySearch ( System a, System key ) : int | ||
a | System | |
key | System | |
Résultat | int |
protected static BinarySearch ( System a, System key, int low, int high ) : int | ||
a | System | |
key | System | |
low | int | |
high | int | |
Résultat | int |
public abstract Compare ( int slot1, int slot2 ) : int | ||
slot1 | int | first slot to compare /// |
slot2 | int | second slot to compare /// |
Résultat | int |
public abstract CompareBottom ( int doc ) : int | ||
doc | int | that was hit /// |
Résultat | int |
public abstract Copy ( int slot, int doc ) : void | ||
slot | int | which slot to copy the hit to /// |
doc | int | docID relative to current reader /// |
Résultat | void |
public abstract SetBottom ( int slot ) : void | ||
slot | int | the currently weakest (sorted last) slot in the queue /// |
Résultat | void |
public abstract SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void | ||
reader | Lucene.Net.Index.IndexReader | current reader /// |
docBase | int | docBase of this reader /// |
Résultat | void |
public SetScorer ( Lucene.Net.Search.Scorer scorer ) : void | ||
scorer | Lucene.Net.Search.Scorer | Scorer instance that you should use to /// obtain the current hit's score, if necessary. /// |
Résultat | void |
public abstract this ( int slot ) : IComparable | ||
slot | int | the value /// |
Résultat | IComparable |