blob: 841d084138117fb0c0f4539dca0268102369d945 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bucket.h"
#include <vespa/vespalib/stllike/asciistream.h>
namespace document {
vespalib::string Bucket::toString() const
{
vespalib::asciistream os;
os << *this;
return os.str();
}
vespalib::asciistream& operator<<(vespalib::asciistream& os, const Bucket& id)
{
return os << "Bucket(" << id.getBucketSpace() << ", " << id.getBucketId() << ")";
}
}
|