@Override public int compareTo(MutableValue other) { Class<? extends MutableValue> c1 = this.getClass(); Class<? extends MutableValue> c2 = other.getClass(); if (c1 != c2) { int c = c1.hashCode() - c2.hashCode(); if (c == 0) { c = c1.getCanonicalName().compareTo(c2.getCanonicalName()); } return c; } return compareSameType(other); }
@Override public boolean equals(Object other) { return (getClass() == other.getClass()) && this.equalsSameType(other); }
@Override public void collect(int doc) throws IOException { filler.fillValue(doc); if (!groups.contains(mval)) { groups.add(mval.duplicate()); } }
@Override public MutableValue copyValue() { return filler.getValue().duplicate(); }
@Override public int compareTo(MutableValue other) { Class<? extends MutableValue> c1 = this.getClass(); Class<? extends MutableValue> c2 = other.getClass(); if (c1 != c2) { int c = c1.hashCode() - c2.hashCode(); if (c == 0) { c = c1.getCanonicalName().compareTo(c2.getCanonicalName()); } return c; } return compareSameType(other); }
@Override public boolean equals(Object other) { return (getClass() == other.getClass()) && this.equalsSameType(other); }
@Override public void collect(int doc) throws IOException { groupFiller.fillValue(doc); GroupCount groupCount = groupMap.get(groupMval); if (groupCount != null) { countFiller.fillValue(doc); groupCount.uniqueValues.add(countMval.duplicate()); } }
@Override public int compareTo(MutableValue other) { Class<? extends MutableValue> c1 = this.getClass(); Class<? extends MutableValue> c2 = other.getClass(); if (c1 != c2) { int c = c1.hashCode() - c2.hashCode(); if (c == 0) { c = c1.getCanonicalName().compareTo(c2.getCanonicalName()); } return c; } return compareSameType(other); }
@Override public boolean equals(Object other) { return (getClass() == other.getClass()) && this.equalsSameType(other); }
@Override protected void retrieveGroupHeadAndAddIfNotExist(int doc) throws IOException { filler.fillValue(doc); GroupHead groupHead = groups.get(mval); if (groupHead == null) { MutableValue groupValue = mval.duplicate(); groupHead = new GroupHead(groupValue, sortWithinGroup, doc); groups.put(groupValue, groupHead); temporalResult.stop = true; } else { temporalResult.stop = false; } this.temporalResult.groupHead = groupHead; }
@Override public int compareTo(MutableValue other) { Class<? extends MutableValue> c1 = this.getClass(); Class<? extends MutableValue> c2 = other.getClass(); if (c1 != c2) { int c = c1.hashCode() - c2.hashCode(); if (c == 0) { c = c1.getCanonicalName().compareTo(c2.getCanonicalName()); } return c; } return compareSameType(other); }
@Override public boolean equals(Object other) { return (getClass() == other.getClass()) && this.equalsSameType(other); }