mirror of https://github.com/apache/lucene.git
LUCENE-8115: remove unnecessary-on-its-own {@inheritDoc} annotations.
This commit is contained in:
parent
2828656892
commit
07afc23dce
|
@ -123,9 +123,6 @@ public final class CommonGramsFilter extends TokenFilter {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void reset() throws IOException {
|
||||
super.reset();
|
||||
|
|
|
@ -62,9 +62,6 @@ public final class CommonGramsQueryFilter extends TokenFilter {
|
|||
super(input);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void reset() throws IOException {
|
||||
super.reset();
|
||||
|
|
|
@ -204,9 +204,6 @@ public class FingerprintFilter extends TokenFilter {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void reset() throws IOException {
|
||||
super.reset();
|
||||
|
|
|
@ -71,9 +71,6 @@ public final class HyphenatedWordsFilter extends TokenFilter {
|
|||
super(in);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean incrementToken() throws IOException {
|
||||
while (!exhausted && input.incrementToken()) {
|
||||
|
@ -112,9 +109,6 @@ public final class HyphenatedWordsFilter extends TokenFilter {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void reset() throws IOException {
|
||||
super.reset();
|
||||
|
|
|
@ -43,9 +43,6 @@ public final class RemoveDuplicatesTokenFilter extends TokenFilter {
|
|||
super(in);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean incrementToken() throws IOException {
|
||||
while (input.incrementToken()) {
|
||||
|
@ -71,9 +68,6 @@ public final class RemoveDuplicatesTokenFilter extends TokenFilter {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void reset() throws IOException {
|
||||
super.reset();
|
||||
|
|
|
@ -166,9 +166,6 @@ public class JapaneseIterationMarkCharFilter extends CharFilter {
|
|||
buffer.reset(input);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int read(char[] buffer, int offset, int length) throws IOException {
|
||||
int read = 0;
|
||||
|
@ -185,9 +182,6 @@ public class JapaneseIterationMarkCharFilter extends CharFilter {
|
|||
return read == 0 ? -1 : read;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
int ic = buffer.get(bufferPosition);
|
||||
|
|
|
@ -99,17 +99,11 @@ public class BM25NBClassifier implements Classifier<BytesRef> {
|
|||
this.query = query;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<BytesRef> assignClass(String inputDocument) throws IOException {
|
||||
return assignClassNormalizedList(inputDocument).get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignClassNormalizedList(text);
|
||||
|
@ -117,9 +111,6 @@ public class BM25NBClassifier implements Classifier<BytesRef> {
|
|||
return assignedClasses;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text, int max) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignClassNormalizedList(text);
|
||||
|
|
|
@ -195,9 +195,6 @@ public class BooleanPerceptronClassifier implements Classifier<Boolean> {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<Boolean> assignClass(String text)
|
||||
throws IOException {
|
||||
|
@ -220,18 +217,12 @@ public class BooleanPerceptronClassifier implements Classifier<Boolean> {
|
|||
return new ClassificationResult<>(output >= bias, score);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<Boolean>> getClasses(String text)
|
||||
throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<Boolean>> getClasses(String text, int max)
|
||||
throws IOException {
|
||||
|
|
|
@ -103,9 +103,6 @@ public class KNearestFuzzyClassifier implements Classifier<BytesRef> {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<BytesRef> assignClass(String text) throws IOException {
|
||||
TopDocs knnResults = knnSearch(text);
|
||||
|
@ -121,9 +118,6 @@ public class KNearestFuzzyClassifier implements Classifier<BytesRef> {
|
|||
return assignedClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text) throws IOException {
|
||||
TopDocs knnResults = knnSearch(text);
|
||||
|
@ -132,9 +126,6 @@ public class KNearestFuzzyClassifier implements Classifier<BytesRef> {
|
|||
return assignedClasses;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text, int max) throws IOException {
|
||||
TopDocs knnResults = knnSearch(text);
|
||||
|
|
|
@ -119,9 +119,6 @@ public class KNearestNeighborClassifier implements Classifier<BytesRef> {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<BytesRef> assignClass(String text) throws IOException {
|
||||
return classifyFromTopDocs(knnSearch(text));
|
||||
|
@ -143,9 +140,6 @@ public class KNearestNeighborClassifier implements Classifier<BytesRef> {
|
|||
return assignedClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text) throws IOException {
|
||||
TopDocs knnResults = knnSearch(text);
|
||||
|
@ -154,9 +148,6 @@ public class KNearestNeighborClassifier implements Classifier<BytesRef> {
|
|||
return assignedClasses;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text, int max) throws IOException {
|
||||
TopDocs knnResults = knnSearch(text);
|
||||
|
|
|
@ -98,9 +98,6 @@ public class SimpleNaiveBayesClassifier implements Classifier<BytesRef> {
|
|||
this.query = query;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<BytesRef> assignClass(String inputDocument) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignClassNormalizedList(inputDocument);
|
||||
|
@ -115,9 +112,6 @@ public class SimpleNaiveBayesClassifier implements Classifier<BytesRef> {
|
|||
return assignedClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignClassNormalizedList(text);
|
||||
|
@ -125,9 +119,6 @@ public class SimpleNaiveBayesClassifier implements Classifier<BytesRef> {
|
|||
return assignedClasses;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(String text, int max) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignClassNormalizedList(text);
|
||||
|
|
|
@ -72,17 +72,11 @@ public class KNearestNeighborDocumentClassifier extends KNearestNeighborClassifi
|
|||
this.field2analyzer = field2analyzer;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<BytesRef> assignClass(Document document) throws IOException {
|
||||
return classifyFromTopDocs(knnSearch(document));
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(Document document) throws IOException {
|
||||
TopDocs knnResults = knnSearch(document);
|
||||
|
@ -91,9 +85,6 @@ public class KNearestNeighborDocumentClassifier extends KNearestNeighborClassifi
|
|||
return assignedClasses;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(Document document, int max) throws IOException {
|
||||
TopDocs knnResults = knnSearch(document);
|
||||
|
|
|
@ -71,9 +71,6 @@ public class SimpleNaiveBayesDocumentClassifier extends SimpleNaiveBayesClassifi
|
|||
this.field2analyzer = field2analyzer;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClassificationResult<BytesRef> assignClass(Document document) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignNormClasses(document);
|
||||
|
@ -88,9 +85,6 @@ public class SimpleNaiveBayesDocumentClassifier extends SimpleNaiveBayesClassifi
|
|||
return assignedClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(Document document) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignNormClasses(document);
|
||||
|
@ -98,9 +92,6 @@ public class SimpleNaiveBayesDocumentClassifier extends SimpleNaiveBayesClassifi
|
|||
return assignedClasses;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<ClassificationResult<BytesRef>> getClasses(Document document, int max) throws IOException {
|
||||
List<ClassificationResult<BytesRef>> assignedClasses = assignNormClasses(document);
|
||||
|
|
|
@ -108,9 +108,6 @@ public class DocumentAnalysisRequestHandler extends AnalysisRequestHandlerBase {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected NamedList doAnalysis(SolrQueryRequest req) throws Exception {
|
||||
DocumentAnalysisRequest analysisRequest = resolveAnalysisRequest(req);
|
||||
|
|
|
@ -91,9 +91,6 @@ import java.util.Set;
|
|||
*/
|
||||
public class FieldAnalysisRequestHandler extends AnalysisRequestHandlerBase {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected NamedList doAnalysis(SolrQueryRequest req) throws Exception {
|
||||
FieldAnalysisRequest analysisRequest = resolveAnalysisRequest(req);
|
||||
|
|
|
@ -198,9 +198,6 @@ abstract class AbstractStatsValues<T> implements StatsValues {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void accumulate(NamedList stv) {
|
||||
if (computeCount) {
|
||||
|
@ -260,9 +257,6 @@ abstract class AbstractStatsValues<T> implements StatsValues {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void accumulate(BytesRef value, int count) {
|
||||
if (null == ft) {
|
||||
|
@ -298,9 +292,6 @@ abstract class AbstractStatsValues<T> implements StatsValues {
|
|||
updateTypeSpecificStats(value, count);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void missing() {
|
||||
if (computeMissing) {
|
||||
|
@ -308,25 +299,16 @@ abstract class AbstractStatsValues<T> implements StatsValues {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void addMissing(int count) {
|
||||
missing += count;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void addFacet(String facetName, Map<String, StatsValues> facetValues) {
|
||||
facets.put(facetName, facetValues);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NamedList<?> getStatsValues() {
|
||||
NamedList<Object> res = new SimpleOrderedMap<>();
|
||||
|
@ -377,9 +359,6 @@ abstract class AbstractStatsValues<T> implements StatsValues {
|
|||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void setNextReader(LeafReaderContext ctx) throws IOException {
|
||||
if (valueSource == null) {
|
||||
// first time we've collected local values, get the right ValueSource
|
||||
|
@ -503,9 +482,6 @@ class NumericStatsValues extends AbstractStatsValues<Number> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void updateTypeSpecificStats(NamedList stv) {
|
||||
if (computeSum) {
|
||||
|
@ -522,9 +498,6 @@ class NumericStatsValues extends AbstractStatsValues<Number> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void updateTypeSpecificStats(Number v, int count) {
|
||||
double value = v.doubleValue();
|
||||
|
@ -539,9 +512,6 @@ class NumericStatsValues extends AbstractStatsValues<Number> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateMinMax(Number min, Number max) {
|
||||
// we always use the double values, because that way the response Object class is
|
||||
|
@ -645,9 +615,6 @@ class EnumStatsValues extends AbstractStatsValues<EnumFieldValue> {
|
|||
return hasher.hashInt(v.toInt().intValue()).asLong();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void accumulate(int docID) throws IOException {
|
||||
if (values.exists(docID)) {
|
||||
|
@ -660,9 +627,6 @@ class EnumStatsValues extends AbstractStatsValues<EnumFieldValue> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected void updateMinMax(EnumFieldValue min, EnumFieldValue max) {
|
||||
if (computeMin) { // nested if to encourage JIT to optimize aware final var?
|
||||
if (null != min) {
|
||||
|
@ -680,17 +644,11 @@ class EnumStatsValues extends AbstractStatsValues<EnumFieldValue> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateTypeSpecificStats(NamedList stv) {
|
||||
// No type specific stats
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateTypeSpecificStats(EnumFieldValue value, int count) {
|
||||
// No type specific stats
|
||||
|
@ -737,9 +695,6 @@ class DateStatsValues extends AbstractStatsValues<Date> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateTypeSpecificStats(NamedList stv) {
|
||||
if (computeSum) {
|
||||
|
@ -750,9 +705,6 @@ class DateStatsValues extends AbstractStatsValues<Date> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void updateTypeSpecificStats(Date v, int count) {
|
||||
long value = v.getTime();
|
||||
|
@ -764,9 +716,6 @@ class DateStatsValues extends AbstractStatsValues<Date> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateMinMax(Date min, Date max) {
|
||||
if (computeMin) { // nested if to encourage JIT to optimize aware final var?
|
||||
|
@ -846,25 +795,16 @@ class StringStatsValues extends AbstractStatsValues<String> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateTypeSpecificStats(NamedList stv) {
|
||||
// No type specific stats
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateTypeSpecificStats(String value, int count) {
|
||||
// No type specific stats
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void updateMinMax(String min, String max) {
|
||||
if (computeMin) { // nested if to encourage JIT to optimize aware final var?
|
||||
|
|
|
@ -706,17 +706,11 @@ public class Grouping {
|
|||
TotalHitCountCollector fallBackCollector;
|
||||
Collection<SearchGroup<BytesRef>> topGroups;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void prepare() throws IOException {
|
||||
actualGroupsToFind = getMax(offset, numGroups, maxDoc);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Collector createFirstPassCollector() throws IOException {
|
||||
// Ok we don't want groups, but do want a total count
|
||||
|
@ -730,9 +724,6 @@ public class Grouping {
|
|||
return firstPass;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Collector createSecondPassCollector() throws IOException {
|
||||
if (actualGroupsToFind <= 0) {
|
||||
|
@ -767,18 +758,12 @@ public class Grouping {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AllGroupHeadsCollector<?> createAllGroupCollector() throws IOException {
|
||||
Sort sortWithinGroup = withinGroupSort != null ? withinGroupSort : Sort.RELEVANCE;
|
||||
return AllGroupHeadsCollector.newCollector(new TermGroupSelector(groupBy), sortWithinGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void finish() throws IOException {
|
||||
result = secondPass != null ? secondPass.getTopGroups(0) : null;
|
||||
|
@ -826,9 +811,6 @@ public class Grouping {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int getMatches() {
|
||||
if (result == null && fallBackCollector == null) {
|
||||
|
@ -838,9 +820,6 @@ public class Grouping {
|
|||
return result != null ? result.totalHitCount : fallBackCollector.getTotalHits();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Integer getNumberOfGroups() {
|
||||
return allGroupsCollector == null ? null : allGroupsCollector.getGroupCount();
|
||||
|
@ -857,17 +836,11 @@ public class Grouping {
|
|||
TopDocsCollector topCollector;
|
||||
FilterCollector collector;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void prepare() throws IOException {
|
||||
actualGroupsToFind = getMax(offset, numGroups, maxDoc);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Collector createFirstPassCollector() throws IOException {
|
||||
DocSet groupFilt = searcher.getDocSet(query);
|
||||
|
@ -885,9 +858,6 @@ public class Grouping {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void finish() throws IOException {
|
||||
TopDocsCollector topDocsCollector = (TopDocsCollector) collector.getDelegate();
|
||||
|
@ -901,9 +871,6 @@ public class Grouping {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int getMatches() {
|
||||
return collector.getMatches();
|
||||
|
@ -929,9 +896,6 @@ public class Grouping {
|
|||
AllGroupsCollector<MutableValue> allGroupsCollector;
|
||||
Collection<SearchGroup<MutableValue>> topGroups;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void prepare() throws IOException {
|
||||
context = ValueSource.newContext(searcher);
|
||||
|
@ -939,9 +903,6 @@ public class Grouping {
|
|||
actualGroupsToFind = getMax(offset, numGroups, maxDoc);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Collector createFirstPassCollector() throws IOException {
|
||||
// Ok we don't want groups, but do want a total count
|
||||
|
@ -955,9 +916,6 @@ public class Grouping {
|
|||
return firstPass;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Collector createSecondPassCollector() throws IOException {
|
||||
if (actualGroupsToFind <= 0) {
|
||||
|
@ -998,9 +956,6 @@ public class Grouping {
|
|||
return AllGroupHeadsCollector.newCollector(newSelector(), sortWithinGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected void finish() throws IOException {
|
||||
result = secondPass != null ? secondPass.getTopGroups(0) : null;
|
||||
|
@ -1034,9 +989,6 @@ public class Grouping {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int getMatches() {
|
||||
if (result == null && fallBackCollector == null) {
|
||||
|
@ -1046,9 +998,6 @@ public class Grouping {
|
|||
return result != null ? result.totalHitCount : fallBackCollector.getTotalHits();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected Integer getNumberOfGroups() {
|
||||
return allGroupsCollector == null ? null : allGroupsCollector.getGroupCount();
|
||||
|
|
|
@ -32,9 +32,6 @@ import org.apache.solr.search.grouping.distributed.ShardRequestFactory;
|
|||
*/
|
||||
public class SearchGroupsRequestFactory implements ShardRequestFactory {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ShardRequest[] constructRequest(ResponseBuilder rb) {
|
||||
ShardRequest sreq = new ShardRequest();
|
||||
|
|
|
@ -48,9 +48,6 @@ public class TopGroupsShardRequestFactory implements ShardRequestFactory {
|
|||
*/
|
||||
public static final String GROUP_NULL_VALUE = "" + ReverseStringFilter.START_OF_HEADING_MARKER;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ShardRequest[] constructRequest(ResponseBuilder rb) {
|
||||
// If we have a group.query we need to query all shards... Or we move this to the group first phase queries
|
||||
|
|
|
@ -47,9 +47,6 @@ import org.apache.solr.search.grouping.distributed.shardresultserializer.SearchG
|
|||
*/
|
||||
public class SearchGroupShardResponseProcessor implements ShardResponseProcessor {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void process(ResponseBuilder rb, ShardRequest shardRequest) {
|
||||
SortSpec groupSortSpec = rb.getGroupingSpec().getGroupSortSpec();
|
||||
|
|
|
@ -31,9 +31,6 @@ import org.apache.solr.search.grouping.distributed.ShardResponseProcessor;
|
|||
*/
|
||||
public class StoredFieldsShardResponseProcessor implements ShardResponseProcessor {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void process(ResponseBuilder rb, ShardRequest shardRequest) {
|
||||
boolean returnScores = (rb.getFieldFlags() & SolrIndexSearcher.GET_SCORES) != 0;
|
||||
|
|
|
@ -49,9 +49,6 @@ import org.apache.solr.search.grouping.distributed.shardresultserializer.TopGrou
|
|||
*/
|
||||
public class TopGroupsShardResponseProcessor implements ShardResponseProcessor {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void process(ResponseBuilder rb, ShardRequest shardRequest) {
|
||||
|
|
|
@ -45,9 +45,6 @@ public class SearchGroupsResultTransformer implements ShardResultTransformer<Lis
|
|||
this.searcher = searcher;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NamedList transform(List<Command> data) throws IOException {
|
||||
final NamedList<NamedList> result = new NamedList<>(data.size());
|
||||
|
@ -73,9 +70,6 @@ public class SearchGroupsResultTransformer implements ShardResultTransformer<Lis
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Map<String, SearchGroupsFieldCommandResult> transformToNative(NamedList<NamedList> shardResponse, Sort groupSort, Sort withinGroupSort, String shard) {
|
||||
final Map<String, SearchGroupsFieldCommandResult> result = new HashMap<>(shardResponse.size());
|
||||
|
|
|
@ -63,9 +63,6 @@ public class TopGroupsResultTransformer implements ShardResultTransformer<List<C
|
|||
this.rb = rb;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NamedList transform(List<Command> data) throws IOException {
|
||||
NamedList<NamedList> result = new NamedList<>();
|
||||
|
@ -88,9 +85,6 @@ public class TopGroupsResultTransformer implements ShardResultTransformer<List<C
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Map<String, ?> transformToNative(NamedList<NamedList> shardResponse, Sort groupSort, Sort withinGroupSort, String shard) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
|
|
|
@ -44,9 +44,6 @@ public class GroupedEndResultTransformer implements EndResultTransformer {
|
|||
this.searcher = searcher;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSource solrDocumentSource) {
|
||||
NamedList<Object> commands = new SimpleOrderedMap<>();
|
||||
|
|
|
@ -31,9 +31,6 @@ import java.util.Map;
|
|||
*/
|
||||
public class MainEndResultTransformer implements EndResultTransformer {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSource solrDocumentSource) {
|
||||
Object value = result.get(rb.getGroupingSpec().getFields()[0]);
|
||||
|
|
|
@ -32,9 +32,6 @@ import java.util.Map;
|
|||
*/
|
||||
public class SimpleEndResultTransformer implements EndResultTransformer {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSource solrDocumentSource) {
|
||||
NamedList<Object> commands = new SimpleOrderedMap<>();
|
||||
|
|
|
@ -89,9 +89,6 @@ public class DocumentAnalysisRequest extends SolrRequest<DocumentAnalysisRespons
|
|||
return new DocumentAnalysisResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ModifiableSolrParams getParams() {
|
||||
ModifiableSolrParams params = new ModifiableSolrParams();
|
||||
|
|
|
@ -68,9 +68,6 @@ public class FieldAnalysisRequest extends SolrRequest<FieldAnalysisResponse> {
|
|||
return new FieldAnalysisResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public SolrParams getParams() {
|
||||
ModifiableSolrParams params = new ModifiableSolrParams();
|
||||
|
|
|
@ -34,9 +34,6 @@ public class DocumentAnalysisResponse extends AnalysisResponseBase implements It
|
|||
|
||||
private final Map<String, DocumentAnalysis> documentAnalysisByKey = new HashMap<>();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
super.setResponse(response);
|
||||
|
|
|
@ -34,9 +34,6 @@ public class FieldAnalysisResponse extends AnalysisResponseBase {
|
|||
private Map<String, Analysis> analysisByFieldTypeName = new HashMap<>();
|
||||
private Map<String, Analysis> analysisByFieldName = new HashMap<>();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
super.setResponse(response);
|
||||
|
|
|
@ -227,9 +227,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
return fieldTypeRepresentations;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -246,9 +243,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class SchemaNameResponse extends SolrResponseBase {
|
||||
private String schemaName;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -266,9 +260,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class SchemaVersionResponse extends SolrResponseBase {
|
||||
private float schemaVersion;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -286,9 +277,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class FieldResponse extends SolrResponseBase {
|
||||
Map<String, Object> field = new LinkedHashMap<>();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -307,9 +295,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class FieldsResponse extends SolrResponseBase {
|
||||
List<Map<String, Object>> fields;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -326,9 +311,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class DynamicFieldResponse extends SolrResponseBase {
|
||||
Map<String, Object> dynamicField = new LinkedHashMap<>();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -347,9 +329,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class DynamicFieldsResponse extends SolrResponseBase {
|
||||
List<Map<String, Object>> dynamicFields;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -366,9 +345,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class UniqueKeyResponse extends SolrResponseBase {
|
||||
private String uniqueKey;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -385,9 +361,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class GlobalSimilarityResponse extends SolrResponseBase {
|
||||
Map<String, Object> similarity;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -405,9 +378,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class CopyFieldsResponse extends SolrResponseBase {
|
||||
List<Map<String, Object>> copyFields;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -424,9 +394,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class FieldTypeResponse extends SolrResponseBase {
|
||||
private FieldTypeRepresentation fieldType;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -445,9 +412,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
public static class FieldTypesResponse extends SolrResponseBase {
|
||||
List<FieldTypeRepresentation> fieldTypes;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
@ -462,9 +426,6 @@ public class SchemaResponse extends SolrResponseBase {
|
|||
}
|
||||
|
||||
public static class UpdateResponse extends SolrResponseBase {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void setResponse(NamedList<Object> response) {
|
||||
|
|
Loading…
Reference in New Issue