blob: b16fa2245de2336ac0a21e604e887becee248c42 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "singleresultnode.h"
namespace search::expression {
class NullResultNode : public SingleResultNode
{
public:
DECLARE_EXPRESSIONNODE(NullResultNode);
size_t hash() const override;
int onCmp(const Identifiable & b) const override;
void set(const ResultNode & rhs) override;
void min(const ResultNode & b) override;
void max(const ResultNode & b) override;
void add(const ResultNode & b) override;
private:
void setMin() override;
void setMax() override;
int64_t onGetInteger(size_t index) const override;
double onGetFloat(size_t index) const override;
ConstBufferRef onGetString(size_t index, BufferRef buf) const override;
size_t onGetRawByteSize() const override { return 0; }
void create(void * buf) const override { (void) buf; }
void destroy(void * buf) const override { (void) buf;}
void decode(const void * buf) override { (void) buf; }
void encode(void * buf) const override { (void) buf; }
void swap(void * buf) override { (void) buf; }
};
}
|