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.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 SizeUnit()15 private SizeUnit() {} 16 } 17