Java Doc for AbstractLongFPSet.java in  » Web-Crawler » heritrix » org » archive » util » 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 » Web Crawler » heritrix » org.archive.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.archive.util.AbstractLongFPSet

All known Subclasses:   org.archive.util.fingerprint.MemLongFPSet,
AbstractLongFPSet
abstract public class AbstractLongFPSet implements LongFPSet,Serializable(Code)
Shell of functionality for a Set of primitive long fingerprints, held in an array of possibly-empty slots. The implementation of that holding array is delegated to subclasses.

Capacity is always a power of 2.

Fingerprints are already assumed to be well-distributed, so the hashed position for a value is just its high-order bits.
author:
   gojomo
version:
   $Date: 2005-05-06 02:49:04 +0000 (Fri, 06 May 2005) $, $Revision: 3437 $



Field Summary
protected static  byteEMPTY
     A constant used to indicate that a slot in the set storage is empty.
protected  intcapacityPowerOfTwo
    
protected  longcount
    
protected  floatloadFactor
     The load factor, as a fraction.

Constructor Summary
public  AbstractLongFPSet()
    
public  AbstractLongFPSet(int capacityPowerOfTwo, float loadFactor)
     Create a new AbstractLongFPSet with a given capacity and load Factor
Parameters:
  capacityPowerOfTwo - The capacity as the exponent of a power of 2.e.g if the capacity is 4 this means 2^^4entries
Parameters:
  loadFactor - The load factor as a fraction.

Method Summary
public  booleanadd(long val)
    
abstract protected  voidclearAt(long index)
    
public  booleancontains(long val)
    
public  longcount()
     Return the number of entries in this set.
abstract protected  longgetAt(long i)
     Get the stored value at the given slot.
abstract protected  intgetSlotState(long i)
     Check the state of a slot in the storage.
abstract protected  voidmakeSpace()
     Make additional space to keep the load under the target loadFactor level.
public  booleanquickContains(long fp)
     Low-cost, non-definitive (except when true) contains test.
abstract protected  voidrelocate(long value, long fromIndex, long toIndex)
    
public  booleanremove(long l)
    
protected  voidremoveAt(long index)
     Remove the value at the given index, relocating its successors as necessary.
abstract protected  voidsetAt(long i, long l)
     Set the stored value at the given slot.

Field Detail
EMPTY
protected static byte EMPTY(Code)
A constant used to indicate that a slot in the set storage is empty. A zero or positive value means slot is filled



capacityPowerOfTwo
protected int capacityPowerOfTwo(Code)
the capacity of this set, specified as the exponent of a power of 2



count
protected long count(Code)
The current number of elements in the set



loadFactor
protected float loadFactor(Code)
The load factor, as a fraction. This gives the amount of free space to keep in the Set.




Constructor Detail
AbstractLongFPSet
public AbstractLongFPSet()(Code)
To support serialization TODO: verify needed?



AbstractLongFPSet
public AbstractLongFPSet(int capacityPowerOfTwo, float loadFactor)(Code)
Create a new AbstractLongFPSet with a given capacity and load Factor
Parameters:
  capacityPowerOfTwo - The capacity as the exponent of a power of 2.e.g if the capacity is 4 this means 2^^4entries
Parameters:
  loadFactor - The load factor as a fraction. This gives the amountof free space to keep in the Set.




Method Detail
add
public boolean add(long val)(Code)
Add the given value to this set
See Also:   org.archive.util.fingerprint.LongFPSet.add(long)



clearAt
abstract protected void clearAt(long index)(Code)



contains
public boolean contains(long val)(Code)
Does this set contain the given value?
See Also:   org.archive.util.fingerprint.LongFPSet.contains(long)



count
public long count()(Code)
Return the number of entries in this set.
See Also:   org.archive.util.fingerprint.LongFPSet.count



getAt
abstract protected long getAt(long i)(Code)
Get the stored value at the given slot.
Parameters:
  i - the slot index The stored value at the given slot.



getSlotState
abstract protected int getSlotState(long i)(Code)
Check the state of a slot in the storage.
Parameters:
  i - the index of the slot to check -1 if slot is filled; nonegative if full.



makeSpace
abstract protected void makeSpace()(Code)
Make additional space to keep the load under the target loadFactor level. Subclasses may grow or discard entries to satisfy.



quickContains
public boolean quickContains(long fp)(Code)
Low-cost, non-definitive (except when true) contains test. Default answer of false is acceptable.
See Also:   org.archive.util.fingerprint.LongFPSet.quickContains(long)



relocate
abstract protected void relocate(long value, long fromIndex, long toIndex)(Code)



remove
public boolean remove(long l)(Code)



removeAt
protected void removeAt(long index)(Code)
Remove the value at the given index, relocating its successors as necessary.
Parameters:
  index -



setAt
abstract protected void setAt(long i, long l)(Code)
Set the stored value at the given slot.
Parameters:
  i - the slot index
Parameters:
  l - the value to set



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.