]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/util/SizeUnit.java
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / util / SizeUnit.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
5
6 package org.rocksdb.util;
7
8 public class SizeUnit {
9 public static final long KB = 1024L;
10 public static final long MB = KB * KB;
11 public static final long GB = KB * MB;
12 public static final long TB = KB * GB;
13 public static final long PB = KB * TB;
14
15 private SizeUnit() {}
16 }