|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.customdb.v0_6.impl.WayTileAreaIndexReader
public class WayTileAreaIndexReader
Provides read-only access to a way tile area index store. Each thread accessing the store must create its own reader. The reader maintains all references to heavyweight resources such as file handles used to access the store eliminating the need for objects such as object iterators to be cleaned up explicitly.
Constructor Summary | |
---|---|
WayTileAreaIndexReader(int[] masks,
java.util.List<IndexStoreReader<java.lang.Integer,IntegerLongIndexElement>> indexReaders)
Creates a new instance. |
Method Summary | |
---|---|
java.util.Iterator<java.lang.Long> |
getRange(java.lang.Integer minimumTile,
java.lang.Integer maximumTile)
Returns all elements in the range specified by the minimum and maximum tiles. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WayTileAreaIndexReader(int[] masks, java.util.List<IndexStoreReader<java.lang.Integer,IntegerLongIndexElement>> indexReaders)
masks
- The index masks.indexReaders
- The index readers.Method Detail |
---|
public java.util.Iterator<java.lang.Long> getRange(java.lang.Integer minimumTile, java.lang.Integer maximumTile)
minimumTile
- The minimum tile in the range.maximumTile
- The maximum tile in the range.
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |