aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/sort_blob_writer.h
blob: 31aca30034952ccaae850c10559a7a0027d5a005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace search::attribute {

/*
 * Base class for sort blob writers. Contains definition of tags
 * describing if value is present (any present value sorts before
 * a missing value).
 */
class SortBlobWriter {
public:
    /*
     * Missing value is always sorted last.
     */
    static constexpr unsigned char has_value = 0;
    static constexpr unsigned char missing_value = 1;
};

}