public class IndexSegmentIndex extends BTree
BTree mapping IndexSegmentStore createTimes to
IResourceMetadata records. The keys are the long integers
(commitTimes) followed by the index segment UUID to break ties (this is not
the scale-out index UUID, but the UUID of the specific index segment). The
values are IResourceMetadata objects.
Note: Access to this object MUST be synchronized.
Note: This is used as a transient data structure that is populated from the
file system by the ResourceManager.
BTree.Counter, BTree.LeafCursor, BTree.NodeFactory, BTree.PartitionedCounter, BTree.StackAbstractBTree.IBTreeCounterscounter, height, nentries, nleaves, nnodes, recordVersionbranchingFactor, debug, DEBUG, dumpLog, error, ERROR_CLOSED, ERROR_ERROR_STATE, ERROR_LESS_THAN_ZERO, ERROR_READ_ONLY, ERROR_TOO_LARGE, ERROR_TRANSIENT, INFO, log, metadata, ndistinctOnWriteRetentionQueue, nodeSer, readOnly, root, store, storeCache, writeRetentionQueue| Constructor and Description |
|---|
IndexSegmentIndex(IRawStore store,
Checkpoint checkpoint,
IndexMetadata metadata,
boolean readOnly)
Load from the store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SegmentMetadata resourceMetadata)
Add an entry under the commitTime and resource UUID associated with the
IResourceMetadata record. |
static IndexSegmentIndex |
createTransient()
Create a transient instance.
|
protected byte[] |
getKey(long commitTime,
UUID uuid)
Encodes the commit time into a key.
|
_reopen, asReadOnly, create, createTransient, createViewCheckpoint, fireDirtyEvent, getBloomFilter, getCheckpoint, getCounter, getDirtyListener, getEntryCount, getHeight, getLastCommitTime, getLeafCount, getMetadataAddr, getMutableBTree, getNodeCount, getRecordVersion, getRevisionTimestamp, getRootAddr, getSourceCount, getSources, getStore, handleCommit, invalidate, load, needsCheckpoint, newLeafCursor, newLeafCursor, readBloomFilter, removeAll, setDirtyListener, setIndexMetadata, setLastCommitTime, writeCheckpoint, writeCheckpoint2assertNotReadOnly, assertNotTransient, close, contains, contains, decodeRecordAddr, dump, dump, dumpPages, encodeRecordAddr, getBranchingFactor, getBtreeCounters, getContainsTuple, getCounters, getIndexMetadata, getLevel, getLevel, getLookupTuple, getNodeSerializer, getReadLockCount, getResourceMetadata, getRightMostNode, getRoot, getRootOrFinger, getStatistics, getUtilization, getWriteTuple, indexOf, insert, insert, insert, isBalanced, isOpen, isReadOnly, isTransient, keyAt, lookup, lookup, lookup, putIfAbsent, rangeCheck, rangeCopy, rangeCount, rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator, rangeIterator, rangeIterator, readLock, readNodeOrLeaf, recycle, remove, remove, remove, reopen, scan, setBTreeCounters, submit, submit, submit, toString, touch, valueAt, valueAt, writeLock, writeNodeOrLeaf, writeNodeRecursive, writeNodeRecursiveCallersThread, writeNodeRecursiveConcurrentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, dumpPages, getIndexMetadata, isOpen, reopengetCountersrangeCount, scangetReadLockCount, isReadOnly, readLock, writeLockpublic IndexSegmentIndex(IRawStore store, Checkpoint checkpoint, IndexMetadata metadata, boolean readOnly)
store - The backing store.checkpoint - The Checkpoint record.metadata - The metadata record for the index.public static IndexSegmentIndex createTransient()
protected byte[] getKey(long commitTime,
UUID uuid)
commitTime - The commit time.The - UUID of the resource.public void add(SegmentMetadata resourceMetadata)
IResourceMetadata record.resourceMetadata - The IResourceMetadata record.IllegalArgumentException - if commitTime is 0L.IllegalArgumentException - if resourceMetadata is null.IllegalArgumentException - if there is already an entry registered under for the
given timestamp.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.