]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/HistogramType.java
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / HistogramType.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
5
6 package org.rocksdb;
7
8 public enum HistogramType {
9
10 DB_GET((byte) 0x0),
11
12 DB_WRITE((byte) 0x1),
13
14 COMPACTION_TIME((byte) 0x2),
15
16 SUBCOMPACTION_SETUP_TIME((byte) 0x3),
17
18 TABLE_SYNC_MICROS((byte) 0x4),
19
20 COMPACTION_OUTFILE_SYNC_MICROS((byte) 0x5),
21
22 WAL_FILE_SYNC_MICROS((byte) 0x6),
23
24 MANIFEST_FILE_SYNC_MICROS((byte) 0x7),
25
26 /**
27 * TIME SPENT IN IO DURING TABLE OPEN.
28 */
29 TABLE_OPEN_IO_MICROS((byte) 0x8),
30
31 DB_MULTIGET((byte) 0x9),
32
33 READ_BLOCK_COMPACTION_MICROS((byte) 0xA),
34
35 READ_BLOCK_GET_MICROS((byte) 0xB),
36
37 WRITE_RAW_BLOCK_MICROS((byte) 0xC),
38
39 STALL_L0_SLOWDOWN_COUNT((byte) 0xD),
40
41 STALL_MEMTABLE_COMPACTION_COUNT((byte) 0xE),
42
43 STALL_L0_NUM_FILES_COUNT((byte) 0xF),
44
45 HARD_RATE_LIMIT_DELAY_COUNT((byte) 0x10),
46
47 SOFT_RATE_LIMIT_DELAY_COUNT((byte) 0x11),
48
49 NUM_FILES_IN_SINGLE_COMPACTION((byte) 0x12),
50
51 DB_SEEK((byte) 0x13),
52
53 WRITE_STALL((byte) 0x14),
54
55 SST_READ_MICROS((byte) 0x15),
56
57 /**
58 * The number of subcompactions actually scheduled during a compaction.
59 */
60 NUM_SUBCOMPACTIONS_SCHEDULED((byte) 0x16),
61
62 /**
63 * Value size distribution in each operation.
64 */
65 BYTES_PER_READ((byte) 0x17),
66 BYTES_PER_WRITE((byte) 0x18),
67 BYTES_PER_MULTIGET((byte) 0x19),
68
69 /**
70 * number of bytes compressed.
71 */
72 BYTES_COMPRESSED((byte) 0x1A),
73
74 /**
75 * number of bytes decompressed.
76 *
77 * number of bytes is when uncompressed; i.e. before/after respectively
78 */
79 BYTES_DECOMPRESSED((byte) 0x1B),
80
81 COMPRESSION_TIMES_NANOS((byte) 0x1C),
82
83 DECOMPRESSION_TIMES_NANOS((byte) 0x1D),
84
85 READ_NUM_MERGE_OPERANDS((byte) 0x1E),
86
87 HISTOGRAM_ENUM_MAX((byte) 0x1F);
88
89 private final byte value;
90
91 HistogramType(final byte value) {
92 this.value = value;
93 }
94
95 public byte getValue() {
96 return value;
97 }
98 }