Package oracle.spatial.network.lod
Interface CachingHandler
-
- All Known Implementing Classes:
LRUCachingHandler
public interface CachingHandler
This interface defines methods supported by a caching handler.- Since:
- 11gR1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
clone()
Creates and returns a copy of this CachingHandler object.int[]
getPartitionsToFlushOut(java.util.Collection<java.lang.Integer> residentPartitions, int minNumNodesToFlushOut)
Returns the IDs of the partitions to be flushed out.void
updateRank(LogicalPartition partition)
Updates the rank of the partition in the cache.
-
-
-
Method Detail
-
getPartitionsToFlushOut
int[] getPartitionsToFlushOut(java.util.Collection<java.lang.Integer> residentPartitions, int minNumNodesToFlushOut) throws LODNetworkException
Returns the IDs of the partitions to be flushed out.- Parameters:
residentPartitions
- resident partitions, which are the partitions to be excluded from the returned list.- Returns:
- IDs of the partitions to be flushed out.
- Throws:
LODNetworkException
-
updateRank
void updateRank(LogicalPartition partition)
Updates the rank of the partition in the cache. The rank will be used to determine which partitions to be flushed out of the cache when getPartitionsToFlushOut() is called.- Parameters:
partition
- the partition object whose rank is to be updated
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedException
Creates and returns a copy of this CachingHandler object.- Returns:
- Throws:
java.lang.CloneNotSupportedException
-
-