public class DelegatingScoringQueryExecutor extends Object implements MimirScorer
MimirScorer
that delegates the scoring work to an
MG4J DelegatingScorer
.Constructor and Description |
---|
DelegatingScoringQueryExecutor(it.unimi.di.big.mg4j.search.score.DelegatingScorer scorer) |
Modifier and Type | Method and Description |
---|---|
it.unimi.di.big.mg4j.search.score.DelegatingScorer |
copy() |
it.unimi.dsi.fastutil.objects.Reference2DoubleMap<it.unimi.di.big.mg4j.index.Index> |
getWeights() |
long |
nextDocument() |
long |
nextDocument(long greaterThan) |
Binding |
nextHit() |
double |
score() |
double |
score(it.unimi.di.big.mg4j.index.Index index) |
boolean |
setWeights(it.unimi.dsi.fastutil.objects.Reference2DoubleMap<it.unimi.di.big.mg4j.index.Index> index2Weight) |
boolean |
usesIntervals() |
void |
wrap(it.unimi.di.big.mg4j.search.DocumentIterator queryExecutor)
Wraps a
QueryExecutor allowing this scorer to provide scoring
functionality on top of it. |
public DelegatingScoringQueryExecutor(it.unimi.di.big.mg4j.search.score.DelegatingScorer scorer) throws IOException
IOException
public long nextDocument(long greaterThan) throws IOException
nextDocument
in interface MimirScorer
IOException
public Binding nextHit() throws IOException
nextHit
in interface MimirScorer
IOException
public double score() throws IOException
score
in interface it.unimi.di.big.mg4j.search.score.Scorer
IOException
public double score(it.unimi.di.big.mg4j.index.Index index) throws IOException
score
in interface it.unimi.di.big.mg4j.search.score.Scorer
IOException
public boolean setWeights(it.unimi.dsi.fastutil.objects.Reference2DoubleMap<it.unimi.di.big.mg4j.index.Index> index2Weight)
setWeights
in interface it.unimi.di.big.mg4j.search.score.Scorer
public it.unimi.dsi.fastutil.objects.Reference2DoubleMap<it.unimi.di.big.mg4j.index.Index> getWeights()
getWeights
in interface it.unimi.di.big.mg4j.search.score.Scorer
public long nextDocument() throws IOException
nextDocument
in interface it.unimi.di.big.mg4j.search.score.Scorer
IOException
public it.unimi.di.big.mg4j.search.score.DelegatingScorer copy()
copy
in interface it.unimi.di.big.mg4j.search.score.Scorer
copy
in interface it.unimi.dsi.lang.FlyweightPrototype<it.unimi.di.big.mg4j.search.score.Scorer>
public void wrap(it.unimi.di.big.mg4j.search.DocumentIterator queryExecutor) throws IOException
MimirScorer
QueryExecutor
allowing this scorer to provide scoring
functionality on top of it. The parameter provided is declared as a
DocumentIterator
to satisfy the extended interface, but the
value provided must be a QueryExecutor
.wrap
in interface MimirScorer
wrap
in interface it.unimi.di.big.mg4j.search.score.Scorer
IOException
public boolean usesIntervals()
usesIntervals
in interface it.unimi.di.big.mg4j.search.score.Scorer
Copyright © 2021 GATE. All rights reserved.