blob: 129c6aadee8ec183d039315cb1c29a5ac5df1bb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping.result;
import java.util.Arrays;
import java.util.Base64;
/**
* This class is used in {@link Group} instances where the identifying
* expression evaluated to a {@link com.yahoo.search.grouping.request.RawBucket}.
*
* @author Ulf Lilleengen
*/
public class RawBucketId extends BucketGroupId<byte[]> {
/**
* Constructs a new instance of this class.
*
* @param from The identifying inclusive-from raw buffer.
* @param to The identifying exclusive-to raw buffer.
*/
public RawBucketId(byte[] from, byte[] to) {
super("raw_bucket",
from, Base64.getEncoder().withoutPadding().encodeToString(from),
to, Base64.getEncoder().withoutPadding().encodeToString(to));
}
}
|