Java Doc for BaseHashMap.java in  » Database-DBMS » hsql » org » hsqldb » store » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » hsql » org.hsqldb.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.store.BaseHashMap

All known Subclasses:   org.hsqldb.store.ObjectCacheHashMap,  org.hsqldb.lib.IntKeyIntValueHashMap,  org.hsqldb.lib.HashMap,  org.hsqldb.lib.IntValueHashMap,  org.hsqldb.lib.IntKeyLongValueHashMap,  org.hsqldb.lib.HashSet,  org.hsqldb.lib.IntKeyHashMap,  org.hsqldb.lib.LongKeyIntValueHashMap,  org.hsqldb.store.ValuePoolHashMap,
BaseHashMap
public class BaseHashMap (Code)

Inner Class :protected class BaseHashIterator implements org.hsqldb.lib.Iterator

Field Summary
final protected static  intNO_PURGE
    
final protected static  intPURGE_ALL
    
final protected static  intPURGE_HALF
    
final protected static  intPURGE_QUARTER
    
 intaccessCount
    
 intaccessMin
    
 int[]accessTable
    
 booleanhasZeroKey
    
protected  HashIndexhashIndex
    
final  intinitialCapacity
    
final protected static  intintKeyOrValue
    
protected  int[]intKeyTable
    
protected  int[]intValueTable
    
 booleanisIntKey
     Base class for hash tables or sets.
 booleanisIntValue
    
 booleanisLongKey
    
 booleanisLongValue
    
 booleanisNoValue
    
 booleanisObjectKey
    
 booleanisObjectValue
    
final  floatloadFactor
    
final protected static  intlongKeyOrValue
    
protected  long[]longKeyTable
    
protected  long[]longValueTable
    
 intmaxCapacity
    
protected  booleanminimizeOnEmpty
    
final protected static  intnoKeyOrValue
    
final protected static  intobjectKeyOrValue
    
protected  Object[]objectKeyTable
    
protected  Object[]objectValueTable
    
protected  intpurgePolicy
    
 intthreshold
    
 intzeroKeyIndex
    

Constructor Summary
protected  BaseHashMap(int initialCapacity, float loadFactor, int keyType, int valueType, boolean hasAccessCount)
    

Method Summary
protected  ObjectaddOrRemove(long longKey, long longValue, Object objectKey, Object objectValue, boolean remove)
    
protected  ObjectaddOrRemove(int intKey, Object objectValue, boolean remove)
    
public  voidclear()
     Clear the map completely.
protected  voidclear(int count, int margin)
     Clear approximately count elements from the map, starting with those with low accessTable ranking.
protected  booleancontainsKey(Object key)
    
protected  booleancontainsKey(int key)
    
protected  booleancontainsKey(long key)
    
protected  booleancontainsValue(Object value)
    
protected  intgetAccessCountCeiling(int count, int margin)
     Return the max accessCount value for count elements with the lowest access count.
protected  intgetLookup(Object key, int hash)
    
protected  intgetLookup(int key)
    
protected  intgetLookup(long key)
    
public  booleanisEmpty()
    
 intnextLookup(int lookup, int limitLookup, boolean hasZeroKey, int zeroKeyIndex)
    
protected  intnextLookup(int lookup)
    
protected  voidrehash(int newCapacity)
     rehash uses existing key and element arrays.
 voidremoveFromElementArrays(int lookup)
    
protected  ObjectremoveLookup(int lookup)
    
protected  ObjectremoveObject(Object objectKey)
    
protected  voidremoveRow(int lookup)
    
protected  booleanreset()
    
 voidresetAccessCount()
    
public  intsize()
    

Field Detail
NO_PURGE
final protected static int NO_PURGE(Code)



PURGE_ALL
final protected static int PURGE_ALL(Code)



PURGE_HALF
final protected static int PURGE_HALF(Code)



PURGE_QUARTER
final protected static int PURGE_QUARTER(Code)



accessCount
int accessCount(Code)



accessMin
int accessMin(Code)



accessTable
int[] accessTable(Code)



hasZeroKey
boolean hasZeroKey(Code)



hashIndex
protected HashIndex hashIndex(Code)



initialCapacity
final int initialCapacity(Code)



