public interface IndexEntryAccessor<S extends Storable> extends IndexInfo
IndexEntryAccessCapability
Modifier and Type | Method and Description |
---|---|
void |
copyFromMaster(Storable indexEntry,
S master)
Sets all the properties of the given index entry, using the applicable
properties of the given master.
|
void |
copyToMasterPrimaryKey(Storable indexEntry,
S master)
Sets all the primary key properties of the given master, using the
applicable properties of the given index entry.
|
java.util.Comparator<? extends Storable> |
getComparator()
Returns a comparator for ordering index entries.
|
Storage<?> |
getIndexEntryStorage()
Returns the index entry storage.
|
boolean |
isConsistent(Storable indexEntry,
S master)
Returns true if the properties of the given index entry match those
contained in the master, exluding any version property.
|
void |
repair(double desiredSpeed)
Repairs the index by inserting missing entries and fixing
inconsistencies.
|
getName, getPropertyDirections, getPropertyNames, isClustered, isUnique
Storage<?> getIndexEntryStorage()
void copyToMasterPrimaryKey(Storable indexEntry, S master) throws FetchException
indexEntry
- source of property valuesmaster
- master whose primary key properties will be setFetchException
void copyFromMaster(Storable indexEntry, S master) throws FetchException
indexEntry
- index entry whose properties will be setmaster
- source of property valuesFetchException
boolean isConsistent(Storable indexEntry, S master) throws FetchException
indexEntry
- index entry whose properties will be testedmaster
- source of property valuesFetchException
void repair(double desiredSpeed) throws RepositoryException
desiredSpeed
- throttling parameter - 1.0 = full speed, 0.5 = half
speed, 0.1 = one-tenth speed, etcRepositoryException
java.util.Comparator<? extends Storable> getComparator()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.