]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/ChecksumType.java
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / ChecksumType.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 /**
9 * Checksum types used in conjunction with BlockBasedTable.
10 */
11 public enum ChecksumType {
12 /**
13 * Not implemented yet.
14 */
15 kNoChecksum((byte) 0),
16 /**
17 * CRC32 Checksum
18 */
19 kCRC32c((byte) 1),
20 /**
21 * XX Hash
22 */
23 kxxHash((byte) 2);
24
25 /**
26 * Returns the byte value of the enumerations value
27 *
28 * @return byte representation
29 */
30 public byte getValue() {
31 return value_;
32 }
33
34 private ChecksumType(byte value) {
35 value_ = value;
36 }
37
38 private final byte value_;
39 }