Java Doc for BtreeIndex.java in  » Database-DBMS » h2database » org » h2 » index » 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 » h2database » org.h2.index 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.h2.index.BaseIndex
   org.h2.index.BtreeIndex

BtreeIndex
public class BtreeIndex extends BaseIndex implements RecordReader(Code)
This is the most common type of index, a b tree index. The index structure is:
  • There is one BtreeHead that points to the root page. The head always stays where it is.
  • There is a number of BtreePage s. Each page is either a BtreeNode or a BtreeLeaf .
  • A node page links to other leaf pages or to node pages. Leaf pages don't point to other pages (but may have a parent).
  • The uppermost page is the root page. If pages are added or deleted, the root page may change.
Only the data of the indexed columns are stored in the index.



Constructor Summary
public  BtreeIndex(Session session, TableData table, int id, String indexName, IndexColumn[] columns, IndexType indexType, int headPos)
    

Method Summary
public  voidadd(Session session, Row r)
    
 voidaddPage(Session session, Record p)
    
public  booleancanFindNext()
    
public  booleancanGetFirstOrLast()
    
public  voidcheckRename()
    
public  voidclose(Session session)
    
 voiddeletePage(Session session, Record p)
    
public  Cursorfind(Session session, SearchRow first, SearchRow last)
    
public  SearchRowfindFirstOrLast(Session session, boolean first)
    
public  CursorfindNext(Session session, SearchRow first, SearchRow last)
    
public  voidflush(Session session)
    
public  doublegetCost(Session session, int[] masks)
    
public  intgetHeadPos()
    
public  longgetLastChange()
    
public  intgetLookupCost(int rowCount)
    
public  BtreePagegetPage(Session session, int i)
    
public  intgetRecordOverhead()
    
public  RowgetRow(Session session, int pos)
    
 SearchRowgetSearchRow(Row row)
    
public  booleanneedRebuild()
    
public  Recordread(Session session, DataPage s)
    
 ObjectArrayreadRowArray(DataPage s)
    
public  voidremove(Session session)
    
public  voidremove(Session session, Row row)
    
public  voidtruncate(Session session)
    
 voidupdatePage(Session session, Record p)
    


Constructor Detail
BtreeIndex
public BtreeIndex(Session session, TableData table, int id, String indexName, IndexColumn[] columns, IndexType indexType, int headPos) throws SQLException(Code)




Method Detail
add
public void add(Session session, Row r) throws SQLException(Code)



addPage
void addPage(Session session, Record p) throws SQLException(Code)



canFindNext
public boolean canFindNext()(Code)



canGetFirstOrLast
public boolean canGetFirstOrLast()(Code)



checkRename
public void checkRename() throws SQLException(Code)



close
public void close(Session session) throws SQLException(Code)



deletePage
void deletePage(Session session, Record p) throws SQLException(Code)



find
public Cursor find(Session session, SearchRow first, SearchRow last) throws SQLException(Code)



findFirstOrLast
public SearchRow findFirstOrLast(Session session, boolean first) throws SQLException(Code)



findNext
public Cursor findNext(Session session, SearchRow first, SearchRow last) throws SQLException(Code)



flush
public void flush(Session session) throws SQLException(Code)



getCost
public double getCost(Session session, int[] masks) throws SQLException(Code)



getHeadPos
public int getHeadPos()(Code)



getLastChange
public long getLastChange()(Code)



getLookupCost
public int getLookupCost(int rowCount)(Code)



getPage
public BtreePage getPage(Session session, int i) throws SQLException(Code)



getRecordOverhead
public int getRecordOverhead()(Code)



getRow
public Row getRow(Session session, int pos) throws SQLException(Code)



getSearchRow
SearchRow getSearchRow(Row row)(Code)



needRebuild
public boolean needRebuild()(Code)



read
public Record read(Session session, DataPage s) throws SQLException(Code)



readRowArray
ObjectArray readRowArray(DataPage s) throws SQLException(Code)



remove
public void remove(Session session) throws SQLException(Code)



remove
public void remove(Session session, Row row) throws SQLException(Code)



truncate
public void truncate(Session session) throws SQLException(Code)



updatePage
void updatePage(Session session, Record p) throws SQLException(Code)



Fields inherited from org.h2.index.BaseIndex
protected int[] columnIds(Code)(Java Doc)
protected Column[] columns(Code)(Java Doc)
protected boolean[] descending(Code)(Java Doc)
protected IndexColumn[] indexColumns(Code)(Java Doc)
protected IndexType indexType(Code)(Java Doc)
protected long rowCount(Code)(Java Doc)
protected Table table(Code)(Java Doc)

Methods inherited from org.h2.index.BaseIndex
abstract public void add(Session session, Row row) throws SQLException(Code)(Java Doc)
public boolean canFindNext()(Code)(Java Doc)
abstract public boolean canGetFirstOrLast()(Code)(Java Doc)
abstract public void close(Session session) throws SQLException(Code)(Java Doc)
public void commit(int operation, Row row) throws SQLException(Code)(Java Doc)
public int compareKeys(SearchRow rowData, SearchRow compare)(Code)(Java Doc)
public int compareRows(SearchRow rowData, SearchRow compare) throws SQLException(Code)(Java Doc)
abstract public Cursor find(Session session, SearchRow first, SearchRow last) throws SQLException(Code)(Java Doc)
abstract public SearchRow findFirstOrLast(Session session, boolean first) throws SQLException(Code)(Java Doc)
public Cursor findNext(Session session, SearchRow first, SearchRow last) throws SQLException(Code)(Java Doc)
public int getColumnIndex(Column col)(Code)(Java Doc)
public String getColumnListSQL()(Code)(Java Doc)
public Column[] getColumns()(Code)(Java Doc)
abstract public double getCost(Session session, int[] masks) throws SQLException(Code)(Java Doc)
public long getCostRangeIndex(int[] masks, long rowCount) throws SQLException(Code)(Java Doc)
public String getCreateSQL()(Code)(Java Doc)
public String getCreateSQLForCopy(Table table, String quotedName)(Code)(Java Doc)
public String getDropSQL()(Code)(Java Doc)
public SQLException getDuplicateKeyException()(Code)(Java Doc)
public IndexColumn[] getIndexColumns()(Code)(Java Doc)
public IndexType getIndexType()(Code)(Java Doc)
public int getLookupCost(long rowCount)(Code)(Java Doc)
public String getPlanSQL()(Code)(Java Doc)
public long getRowCount(Session session)(Code)(Java Doc)
public Table getTable()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public boolean isNull(Row newRow)(Code)(Java Doc)
abstract public boolean needRebuild()(Code)(Java Doc)
abstract public void remove(Session session, Row row) throws SQLException(Code)(Java Doc)
abstract public void remove(Session session) throws SQLException(Code)(Java Doc)
public void removeChildrenAndResources(Session session) throws SQLException(Code)(Java Doc)
abstract public void truncate(Session session) throws SQLException(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.