com.qwazr.search.collector.DocValuesLeafCollector Maven / Gradle / Ivy
Show all versions of qwazr-search Show documentation
/**
* Copyright 2015-2016 Emmanuel Keller / QWAZR
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.qwazr.search.collector;
import org.apache.lucene.index.*;
import org.apache.lucene.search.LeafCollector;
import org.apache.lucene.search.Scorer;
import java.io.IOException;
public abstract class DocValuesLeafCollector implements LeafCollector {
@Override
public void setScorer(Scorer scorer) throws IOException {
}
public static abstract class Numeric extends DocValuesLeafCollector {
protected final NumericDocValues docValues;
protected Numeric(NumericDocValues docValues) throws IOException {
this.docValues = docValues;
}
}
public static abstract class SortedNumeric extends DocValuesLeafCollector {
protected final SortedNumericDocValues docValues;
protected SortedNumeric(SortedNumericDocValues docValues) throws IOException {
this.docValues = docValues;
}
}
public static abstract class Binary extends DocValuesLeafCollector {
protected final BinaryDocValues docValues;
protected Binary(BinaryDocValues docValues) throws IOException {
this.docValues = docValues;
}
}
public static abstract class Sorted extends DocValuesLeafCollector {
protected final SortedDocValues docValues;
protected Sorted(SortedDocValues docValues) throws IOException {
this.docValues = docValues;
}
}
public static abstract class SortedSet extends DocValuesLeafCollector {
protected final SortedSetDocValues docValues;
protected SortedSet(SortedSetDocValues docValues) throws IOException {
this.docValues = docValues;
}
}
}