public class HTreeIndexMetadata extends IndexMetadata
Modifier and Type | Class and Description |
---|---|
static interface |
HTreeIndexMetadata.Options
HTree specific options. |
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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) |
firstCheckpoint, getAsynchronousIndexWriteConfiguration, getAsynchronousIndexWriteConfiguration, getBloomFilterFactory, getBranchingFactor, getBTreeClassName, getBtreeRecordCompressorFactory, getCheckpointClassName, getConflictResolver, getDeleteMarkers, getIndexSegmentBranchingFactor, getIndexSegmentBufferNodes, getIndexSegmentRecordCompressorFactory, getIndexType, getIndexUUID, getInitialDataServiceUUID, getKeyBuilder, getMaxRecLen, getMetadataAddr, getName, getNodeKeySerializer, getOverflowHandler, getPartitionMetadata, getPrimaryKeyBuilder, getProperty, getProperty, getRawRecords, getScatterSplitConfiguration, getSplitHandler, getTupleSerializer, getVersionTimestampFilters, getVersionTimestamps, getWriteRetentionQueueCapacity, getWriteRetentionQueueScan, isIsolatable, overflowCheckpoint, read, setBloomFilterFactory, setBranchingFactor, setBTreeClassName, setBtreeRecordCompressorFactory, setCheckpointClassName, setConflictResolver, setDeleteMarkers, setIndexSegmentBranchingFactor, setIndexSegmentBufferNodes, setIndexSegmentRecordCompressorFactory, setInitialDataServiceUUID, setIsolatable, setMaxRecLen, setNodeKeySerializer, setOverflowHandler, setPartitionMetadata, setRawRecords, setScatterSplitConfiguration, setSplitHandler, setTupleSerializer, setVersionTimestampFilters, setVersionTimestamps, setWriteRetentionQueueCapacity, setWriteRetentionQueueScan, toString, write
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
.public final String getHTreeClassName()
HTree
that will be used to
re-load the index.public 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)
IndexMetadata
IndexMetadata.toString()
.toString
in class IndexMetadata
sb
- Where to write additional metadata.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class IndexMetadata
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class IndexMetadata
IOException
public HTreeIndexMetadata clone()
IndexMetadata
IndexMetadata
record on the cloned copy.clone
in class IndexMetadata
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.