aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/expression/bucketresultnode.h
blob: e1912f61d6aa3f09a5e6475045b926b061bb9b6d (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 Vespa.ai. 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;
};

}