diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/grouping/request/LongBucket.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/grouping/request/LongBucket.java | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/grouping/request/LongBucket.java b/container-search/src/main/java/com/yahoo/search/grouping/request/LongBucket.java index a0fdf8f9526..fd363320033 100644 --- a/container-search/src/main/java/com/yahoo/search/grouping/request/LongBucket.java +++ b/container-search/src/main/java/com/yahoo/search/grouping/request/LongBucket.java @@ -12,7 +12,7 @@ public class LongBucket extends BucketValue { * Gives the next distinct long value. * * @param value the base value. - * @return the next value. + * @return the nextt value. */ public static LongValue nextValue(LongValue value) { long v = value.getValue(); @@ -26,7 +26,7 @@ public class LongBucket extends BucketValue { * @param to The to-value to assign to this. */ public LongBucket(long from, long to) { - super(null, null, new LongValue(from), new LongValue(to)); + super(new LongValue(from), new LongValue(to)); } /** @@ -37,16 +37,6 @@ public class LongBucket extends BucketValue { */ @SuppressWarnings("rawtypes") public LongBucket(ConstantValue from, ConstantValue to) { - super(null, null, from, to); + super(from, to); } - - private LongBucket(String label, Integer level, ConstantValue<?> from, ConstantValue<?> to) { - super(label, level, from, to); - } - - @Override - public LongBucket copy() { - return new LongBucket(getLabel(), getLevelOrNull(), getFrom().copy(), getTo().copy()); - } - } |