public class SstFileMetaData
extends java.lang.Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
SstFileMetaData(java.lang.String fileName,
java.lang.String path,
long size,
long smallestSeqno,
long largestSeqno,
byte[] smallestKey,
byte[] largestKey,
long numReadsSampled,
boolean beingCompacted,
long numEntries,
long numDeletions)
Called from JNI C++
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
beingCompacted()
Returns true if the file is currently being compacted.
|
java.lang.String |
fileName()
Get the name of the file.
|
byte[] |
largestKey()
Get the largest user defined key in the file.
|
long |
largestSeqno()
Get the largest sequence number in file.
|
long |
numDeletions()
Get the number of deletions.
|
long |
numEntries()
Get the number of entries.
|
long |
numReadsSampled()
Get the number of times the file has been read.
|
java.lang.String |
path()
Get the full path where the file locates.
|
long |
size()
Get the file size in bytes.
|
byte[] |
smallestKey()
Get the smallest user defined key in the file.
|
long |
smallestSeqno()
Get the smallest sequence number in file.
|
protected SstFileMetaData(java.lang.String fileName,
java.lang.String path,
long size,
long smallestSeqno,
long largestSeqno,
byte[] smallestKey,
byte[] largestKey,
long numReadsSampled,
boolean beingCompacted,
long numEntries,
long numDeletions)
fileName - the file namepath - the file pathsize - the size of the filesmallestSeqno - the smallest sequence numberlargestSeqno - the largest sequence numbersmallestKey - the smallest keylargestKey - the largest keynumReadsSampled - the number of reads sampledbeingCompacted - true if the file is being compacted, false otherwisenumEntries - the number of entriesnumDeletions - the number of deletionspublic java.lang.String fileName()
public java.lang.String path()
public long size()
public long smallestSeqno()
public long largestSeqno()
public byte[] smallestKey()
public byte[] largestKey()
public long numReadsSampled()
public boolean beingCompacted()
public long numEntries()
public long numDeletions()