rippled
Loading...
Searching...
No Matches
include
xrpl
nodestore
nodestore/Types.h
1
#ifndef XRPL_NODESTORE_TYPES_H_INCLUDED
2
#define XRPL_NODESTORE_TYPES_H_INCLUDED
3
4
#include <xrpl/nodestore/NodeObject.h>
5
6
#include <
vector
>
7
8
namespace
ripple
{
9
namespace
NodeStore {
10
11
enum
{
12
// This is only used to pre-allocate the array for
13
// batch objects and does not affect the amount written.
14
//
15
batchWritePreallocationSize
= 256,
16
17
// This sets a limit on the maximum number of writes
18
// in a batch. Actual usage can be twice this since
19
// we have a new batch growing as we write the old.
20
//
21
batchWriteLimitSize
= 65536
22
};
23
25
enum
Status
{
26
ok
,
27
notFound
,
28
dataCorrupt
,
29
unknown
,
30
backendError
,
31
32
customCode
= 100
33
};
34
36
using
Batch
=
std::vector<std::shared_ptr<NodeObject>
>;
37
38
}
// namespace NodeStore
39
40
}
// namespace ripple
41
42
#endif
ripple::NodeStore::batchWriteLimitSize
@ batchWriteLimitSize
Definition
nodestore/Types.h:21
ripple::NodeStore::batchWritePreallocationSize
@ batchWritePreallocationSize
Definition
nodestore/Types.h:15
ripple::NodeStore::Status
Status
Return codes from Backend operations.
Definition
nodestore/Types.h:25
ripple::NodeStore::customCode
@ customCode
Definition
nodestore/Types.h:32
ripple::NodeStore::ok
@ ok
Definition
nodestore/Types.h:26
ripple::NodeStore::dataCorrupt
@ dataCorrupt
Definition
nodestore/Types.h:28
ripple::NodeStore::backendError
@ backendError
Definition
nodestore/Types.h:30
ripple::NodeStore::unknown
@ unknown
Definition
nodestore/Types.h:29
ripple::NodeStore::notFound
@ notFound
Definition
nodestore/Types.h:27
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
vector
Generated by
1.9.8