|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.IndexMetadata
com.bigdata.btree.HTreeIndexMetadata
public class HTreeIndexMetadata
HTree specific implementation.
| Nested Class Summary | |
|---|---|
static interface |
HTreeIndexMetadata.Options
HTree specific options. |
| Constructor Summary | |
|---|---|
HTreeIndexMetadata()
De-serialization constructor only - DO NOT use this ctor for creating a new instance! It will result in a thrown exception, typically from IndexMetadata.firstCheckpoint(). |
|
HTreeIndexMetadata(IIndexManager indexManager,
Properties properties,
String namespace,
UUID indexUUID)
Constructor used to configure a new named B+Tree. |
|
HTreeIndexMetadata(String name,
UUID indexUUID)
Constructor used to configure a new named BTree. |
|
HTreeIndexMetadata(UUID indexUUID)
Constructor used to configure a new unnamed HTree. |
|
| Method Summary | |
|---|---|
HTreeIndexMetadata |
clone()
Makes a copy of the persistent data, clearing the address of the IndexMetadata record on the cloned copy. |
int |
getAddressBits()
|
String |
getHTreeClassName()
The name of a class derived from HTree that will be used to
re-load the index. |
int |
getKeyLen()
|
void |
readExternal(ObjectInput in)
|
void |
setAddressBits(int addressBits)
|
void |
setHTreeClassName(String className)
|
void |
setKeyLen(int keyLen)
|
protected void |
toString(StringBuilder sb)
Extension hook for IndexMetadata.toString(). |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HTreeIndexMetadata()
IndexMetadata.firstCheckpoint().
public HTreeIndexMetadata(UUID indexUUID)
HTree. The
index UUID is set to the given value and all other fields are defaulted
as explained at #HTreeIndexMetadata(Properties, String, UUID).
Those defaults may be overridden using the various setter methods, but
some values can not be safely overridden after the index is in use.
indexUUID - The indexUUID.
IllegalArgumentException - if the indexUUID is null.
public HTreeIndexMetadata(String name,
UUID indexUUID)
BTree. The
index UUID is set to the given value and all other fields are defaulted
as explained at #IndexMetadata(Properties, String, UUID). Those
defaults may be overridden using the various setter methods, but some
values can not be safely overridden after the index is in use.
name - The index name. When this is a scale-out index, the same
name is specified for each index resource. However they
will be registered on the journal under different names
depending on the index partition to which they belong.indexUUID - The indexUUID. The same index UUID MUST be used for all
component indices in a scale-out index.
IllegalArgumentException - if the indexUUID is null.
public HTreeIndexMetadata(IIndexManager indexManager,
Properties properties,
String namespace,
UUID indexUUID)
#getProperty(Properties, String, String, String). Those
defaults may be overridden using the various setter methods.
indexManager - Optional. When given and when the IIndexManager is a
scale-out IBigdataFederation, this object will be used
to interpret the IndexMetadata.Options.INITIAL_DATA_SERVICE
property.properties - Properties object used to overridden the default values for
this IndexMetadata instance.namespace - The index name. When this is a scale-out index, the same
name is specified for each index resource. However they
will be registered on the journal under different names
depending on the index partition to which they belong.indexUUID - component indices in a scale-out index.
The indexUUID. The same index UUID MUST be used for allindexType - Type-safe enumeration specifying the type of the persistence
class data structure (historically, this was always a B+Tree).
IllegalArgumentException - if properties is null.
IllegalArgumentException - if indexUUID is null.| Method Detail |
|---|
public final String getHTreeClassName()
HTree that will be used to
re-load the index.
HTreeIndexMetadata.Options.HTREE_CLASS_NAMEpublic void setHTreeClassName(String className)
public int getAddressBits()
public void setAddressBits(int addressBits)
public int getKeyLen()
public void setKeyLen(int keyLen)
protected void toString(StringBuilder sb)
IndexMetadataIndexMetadata.toString().
toString in class IndexMetadatasb - Where to write additional metadata.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class IndexMetadataIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class IndexMetadataIOExceptionpublic HTreeIndexMetadata clone()
IndexMetadataIndexMetadata record on the cloned copy.
clone in class IndexMetadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||