]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/LevelMetaData.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).
8 import java
.util
.Arrays
;
12 * The metadata that describes a level.
14 public class LevelMetaData
{
15 private final int level
;
16 private final long size
;
17 private final SstFileMetaData
[] files
;
22 private LevelMetaData(final int level
, final long size
,
23 final SstFileMetaData
[] files
) {
30 * The level which this meta data describes.
39 * The size of this level in bytes, which is equal to the sum of
40 * the file size of its {@link #files()}.
49 * The metadata of all sst files in this level.
51 * @return the metadata of the files
53 public List
<SstFileMetaData
> files() {
54 return Arrays
.asList(files
);