|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.DelegateIndex
com.bigdata.mdi.MetadataIndexView
public class MetadataIndexView
The extension semantics for the IMetadataIndex are implemented by
this class.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Fields inherited from interface com.bigdata.btree.IRangeQuery |
|---|
ALL, CURSOR, DEFAULT, DELETED, FIXED_LENGTH_SUCCESSOR, KEYS, NONE, PARALLEL, READONLY, REMOVEALL, REVERSE, VALS |
| Constructor Summary | |
|---|---|
MetadataIndexView(AbstractBTree delegate)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.bigdata.btree.DelegateIndex |
|---|
contains, contains, getCounter, getCounters, getResourceMetadata, insert, insert, lookup, lookup, rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator, remove, remove, submit, submit, submit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.bigdata.btree.IRangeQuery |
|---|
rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public MetadataIndexView(AbstractBTree delegate)
| Method Detail |
|---|
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()
IMetadataIndex
getScaleOutIndexMetadata 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||