field stats: removed redundant package prefixes

This commit is contained in:
Martijn van Groningen 2015-04-23 10:04:24 +02:00
parent 6a2f9c2682
commit 38cb747c69
3 changed files with 18 additions and 18 deletions

View File

@ -172,7 +172,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
if (value instanceof BytesRef) {
return Numbers.bytesToDouble((BytesRef) value);
}
return java.lang.Double.parseDouble(value.toString());
return Double.parseDouble(value.toString());
}
@Override
@ -185,7 +185,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
@Override
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();
return NumericRangeQuery.newDoubleRange(names.indexName(), precisionStep,
iValue - iSim,
@ -256,13 +256,13 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
}
value = nullValue;
} else {
value = java.lang.Double.parseDouble(sExternalValue);
value = Double.parseDouble(sExternalValue);
}
} else {
value = ((Number) externalValue).doubleValue();
}
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 {
XContentParser parser = context.parser();
@ -393,7 +393,7 @@ public class DoubleFieldMapper extends NumberFieldMapper<Double> {
@Override
public String numericAsString() {
return java.lang.Double.toString(number);
return Double.toString(number);
}
}

View File

@ -172,7 +172,7 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
if (value instanceof BytesRef) {
return Numbers.bytesToFloat((BytesRef) value);
}
return java.lang.Float.parseFloat(value.toString());
return Float.parseFloat(value.toString());
}
@Override
@ -188,14 +188,14 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
return ((Number) value).floatValue();
}
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
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();
return NumericRangeQuery.newFloatRange(names.indexName(), precisionStep,
iValue - iSim,
@ -262,13 +262,13 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
}
value = nullValue;
} else {
value = java.lang.Float.parseFloat(sExternalValue);
value = Float.parseFloat(sExternalValue);
}
} else {
value = ((Number) externalValue).floatValue();
}
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 {
XContentParser parser = context.parser();
@ -400,7 +400,7 @@ public class FloatFieldMapper extends NumberFieldMapper<Float> {
@Override
public String numericAsString() {
return java.lang.Float.toString(number);
return Float.toString(number);
}
}

View File

@ -167,7 +167,7 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
if (value instanceof BytesRef) {
return Numbers.bytesToLong((BytesRef) value);
}
return java.lang.Long.parseLong(value.toString());
return Long.parseLong(value.toString());
}
@Override
@ -179,7 +179,7 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
@Override
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();
return NumericRangeQuery.newLongRange(names.indexName(), precisionStep,
iValue - iSim,
@ -246,13 +246,13 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
}
value = nullValue;
} else {
value = java.lang.Long.parseLong(sExternalValue);
value = Long.parseLong(sExternalValue);
}
} else {
value = ((Number) externalValue).longValue();
}
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 {
XContentParser parser = context.parser();
@ -371,7 +371,7 @@ public class LongFieldMapper extends NumberFieldMapper<Long> {
@Override
public String numericAsString() {
return java.lang.Long.toString(number);
return Long.toString(number);
}
}
}