类 MapCache

java.lang.Object
com.sh.wf.excel.cache.MapCache
所有已实现的接口:
ReadCache

public class MapCache extends Object implements ReadCache
Putting temporary data directly into a map is a little more efficient but very memory intensive
  • 构造器详细资料

    • MapCache

      public MapCache()
  • 方法详细资料

    • init

      public void init(AnalysisContext analysisContext)
      从接口复制的说明: ReadCache
      Initialize cache
      指定者:
      init 在接口中 ReadCache
      参数:
      analysisContext - A context is the main anchorage point of a excel reader.
    • put

      public void put(String value)
      从接口复制的说明: ReadCache
      Automatically generate the key and put it in the cache.Key start from 0
      指定者:
      put 在接口中 ReadCache
      参数:
      value - Cache value
    • get

      public String get(Integer key)
      从接口复制的说明: ReadCache
      Get value
      指定者:
      get 在接口中 ReadCache
      参数:
      key - Index
      返回:
      Value
    • putFinished

      public void putFinished()
      从接口复制的说明: ReadCache
      It's called when all the values are put in
      指定者:
      putFinished 在接口中 ReadCache
    • destroy

      public void destroy()
      从接口复制的说明: ReadCache
      Called when the excel read is complete
      指定者:
      destroy 在接口中 ReadCache