@Override public MapReadResult readMapData(Tile tile) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(tile)) { return mdb.readMapData(tile); } } return null; case RETURN_ALL: return readMapData(tile, false); case DEDUPLICATE: return readMapData(tile, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }
@Override public MapReadResult readMapData(Tile upperLeft, Tile lowerRight) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(upperLeft)) { return mdb.readMapData(upperLeft, lowerRight); } } return null; case RETURN_ALL: return readMapData(upperLeft, lowerRight, false); case DEDUPLICATE: return readMapData(upperLeft, lowerRight, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }
@Override public MapReadResult readMapData(Tile tile) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(tile)) { return mdb.readMapData(tile); } } return null; case RETURN_ALL: return readMapData(tile, false); case DEDUPLICATE: return readMapData(tile, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }
@Override public MapReadResult readMapData(Tile upperLeft, Tile lowerRight) { switch (this.dataPolicy) { case RETURN_FIRST: for (MapDataStore mdb : mapDatabases) { if (mdb.supportsTile(upperLeft)) { return mdb.readMapData(upperLeft, lowerRight); } } return null; case RETURN_ALL: return readMapData(upperLeft, lowerRight, false); case DEDUPLICATE: return readMapData(upperLeft, lowerRight, true); } throw new IllegalStateException("Invalid data policy for multi map database"); }