blob: c568f044de27096e337c5d5e8ce54ae9f349f75e (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.expression;
/**
* This is the superclass of all bucket values
*
* @author <a href="mailto:havardpe@yahoo-inc.com">Haavard Pettersen</a>
* @author baldersheim
* @author Simon Thoresen Hult
*/
abstract public class BucketResultNode extends ResultNode {
// The global class identifier shared with C++.
public static final int classId = registerClass(0x4000 + 100, BucketResultNode.class);
@Override
public long getInteger() {
return 0;
}
@Override
public double getFloat() {
return 0.0;
}
@Override
public String getString() {
return "";
}
@Override
public byte[] getRaw() {
return new byte[0];
}
@Override
public void set(ResultNode rhs) {
}
/**
* Tell if this bucket has zero width. Indicates that is has no value and can be considered a NULL range. An empty
* range is used by the backend to represent hits that end in no buckets.
*
* @return If this bucket has zero width.
*/
public abstract boolean empty();
}
|