-
- All Implemented Interfaces:
-
org.bitlap.geocoding.core.RegionCache
public class DefaultRegionCache implements RegionCache
Desc: 默认 RegionEntity 获取的缓存类 默认从 region.dat 中获取 Mail: chk19940609@gmail.com Created by IceMimosa Date: 2017/1/12
-
-
Constructor Summary
Constructors Constructor Description DefaultRegionCache(String dataClassPath)
-
Method Summary
Modifier and Type Method Description RegionEntityget()加载全部区域列表,按照行政区域划分构建树状结构关系 Map<Long, RegionEntity>getCache()加载区域map结构, key是区域id, 值是区域实体 UnitaddRegionEntity(RegionEntity entity)新增一个region信息 -
-
Constructor Detail
-
DefaultRegionCache
DefaultRegionCache(String dataClassPath)
-
-
Method Detail
-
get
RegionEntity get()
加载全部区域列表,按照行政区域划分构建树状结构关系
-
getCache
Map<Long, RegionEntity> getCache()
加载区域map结构, key是区域id, 值是区域实体
-
addRegionEntity
Unit addRegionEntity(RegionEntity entity)
新增一个region信息
-
-
-
-