public static class Stream.StreamIndexMetadata extends IndexMetadata
| Modifier and Type | Class and Description |
|---|---|
static interface |
Stream.StreamIndexMetadata.Options |
| Constructor and Description |
|---|
Stream.StreamIndexMetadata()
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(). |
Stream.StreamIndexMetadata(IIndexManager indexManager,
Properties properties,
String namespace,
UUID indexUUID)
Constructor used to configure a new named B+Tree.
|
Stream.StreamIndexMetadata(String name,
UUID indexUUID)
Constructor used to configure a new named
BTree. |
Stream.StreamIndexMetadata(UUID indexUUID)
Constructor used to configure a new unnamed
HTree. |
| Modifier and Type | Method and Description |
|---|---|
Stream.StreamIndexMetadata |
clone()
Makes a copy of the persistent data, clearing the address of the
IndexMetadata record on the cloned copy. |
String |
getStreamClassName()
The name of a class derived from
SolutionSetStream that
will be used to re-load the index. |
Stream.CompressionEnum |
getStreamCompressionType() |
void |
readExternal(ObjectInput in) |
void |
setStreamClassName(String className) |
void |
setStreamCompressionType(Stream.CompressionEnum e) |
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, writepublic Stream.StreamIndexMetadata()
IndexMetadata.firstCheckpoint().public Stream.StreamIndexMetadata(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 Stream.StreamIndexMetadata(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 Stream.StreamIndexMetadata(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 getStreamClassName()
SolutionSetStream that
will be used to re-load the index.public void setStreamClassName(String className)
public Stream.CompressionEnum getStreamCompressionType()
public void setStreamCompressionType(Stream.CompressionEnum e)
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 IndexMetadataIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class IndexMetadataIOExceptionpublic Stream.StreamIndexMetadata clone()
IndexMetadataIndexMetadata record on the cloned copy.clone in class IndexMetadataCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.