Java Doc for BTreeNode.java in  » Database-DBMS » db4o-6.4 » com » db4o » internal » btree » 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 » db4o 6.4 » com.db4o.internal.btree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.db4o.internal.PersistentBase
      com.db4o.internal.btree.BTreeNode

BTreeNode
final public class BTreeNode extends PersistentBase (Code)
We work with BTreeNode in two states: - deactivated: never read, no valid members, ID correct or 0 if new - write: real representation of keys, values and children in arrays The write state can be detected with canWrite(). States can be changed as needed with prepareRead() and prepareWrite().


Field Summary
final  BTree_btree
    

Constructor Summary
public  BTreeNode(BTree btree, int count, boolean isLeaf, int parentID, int previousID, int nextID)
    
public  BTreeNode(int id, BTree btree)
    
public  BTreeNode(Transaction trans, BTreeNode firstChild, BTreeNode secondChild)
    

Method Summary
public  BTreeNodeadd(Transaction trans, Object obj)
    
public  BTreebtree()
    
public  booleancanWrite()
    
 BTreeNodechild(int index)
    
 BTreeNodechild(Buffer reader, int index)
    
 voidcommit(Transaction trans)
    
 voidcommitOrRollback(Transaction trans, boolean isCommit)
    
public  intcount()
    
public  voiddebugLoadFully(Transaction trans)
    
public static  voiddefragIndex(BufferPair readers, Indexable4 keyHandler)
    
public  booleanequals(Object obj)
    
public  intfirstKeyIndex(Transaction trans)
    
 BTreePointerfirstPointer(Transaction trans)
    
public  voidfree(Transaction trans)
    
public  bytegetIdentifier()
    
public  inthashCode()
    
 voidholdChildrenAsIDs()
    
public  booleanindexIsValid(Transaction trans, int index)
    
public  booleanisFreespaceComponent()
    
public  booleanisLeaf()
    
 Objectkey(int index)
    
 Objectkey(Transaction trans, Buffer reader, int index)
    
 Objectkey(Transaction trans, int index)
    
public  intlastKeyIndex(Transaction trans)
    
public  BTreePointerlastPointer(Transaction trans)
    
 voidmarkAsCached(int height)
    
public  BTreeNodenextNode()
    
public  intownLength()
    
 BufferprepareRead(Transaction trans)
    
 voidprepareWrite(Transaction trans)
    
public  BTreeNodepreviousNode()
    
 voidpurge()
    
public  voidreadThis(Transaction trans, Buffer reader)
    
public  voidremove(Transaction trans, Object obj, int index)
    
 voidrollback(Transaction trans)
    
 BTreeNodeSearchResultsearchLeaf(Transaction trans, SearchTarget target)
    
public  StringtoString()
    
 voidtraverseAllNodes(Transaction trans, Visitor4 command)
    
public  voidtraverseKeys(Transaction trans, Visitor4 visitor)
    
public  booleanwriteObjectBegin()
    
public  voidwriteThis(Transaction trans, Buffer a_writer)
    

Field Detail
_btree
final BTree _btree(Code)




Constructor Detail
BTreeNode
public BTreeNode(BTree btree, int count, boolean isLeaf, int parentID, int previousID, int nextID)(Code)



BTreeNode
public BTreeNode(int id, BTree btree)(Code)



BTreeNode
public BTreeNode(Transaction trans, BTreeNode firstChild, BTreeNode secondChild)(Code)




Method Detail
add
public BTreeNode add(Transaction trans, Object obj)(Code)
the split node if this node is splitor this if the first key has changed



btree
public BTree btree()(Code)



canWrite
public boolean canWrite()(Code)



child
BTreeNode child(int index)(Code)



child
BTreeNode child(Buffer reader, int index)(Code)



commit
void commit(Transaction trans)(Code)



commitOrRollback
void commitOrRollback(Transaction trans, boolean isCommit)(Code)



count
public int count()(Code)



debugLoadFully
public void debugLoadFully(Transaction trans)(Code)



defragIndex
public static void defragIndex(BufferPair readers, Indexable4 keyHandler)(Code)



equals
public boolean equals(Object obj)(Code)



firstKeyIndex
public int firstKeyIndex(Transaction trans)(Code)



firstPointer
BTreePointer firstPointer(Transaction trans)(Code)



free
public void free(Transaction trans)(Code)



getIdentifier
public byte getIdentifier()(Code)



hashCode
public int hashCode()(Code)



holdChildrenAsIDs
void holdChildrenAsIDs()(Code)



indexIsValid
public boolean indexIsValid(Transaction trans, int index)(Code)



isFreespaceComponent
public boolean isFreespaceComponent()(Code)



isLeaf
public boolean isLeaf()(Code)



key
Object key(int index)(Code)



key
Object key(Transaction trans, Buffer reader, int index)(Code)



key
Object key(Transaction trans, int index)(Code)



lastKeyIndex
public int lastKeyIndex(Transaction trans)(Code)



lastPointer
public BTreePointer lastPointer(Transaction trans)(Code)



markAsCached
void markAsCached(int height)(Code)



nextNode
public BTreeNode nextNode()(Code)



ownLength
public int ownLength()(Code)



prepareRead
Buffer prepareRead(Transaction trans)(Code)



prepareWrite
void prepareWrite(Transaction trans)(Code)



previousNode
public BTreeNode previousNode()(Code)



purge
void purge()(Code)



readThis
public void readThis(Transaction trans, Buffer reader)(Code)



remove
public void remove(Transaction trans, Object obj, int index)(Code)



rollback
void rollback(Transaction trans)(Code)



searchLeaf
BTreeNodeSearchResult searchLeaf(Transaction trans, SearchTarget target)(Code)



toString
public String toString()(Code)



traverseAllNodes
void traverseAllNodes(Transaction trans, Visitor4 command)(Code)
This traversal goes over all nodes, not just leafs



traverseKeys
public void traverseKeys(Transaction trans, Visitor4 visitor)(Code)



writeObjectBegin
public boolean writeObjectBegin()(Code)



writeThis
public void writeThis(Transaction trans, Buffer a_writer)(Code)



Fields inherited from com.db4o.internal.PersistentBase
protected int _id(Code)(Java Doc)
protected int _state(Code)(Java Doc)

Methods inherited from com.db4o.internal.PersistentBase
final public boolean beginProcessing()(Code)(Java Doc)
public void endProcessing()(Code)(Java Doc)
public void free(Transaction trans)(Code)(Java Doc)
public int getID()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public boolean isActive()(Code)(Java Doc)
public boolean isDirty()(Code)(Java Doc)
public boolean isFreespaceComponent()(Code)(Java Doc)
final public boolean isNew()(Code)(Java Doc)
public int linkLength()(Code)(Java Doc)
public void read(Transaction trans)(Code)(Java Doc)
public void setID(int a_id)(Code)(Java Doc)
final public void setStateClean()(Code)(Java Doc)
final public void setStateDeactivated()(Code)(Java Doc)
public void setStateDirty()(Code)(Java Doc)
final public void write(Transaction trans)(Code)(Java Doc)
public boolean writeObjectBegin()(Code)(Java Doc)
public void writeOwnID(Transaction trans, Buffer writer)(Code)(Java Doc)

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.