clean unused method
This commit is contained in:
parent
a450deee5f
commit
6c8b06c967
|
@ -43,14 +43,8 @@ public interface FieldDataType<T extends FieldData> {
|
||||||
public static final LongFieldDataType LONG = new LongFieldDataType();
|
public static final LongFieldDataType LONG = new LongFieldDataType();
|
||||||
public static final FloatFieldDataType FLOAT = new FloatFieldDataType();
|
public static final FloatFieldDataType FLOAT = new FloatFieldDataType();
|
||||||
public static final DoubleFieldDataType DOUBLE = new DoubleFieldDataType();
|
public static final DoubleFieldDataType DOUBLE = new DoubleFieldDataType();
|
||||||
|
|
||||||
public static boolean isNumeric(FieldDataType type) {
|
|
||||||
return type == INT || type == LONG || type == FLOAT || type == DOUBLE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Class<T> fieldDataClass();
|
|
||||||
|
|
||||||
FieldComparatorSource newFieldComparatorSource(FieldDataCache cache);
|
FieldComparatorSource newFieldComparatorSource(FieldDataCache cache);
|
||||||
|
|
||||||
T load(IndexReader reader, String fieldName) throws IOException;
|
T load(IndexReader reader, String fieldName) throws IOException;
|
||||||
|
|
|
@ -32,10 +32,6 @@ import java.io.IOException;
|
||||||
*/
|
*/
|
||||||
public class DoubleFieldDataType implements FieldDataType<DoubleFieldData> {
|
public class DoubleFieldDataType implements FieldDataType<DoubleFieldData> {
|
||||||
|
|
||||||
@Override public Class<DoubleFieldData> fieldDataClass() {
|
|
||||||
return DoubleFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
|
@ -32,10 +32,6 @@ import java.io.IOException;
|
||||||
*/
|
*/
|
||||||
public class FloatFieldDataType implements FieldDataType<FloatFieldData> {
|
public class FloatFieldDataType implements FieldDataType<FloatFieldData> {
|
||||||
|
|
||||||
@Override public Class<FloatFieldData> fieldDataClass() {
|
|
||||||
return FloatFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
|
@ -32,10 +32,6 @@ import java.io.IOException;
|
||||||
*/
|
*/
|
||||||
public class IntFieldDataType implements FieldDataType<IntFieldData> {
|
public class IntFieldDataType implements FieldDataType<IntFieldData> {
|
||||||
|
|
||||||
@Override public Class<IntFieldData> fieldDataClass() {
|
|
||||||
return IntFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
|
@ -32,10 +32,6 @@ import java.io.IOException;
|
||||||
*/
|
*/
|
||||||
public class LongFieldDataType implements FieldDataType<LongFieldData> {
|
public class LongFieldDataType implements FieldDataType<LongFieldData> {
|
||||||
|
|
||||||
@Override public Class<LongFieldData> fieldDataClass() {
|
|
||||||
return LongFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
|
@ -32,10 +32,6 @@ import java.io.IOException;
|
||||||
*/
|
*/
|
||||||
public class ShortFieldDataType implements FieldDataType<ShortFieldData> {
|
public class ShortFieldDataType implements FieldDataType<ShortFieldData> {
|
||||||
|
|
||||||
@Override public Class<ShortFieldData> fieldDataClass() {
|
|
||||||
return ShortFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
|
@ -32,10 +32,6 @@ import java.io.IOException;
|
||||||
*/
|
*/
|
||||||
public class StringFieldDataType implements FieldDataType<StringFieldData> {
|
public class StringFieldDataType implements FieldDataType<StringFieldData> {
|
||||||
|
|
||||||
@Override public Class<StringFieldData> fieldDataClass() {
|
|
||||||
return StringFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
|
@ -35,10 +35,6 @@ public class GeoPointFieldDataType implements FieldDataType<GeoPointFieldData> {
|
||||||
|
|
||||||
public static final GeoPointFieldDataType TYPE = new GeoPointFieldDataType();
|
public static final GeoPointFieldDataType TYPE = new GeoPointFieldDataType();
|
||||||
|
|
||||||
@Override public Class<GeoPointFieldData> fieldDataClass() {
|
|
||||||
return GeoPointFieldData.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
@Override public FieldComparatorSource newFieldComparatorSource(final FieldDataCache cache) {
|
||||||
return new FieldComparatorSource() {
|
return new FieldComparatorSource() {
|
||||||
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
@Override public FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue