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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator
public 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 IIndex
getIndexMetadata
in interface IMetadataIndex
getIndexMetadata
in class DelegateIndex
ICheckpointProtocol.getIndexMetadata()
public IndexMetadata getScaleOutIndexMetadata()
IMetadataIndex
getScaleOutIndexMetadata
in interface IMetadataIndex
public PartitionLocator get(byte[] key)
IMetadataIndex
null
(exact match
on the separator key).get
in interface IMetadataIndex
key
- The separator key (the first key that would go into that
partition).null
.public PartitionLocator find(byte[] key)
find
in interface IMetadataIndex
key
- 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 IMetadataIndex
locator
- The locator.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.