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