blob: 357ca8162c6080d54051857b9a2d3d1c7470d841 (
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
48
49
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "clearvalueupdate.h"
#include <vespa/vespalib/util/xmlstream.h>
#include <ostream>
using namespace vespalib::xml;
namespace document {
bool
ClearValueUpdate::operator==(const ValueUpdate& other) const
{
return (other.getType() == Clear);
}
// Ensure that this update is compatible with given field.
void
ClearValueUpdate::checkCompatibility(const Field&) const
{
}
// Apply this update to the given document.
bool
ClearValueUpdate::applyTo(FieldValue& ) const
{
return false;
}
void
ClearValueUpdate::printXml(XmlOutputStream& xos) const
{
xos << XmlTag("clear") << XmlEndTag();
}
// Print this update in human readable form.
void
ClearValueUpdate::print(std::ostream& out, bool, const std::string&) const
{
out << "ClearValueUpdate()";
}
// Deserialize this update from the given buffer.
void
ClearValueUpdate::deserialize(const DocumentTypeRepo&, const DataType&, nbostream &)
{
}
}
|