blob: 15f5f32277bff1fbae5b76646cbe2722101c6da4 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "resultnode.h"
namespace search::expression {
class BucketResultNode : public ResultNode
{
public:
DECLARE_ABSTRACT_EXPRESSIONNODE(BucketResultNode);
void set(const ResultNode & rhs) override { (void) rhs; }
protected:
static const vespalib::string _fromField;
static const vespalib::string _toField;
private:
int64_t onGetInteger(size_t index) const override { (void) index; return 0; }
double onGetFloat(size_t index) const override { (void) index; return 0; }
ConstBufferRef onGetString(size_t index, BufferRef buf) const override { (void) index; return buf; }
size_t getRawByteSize() const override { return onGetRawByteSize(); }
virtual size_t onGetRawByteSize() const = 0;
};
}
|