public class MetadataIndexView extends DelegateIndex implements IMetadataIndex
IMetadataIndex are implemented by
this class.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
MetadataIndexView(AbstractBTree delegate) |
| Modifier and Type | Method and Description |
|---|---|
PartitionLocator |
find(byte[] key)
The method is used to discover the locator for the index partition within
which the key would be found.
|
PartitionLocator |
get(byte[] key)
The partition with that separator key or
null (exact match
on the separator key). |
MetadataIndex.MetadataIndexMetadata |
getIndexMetadata()
The metadata for the index.
|
IndexMetadata |
getScaleOutIndexMetadata()
The metadata template for the scale-out index managed by this metadata
index.
|
void |
staleLocator(PartitionLocator locator)
Remove the locator from the
locatorCache. |
contains, contains, getCounter, getCounters, getResourceMetadata, insert, insert, lookup, lookup, putIfAbsent, rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator, remove, remove, submit, submit, submit, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIteratorpublic MetadataIndexView(AbstractBTree delegate)
public MetadataIndex.MetadataIndexMetadata getIndexMetadata()
IIndex
Note: The same method is exposed by ICheckpointProtocol. It is
also exposed here in order to provide access to the IndexMetadata
to remote clients in the scale-out architecture.
getIndexMetadata in interface IIndexgetIndexMetadata in interface IMetadataIndexgetIndexMetadata in class DelegateIndexICheckpointProtocol.getIndexMetadata()public IndexMetadata getScaleOutIndexMetadata()
IMetadataIndexgetScaleOutIndexMetadata in interface IMetadataIndexpublic PartitionLocator get(byte[] key)
IMetadataIndexnull (exact match
on the separator key).get in interface IMetadataIndexkey - The separator key (the first key that would go into that
partition).null.public PartitionLocator find(byte[] key)
find in interface IMetadataIndexkey - A key (optional). When null the locator for the
last index partition will be returned.null if
there are no partitions defined.public void staleLocator(PartitionLocator locator)
locatorCache. It will be re-read on
demand from the delegate.staleLocator in interface IMetadataIndexlocator - The locator.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.