org.mapdb
Class DB.HTreeSetMaker

java.lang.Object
  extended by org.mapdb.DB.HTreeSetMaker
Enclosing class:
DB

public class DB.HTreeSetMaker
extends Object


Field Summary
protected  boolean counter
           
protected  long expire
           
protected  long expireAccess
           
protected  long expireMaxSize
           
protected  long expireStoreSize
           
protected  Hasher<?> hasher
           
protected  String name
           
protected  Serializer<?> serializer
           
 
Constructor Summary
DB.HTreeSetMaker(String name)
           
 
Method Summary
 DB.HTreeSetMaker counterEnable()
          by default collection does not have counter, without counter updates are faster, but entire collection needs to be traversed to count items.
 DB.HTreeSetMaker expireAfterAccess(long interval)
          Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
 DB.HTreeSetMaker expireAfterAccess(long interval, TimeUnit timeUnit)
          Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
 DB.HTreeSetMaker expireAfterWrite(long interval)
          Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
 DB.HTreeSetMaker expireAfterWrite(long interval, TimeUnit timeUnit)
          Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
 DB.HTreeSetMaker expireMaxSize(long maxSize)
          maximal number of entries in this map.
 DB.HTreeSetMaker expireStoreSize(double maxStoreSize)
          maximal size of store in GB, if store is larger entries will start expiring
 DB.HTreeSetMaker hasher(Hasher<?> hasher)
           
<K> Set<K>
make()
           
<K> Set<K>
makeOrGet()
           
 DB.HTreeSetMaker serializer(Serializer<?> serializer)
          keySerializer used to convert keys into/from binary form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

counter

protected boolean counter

serializer

protected Serializer<?> serializer

expireMaxSize

protected long expireMaxSize

expireStoreSize

protected long expireStoreSize

expire

protected long expire

expireAccess

protected long expireAccess

hasher

protected Hasher<?> hasher
Constructor Detail

DB.HTreeSetMaker

public DB.HTreeSetMaker(String name)
Method Detail

counterEnable

public DB.HTreeSetMaker counterEnable()
by default collection does not have counter, without counter updates are faster, but entire collection needs to be traversed to count items.


serializer

public DB.HTreeSetMaker serializer(Serializer<?> serializer)
keySerializer used to convert keys into/from binary form.


expireMaxSize

public DB.HTreeSetMaker expireMaxSize(long maxSize)
maximal number of entries in this map. Less used entries will be expired and removed to make collection smaller


expireStoreSize

public DB.HTreeSetMaker expireStoreSize(double maxStoreSize)
maximal size of store in GB, if store is larger entries will start expiring


expireAfterWrite

public DB.HTreeSetMaker expireAfterWrite(long interval,
                                         TimeUnit timeUnit)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.


expireAfterWrite

public DB.HTreeSetMaker expireAfterWrite(long interval)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.


expireAfterAccess

public DB.HTreeSetMaker expireAfterAccess(long interval,
                                          TimeUnit timeUnit)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access. Access time is reset by all map read and write operations


expireAfterAccess

public DB.HTreeSetMaker expireAfterAccess(long interval)
Specifies that each entry should be automatically removed from the map once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access. Access time is reset by all map read and write operations


hasher

public DB.HTreeSetMaker hasher(Hasher<?> hasher)

make

public <K> Set<K> make()

makeOrGet

public <K> Set<K> makeOrGet()


Copyright © 2014. All Rights Reserved.