field stats: removed redundant package prefixes
This commit is contained in:
parent
6a2f9c2682
commit
38cb747c69
|
@ -172,7 +172,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
|
||||||
if (value instanceof BytesRef) {
|
if (value instanceof BytesRef) {
|
||||||
return Numbers.bytesToDouble((BytesRef) value);
|
return Numbers.bytesToDouble((BytesRef) value);
|
||||||
}
|
}
|
||||||
return java.lang.Double.parseDouble(value.toString());
|
return Double.parseDouble(value.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -185,7 +185,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions) {
|
public Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions) {
|
||||||
double iValue = java.lang.Double.parseDouble(value);
|
double iValue = Double.parseDouble(value);
|
||||||
double iSim = fuzziness.asDouble();
|
double iSim = fuzziness.asDouble();
|
||||||
return NumericRangeQuery.newDoubleRange(names.indexName(), precisionStep,
|
return NumericRangeQuery.newDoubleRange(names.indexName(), precisionStep,
|
||||||
iValue - iSim,
|
iValue - iSim,
|
||||||
|
@ -256,13 +256,13 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
|
||||||
}
|
}
|
||||||
value = nullValue;
|
value = nullValue;
|
||||||
} else {
|
} else {
|
||||||
value = java.lang.Double.parseDouble(sExternalValue);
|
value = Double.parseDouble(sExternalValue);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
value = ((Number) externalValue).doubleValue();
|
value = ((Number) externalValue).doubleValue();
|
||||||
}
|
}
|
||||||
if (context.includeInAll(includeInAll, this)) {
|
if (context.includeInAll(includeInAll, this)) {
|
||||||
context.allEntries().addText(names.fullName(), java.lang.Double.toString(value), boost);
|
context.allEntries().addText(names.fullName(), Double.toString(value), boost);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
XContentParser parser = context.parser();
|
XContentParser parser = context.parser();
|
||||||
|
@ -393,7 +393,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String numericAsString() {
|
public String numericAsString() {
|
||||||
return java.lang.Double.toString(number);
|
return Double.toString(number);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
|
||||||
|
|
||||||
public static final FieldType TYPE = new FieldType();
|
public static final FieldType TYPE = new FieldType();
|
||||||
static {
|
static {
|
||||||
TYPE.setDocValuesType(DocValuesType.BINARY);
|
TYPE.setDocValuesType(DocValuesType.BINARY);
|
||||||
TYPE.freeze();
|
TYPE.freeze();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
|
||||||
if (value instanceof BytesRef) {
|
if (value instanceof BytesRef) {
|
||||||
return Numbers.bytesToFloat((BytesRef) value);
|
return Numbers.bytesToFloat((BytesRef) value);
|
||||||
}
|
}
|
||||||
return java.lang.Float.parseFloat(value.toString());
|
return Float.parseFloat(value.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -188,14 +188,14 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
|
||||||
return ((Number) value).floatValue();
|
return ((Number) value).floatValue();
|
||||||
}
|
}
|
||||||
if (value instanceof BytesRef) {
|
if (value instanceof BytesRef) {
|
||||||
return java.lang.Float.parseFloat(((BytesRef) value).utf8ToString());
|
return Float.parseFloat(((BytesRef) value).utf8ToString());
|
||||||
}
|
}
|
||||||
return java.lang.Float.parseFloat(value.toString());
|
return Float.parseFloat(value.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions) {
|
public Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions) {
|
||||||
float iValue = java.lang.Float.parseFloat(value);
|
float iValue = Float.parseFloat(value);
|
||||||
final float iSim = fuzziness.asFloat();
|
final float iSim = fuzziness.asFloat();
|
||||||
return NumericRangeQuery.newFloatRange(names.indexName(), precisionStep,
|
return NumericRangeQuery.newFloatRange(names.indexName(), precisionStep,
|
||||||
iValue - iSim,
|
iValue - iSim,
|
||||||
|
@ -262,13 +262,13 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
|
||||||
}
|
}
|
||||||
value = nullValue;
|
value = nullValue;
|
||||||
} else {
|
} else {
|
||||||
value = java.lang.Float.parseFloat(sExternalValue);
|
value = Float.parseFloat(sExternalValue);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
value = ((Number) externalValue).floatValue();
|
value = ((Number) externalValue).floatValue();
|
||||||
}
|
}
|
||||||
if (context.includeInAll(includeInAll, this)) {
|
if (context.includeInAll(includeInAll, this)) {
|
||||||
context.allEntries().addText(names.fullName(), java.lang.Float.toString(value), boost);
|
context.allEntries().addText(names.fullName(), Float.toString(value), boost);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
XContentParser parser = context.parser();
|
XContentParser parser = context.parser();
|
||||||
|
@ -400,7 +400,7 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String numericAsString() {
|
public String numericAsString() {
|
||||||
return java.lang.Float.toString(number);
|
return Float.toString(number);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
|
||||||
if (value instanceof BytesRef) {
|
if (value instanceof BytesRef) {
|
||||||
return Numbers.bytesToLong((BytesRef) value);
|
return Numbers.bytesToLong((BytesRef) value);
|
||||||
}
|
}
|
||||||
return java.lang.Long.parseLong(value.toString());
|
return Long.parseLong(value.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -179,7 +179,7 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions) {
|
public Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions) {
|
||||||
long iValue = java.lang.Long.parseLong(value);
|
long iValue = Long.parseLong(value);
|
||||||
final long iSim = fuzziness.asLong();
|
final long iSim = fuzziness.asLong();
|
||||||
return NumericRangeQuery.newLongRange(names.indexName(), precisionStep,
|
return NumericRangeQuery.newLongRange(names.indexName(), precisionStep,
|
||||||
iValue - iSim,
|
iValue - iSim,
|
||||||
|
@ -246,13 +246,13 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
|
||||||
}
|
}
|
||||||
value = nullValue;
|
value = nullValue;
|
||||||
} else {
|
} else {
|
||||||
value = java.lang.Long.parseLong(sExternalValue);
|
value = Long.parseLong(sExternalValue);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
value = ((Number) externalValue).longValue();
|
value = ((Number) externalValue).longValue();
|
||||||
}
|
}
|
||||||
if (context.includeInAll(includeInAll, this)) {
|
if (context.includeInAll(includeInAll, this)) {
|
||||||
context.allEntries().addText(names.fullName(), java.lang.Long.toString(value), boost);
|
context.allEntries().addText(names.fullName(), Long.toString(value), boost);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
XContentParser parser = context.parser();
|
XContentParser parser = context.parser();
|
||||||
|
@ -371,7 +371,7 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String numericAsString() {
|
public String numericAsString() {
|
||||||
return java.lang.Long.toString(number);
|
return Long.toString(number);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue