tigase.pubsub.utils
Class FragmentedMap<KEY,VALUE>

java.lang.Object
  extended by tigase.pubsub.utils.FragmentedMap<KEY,VALUE>

public class FragmentedMap<KEY,VALUE>
extends Object


Constructor Summary
FragmentedMap(int maxFragmentSize)
           
 
Method Summary
 void addFragment(Map<KEY,VALUE> fragment)
           
 void cleanChangingLog()
           
 void clear()
           
 void defragment()
           
 VALUE get(KEY key)
           
 Collection<VALUE> getAllValues()
           
 Set<Integer> getChangedFragmentIndexes()
           
 Map<KEY,VALUE> getFragment(int index)
           
 int getFragmentsCount()
           
protected  Map<KEY,VALUE> getFragmentToNewData()
           
protected  Map<KEY,VALUE> getFragmentWithKey(KEY key)
           
 Map<KEY,VALUE> getMap()
           
 Set<Integer> getRemovedFragmentIndexes()
           
static void main(String[] args)
           
 VALUE put(KEY key, VALUE value)
           
 void putAll(Map<KEY,VALUE> fragment)
           
 VALUE remove(KEY key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentedMap

public FragmentedMap(int maxFragmentSize)
Method Detail

main

public static void main(String[] args)

addFragment

public void addFragment(Map<KEY,VALUE> fragment)

cleanChangingLog

public void cleanChangingLog()

clear

public void clear()

defragment

public void defragment()

get

public VALUE get(KEY key)

getAllValues

public Collection<VALUE> getAllValues()

getChangedFragmentIndexes

public Set<Integer> getChangedFragmentIndexes()

getFragment

public Map<KEY,VALUE> getFragment(int index)

getFragmentsCount

public int getFragmentsCount()

getFragmentToNewData

protected Map<KEY,VALUE> getFragmentToNewData()

getFragmentWithKey

protected Map<KEY,VALUE> getFragmentWithKey(KEY key)

getMap

public Map<KEY,VALUE> getMap()

getRemovedFragmentIndexes

public Set<Integer> getRemovedFragmentIndexes()

put

public VALUE put(KEY key,
                 VALUE value)

putAll

public void putAll(Map<KEY,VALUE> fragment)

remove

public VALUE remove(KEY key)


Copyright © 2008-2012 Tigase. All Rights Reserved.