Skip to content

Commit

Permalink
Adjust colliding aggregator cache IDs. (apache#2891)
Browse files Browse the repository at this point in the history
- Renumbered ApproximateHistogramAggregatorFactory from 8 to 12,
  8 was taken by CardinalityAggregatorFactory
- Renumbered ApproximateHistogramFoldingAggregatorFactory from 9 to 13,
  9 was taken by FilteredAggregatorFactory
  • Loading branch information
gianm authored and fjy committed Apr 28, 2016
1 parent 909abd1 commit 16080dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@JsonTypeName("approxHistogram")
public class ApproximateHistogramAggregatorFactory extends AggregatorFactory
{
private static final byte CACHE_TYPE_ID = 0x8;
private static final byte CACHE_TYPE_ID = 12;

protected final String name;
protected final String fieldName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@JsonTypeName("approxHistogramFold")
public class ApproximateHistogramFoldingAggregatorFactory extends ApproximateHistogramAggregatorFactory
{
private static final byte CACHE_TYPE_ID = 0x9;
private static final byte CACHE_TYPE_ID = 13;

@JsonCreator
public ApproximateHistogramFoldingAggregatorFactory(
Expand Down

0 comments on commit 16080dc

Please sign in to comment.