Java Doc for BaseIndex.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.schema.SchemaObjectBase
   org.h2.index.BaseIndex

All known Subclasses:   org.h2.index.ScanIndex,  org.h2.index.RangeIndex,  org.h2.index.LinearHashIndex,  org.h2.index.ViewIndex,  org.h2.index.BtreeIndex,  org.h2.index.LinkedIndex,  org.h2.index.HashIndex,  org.h2.index.TreeIndex,  org.h2.index.MetaIndex,  org.h2.index.FunctionIndex,
BaseIndex
abstract public class BaseIndex extends SchemaObjectBase implements Index(Code)
Most index implementations extend the base index.


Field Summary
protected  int[]columnIds
    
protected  Column[]columns
    
protected  boolean[]descending
    
protected  IndexColumn[]indexColumns
    
protected  IndexTypeindexType
    
protected  longrowCount
    
protected  Tabletable
    

Constructor Summary
public  BaseIndex(Table table, int id, String name, IndexColumn[] indexColumns, IndexType indexType)
    

Method Summary
abstract public  voidadd(Session session, Row row)
     Add a row to this index.
public  booleancanFindNext()
    
abstract public  booleancanGetFirstOrLast()
     Check if this index can quickly find the first or last value.
abstract public  voidclose(Session session)
     Close this index.
public  voidcommit(int operation, Row row)
    
public  intcompareKeys(SearchRow rowData, SearchRow compare)
    
public  intcompareRows(SearchRow rowData, SearchRow compare)
    
abstract public  Cursorfind(Session session, SearchRow first, SearchRow last)
     Create a cursor to iterate over a number of rows.
abstract public  SearchRowfindFirstOrLast(Session session, boolean first)
     Find the first (or last) value of this index.
public  CursorfindNext(Session session, SearchRow first, SearchRow last)
    
public  intgetColumnIndex(Column col)
    
public  StringgetColumnListSQL()
    
public  Column[]getColumns()
    
abstract public  doublegetCost(Session session, int[] masks)
     Calculate the cost to find rows.
public  longgetCostRangeIndex(int[] masks, long rowCount)
    
public  StringgetCreateSQL()
    
public  StringgetCreateSQLForCopy(Table table, String quotedName)
    
public  StringgetDropSQL()
    
public  SQLExceptiongetDuplicateKeyException()
    
public  IndexColumn[]getIndexColumns()
    
public  IndexTypegetIndexType()
    
public  intgetLookupCost(long rowCount)
    
public  StringgetPlanSQL()
    
public  longgetRowCount(Session session)
    
public  TablegetTable()
    
public  intgetType()
    
public  booleanisNull(Row newRow)
    
abstract public  booleanneedRebuild()
     Check if this index needs to be re-built.
abstract public  voidremove(Session session, Row row)
     Remove a row from the index.
abstract public  voidremove(Session session)
     Remove the index.
public  voidremoveChildrenAndResources(Session session)
    
abstract public  voidtruncate(Session session)
     Truncate the index.

Field Detail
columnIds
protected int[] columnIds(Code)



columns
protected Column[] columns(Code)



descending
protected boolean[] descending(Code)



indexColumns
protected IndexColumn[] indexColumns(Code)



indexType
protected IndexType indexType(Code)



rowCount
protected long rowCount(Code)



table
protected Table table(Code)




Constructor Detail
BaseIndex
public BaseIndex(Table table, int id, String name, IndexColumn[] indexColumns, IndexType indexType)(Code)




Method Detail
add
abstract public void add(Session session, Row row) throws SQLException(Code)
Add a row to this index.
Parameters:
  session - the session
Parameters:
  row - the row to add



canFindNext
public boolean canFindNext()(Code)



canGetFirstOrLast
abstract public boolean canGetFirstOrLast()(Code)
Check if this index can quickly find the first or last value. true if it can



close
abstract public void close(Session session) throws SQLException(Code)
Close this index.
Parameters:
  session - the session



commit
public void commit(int operation, Row row) throws SQLException(Code)



compareKeys
public int compareKeys(SearchRow rowData, SearchRow compare)(Code)



compareRows
public int compareRows(SearchRow rowData, SearchRow compare) throws SQLException(Code)



find
abstract public Cursor find(Session session, SearchRow first, SearchRow last) throws SQLException(Code)
Create a cursor to iterate over a number of rows.
Parameters:
  session - the session
Parameters:
  first - the first row to return (null if no limit)
Parameters:
  last - the last row to return (null if no limit)



findFirstOrLast
abstract public SearchRow findFirstOrLast(Session session, boolean first) throws SQLException(Code)
Find the first (or last) value of this index.
Parameters:
  session - the session
Parameters:
  first - true for the first value, false for the last



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



getColumnIndex
public int getColumnIndex(Column col)(Code)



getColumnListSQL
public String getColumnListSQL()(Code)



getColumns
public Column[] getColumns()(Code)



getCost
abstract public double getCost(Session session, int[] masks) throws SQLException(Code)
Calculate the cost to find rows.
Parameters:
  session - the session
Parameters:
  masks - the condition mask



getCostRangeIndex
public long getCostRangeIndex(int[] masks, long rowCount) throws SQLException(Code)



getCreateSQL
public String getCreateSQL()(Code)



getCreateSQLForCopy
public String getCreateSQLForCopy(Table table, String quotedName)(Code)



getDropSQL
public String getDropSQL()(Code)



getDuplicateKeyException
public SQLException getDuplicateKeyException()(Code)



getIndexColumns
public IndexColumn[] getIndexColumns()(Code)



getIndexType
public IndexType getIndexType()(Code)



getLookupCost
public int getLookupCost(long rowCount)(Code)



getPlanSQL
public String getPlanSQL()(Code)



getRowCount
public long getRowCount(Session session)(Code)



getTable
public Table getTable()(Code)



getType
public int getType()(Code)



isNull
public boolean isNull(Row newRow)(Code)



needRebuild
abstract public boolean needRebuild()(Code)
Check if this index needs to be re-built. true if it must be re-built.



remove
abstract public void remove(Session session, Row row) throws SQLException(Code)
Remove a row from the index.
Parameters:
  session - the session
Parameters:
  row - the row



remove
abstract public void remove(Session session) throws SQLException(Code)
Remove the index.
Parameters:
  session - the session



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



truncate
abstract public void truncate(Session session) throws SQLException(Code)
Truncate the index.
Parameters:
  session - the session



Methods inherited from org.h2.schema.SchemaObjectBase
public String getSQL()(Code)(Java Doc)
public Schema getSchema()(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.