intKeyOrValue
final protected static int intKeyOrValue(Code)



intKeyTable
protected int[] intKeyTable(Code)



intValueTable
protected int[] intValueTable(Code)



isIntKey
boolean isIntKey(Code)
Base class for hash tables or sets. The exact type of the structure is defined by the constructor. Each instance has at least a keyTable array and a HashIndex instance for looking up the keys into this table. Instances that are maps also have a valueTable the same size as the keyTable. Special getOrAddXXX() methods are used for object maps in some subclasses.
author:
   fredt@users
version:
   1.8.0
since:
   1.7.2



isIntValue
boolean isIntValue(Code)



isLongKey
boolean isLongKey(Code)



isLongValue
boolean isLongValue(Code)



isNoValue
boolean isNoValue(Code)



isObjectKey
boolean isObjectKey(Code)



isObjectValue
boolean isObjectValue(Code)



loadFactor
final float loadFactor(Code)



longKeyOrValue
final protected static int longKeyOrValue(Code)



longKeyTable
protected long[] longKeyTable(Code)



longValueTable
protected long[] longValueTable(Code)



maxCapacity
int maxCapacity(Code)



minimizeOnEmpty
protected boolean minimizeOnEmpty(Code)



noKeyOrValue
final protected static int noKeyOrValue(Code)



objectKeyOrValue
final protected static int objectKeyOrValue(Code)



objectKeyTable
protected Object[] objectKeyTable(Code)



objectValueTable
protected Object[] objectValueTable(Code)



purgePolicy
protected int purgePolicy(Code)



threshold
int threshold(Code)



zeroKeyIndex
int zeroKeyIndex(Code)




Constructor Detail
BaseHashMap
protected BaseHashMap(int initialCapacity, float loadFactor, int keyType, int valueType, boolean hasAccessCount) throws IllegalArgumentException(Code)




Method Detail
addOrRemove
protected Object addOrRemove(long longKey, long longValue, Object objectKey, Object objectValue, boolean remove)(Code)
generic method for adding or removing keys



addOrRemove
protected Object addOrRemove(int intKey, Object objectValue, boolean remove)(Code)
type-specific method for adding or removing keys in int->Object maps



clear
public void clear()(Code)
Clear the map completely.



clear
protected void clear(int count, int margin)(Code)
Clear approximately count elements from the map, starting with those with low accessTable ranking. Only for maps with Object key table



containsKey
protected boolean containsKey(Object key)(Code)



containsKey
protected boolean containsKey(int key)(Code)



containsKey
protected boolean containsKey(long key)(Code)



containsValue
protected boolean containsValue(Object value)(Code)



getAccessCountCeiling
protected int getAccessCountCeiling(int count, int margin)(Code)
Return the max accessCount value for count elements with the lowest access count. Always return at least accessMin + 1



getLookup
protected int getLookup(Object key, int hash)(Code)



getLookup
protected int getLookup(int key)(Code)



getLookup
protected int getLookup(long key)(Code)



isEmpty
public boolean isEmpty()(Code)



nextLookup
int nextLookup(int lookup, int limitLookup, boolean hasZeroKey, int zeroKeyIndex)(Code)
find the next lookup in the key/value tables with an entry allows the use of old limit and zero int key attributes



nextLookup
protected int nextLookup(int lookup)(Code)
find the next lookup in the key/value tables with an entry uses current limits and zero integer key state



rehash
protected void rehash(int newCapacity)(Code)
rehash uses existing key and element arrays. key / value pairs are put back into the arrays from the top, removing any gaps. any redundant key / value pairs duplicated at the end of the array are then cleared. newCapacity must be larger or equal to existing number of elements.



removeFromElementArrays
void removeFromElementArrays(int lookup)(Code)
move the elements after a removed key / value pair to fill the gap



removeLookup
protected Object removeLookup(int lookup)(Code)



removeObject
protected Object removeObject(Object objectKey)(Code)
type specific method for Object sets or Object->Object maps



removeRow
protected void removeRow(int lookup)(Code)
row must already been freed of key / element



reset
protected boolean reset()(Code)



resetAccessCount
void resetAccessCount()(Code)



size
public int size()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.