]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/LiveFileMetaData.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).
9 * The full set of metadata associated with each SST file.
11 public class LiveFileMetaData
extends SstFileMetaData
{
12 private final byte[] columnFamilyName
;
13 private final int level
;
18 private LiveFileMetaData(
19 final byte[] columnFamilyName
,
21 final String fileName
,
24 final long smallestSeqno
,
25 final long largestSeqno
,
26 final byte[] smallestKey
,
27 final byte[] largestKey
,
28 final long numReadsSampled
,
29 final boolean beingCompacted
,
30 final long numEntries
,
31 final long numDeletions
) {
32 super(fileName
, path
, size
, smallestSeqno
, largestSeqno
, smallestKey
,
33 largestKey
, numReadsSampled
, beingCompacted
, numEntries
, numDeletions
);
34 this.columnFamilyName
= columnFamilyName
;
39 * Get the name of the column family.
41 * @return the name of the column family
43 public byte[] columnFamilyName() {
44 return columnFamilyName
;
48 * Get the level at which this file resides.
50 * @return the level at which the file resides.