Package 

Class DefaultRegionCache

  • 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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      RegionEntity get() 加载全部区域列表,按照行政区域划分构建树状结构关系
      Map<Long, RegionEntity> getCache() 加载区域map结构, key是区域id, 值是区域实体
      Unit addRegionEntity(RegionEntity entity) 新增一个region信息
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait