]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/ColumnFamilyMetaData.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 column family.
14 public class ColumnFamilyMetaData
{
15 private final long size
;
16 private final long fileCount
;
17 private final byte[] name
;
18 private final LevelMetaData
[] levels
;
23 private ColumnFamilyMetaData(
27 final LevelMetaData
[] levels
) {
29 this.fileCount
= fileCount
;
35 * The size of this column family in bytes, which is equal to the sum of
36 * the file size of its {@link #levels()}.
38 * @return the size of this column family
45 * The number of files in this column family.
47 * @return the number of files
49 public long fileCount() {
54 * The name of the column family.
58 public byte[] name() {
63 * The metadata of all levels in this column family.
65 * @return the levels metadata
67 public List
<LevelMetaData
> levels() {
68 return Arrays
.asList(levels
);