public class ColumnFamilyHandle extends RocksObject
nativeHandle_owningHandle_| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
disposeInternal()
Deletes underlying C++ iterator pointer.
|
protected void |
disposeInternal(long handle) |
boolean |
equals(java.lang.Object o) |
ColumnFamilyDescriptor |
getDescriptor()
Gets the up-to-date descriptor of the column family
associated with this handle.
|
int |
getID()
Gets the ID of the Column Family.
|
byte[] |
getName()
Gets the name of the Column Family.
|
int |
hashCode() |
protected boolean |
isDefaultColumnFamily() |
getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic byte[] getName()
throws RocksDBException
RocksDBException - if an error occurs whilst retrieving the name.public int getID()
public ColumnFamilyDescriptor getDescriptor() throws RocksDBException
Note that this function is not supported in RocksDBLite.
RocksDBException - if an error occurs whilst retrieving the
descriptor.public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectprotected boolean isDefaultColumnFamily()
protected void disposeInternal()
Deletes underlying C++ iterator pointer.
Note: the underlying handle can only be safely deleted if the RocksDB
instance related to a certain ColumnFamilyHandle is still valid and
initialized. Therefore disposeInternal() checks if the RocksDB is
initialized before freeing the native handle.
disposeInternal 在类中 RocksObjectprotected final void disposeInternal(long handle)
disposeInternal 在类中 RocksObject