org.apache.derby.impl.store.access.btree.index

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 » db derby 10.2 » org.apache.derby.impl.store.access.btree.index 
org.apache.derby.impl.store.access.btree.index
BTree Indexes with Locking

Implements classes used by the language layer to implement SQL secondary indexes. The classes here extend and use the classes in {@link org.apache.derby.impl.store.access.btree} to implement a locked btree index.

The key to understanding the class layout is to understand the public store interfaces in {@link org.apache.derby.iapi.store.access.conglomerate}, which contains the shared interfaces that must be implemented by all access methods. Currently Derby implements heap and btree index access methods. Users of access methods use the same interface no matter what the underlying type or particular implementation of the access method. Therefore, Derby can support multiple types of btree index implementations, which if done right should require no changes to actual users of the access methods.

In reality the interfaces would have to change in some ways to support a radically different kind of access method, such as GiST. But the implementor should enhance the interfaces in the conglomerate package so that these can then be supported by all existing access methods.

Isolation Levels

Isolation level implementation in the B-Tree index is done with data only locking, i.e., locks on secondary index rows are actually locks on the data rows that they point to. The specifics of particular isolation levels are hidden in various implementations of the {@link org.apache.derby.impl.store.access.btree.BTreeLockingPolicy BTreeLockingPolicy} class. The classes which do scans, deletes, and inserts do not have isolation specific code, instead they make lock calls using BTreeLockingPolicy interfaces, and then depending on the isolation level one of the implmentations does the actual locking.

Java Source File NameTypeComment
B2I.javaClass Implements an instance of a B-Tree secondary index conglomerate. A B2I object has two roles.
  1. The B2I object is stored on disk, and holds the store specific information needed to access/describe the conglomerate.
B2IController.javaClass Controller used to insert rows into a secondary index. Implements the ConglomerateController interface for the B-Tree index access method.
B2ICostController.javaClass Controller used to provide cost estimates to optimizer about secondary index data access. Implements the StoreCostController interface for the B-Tree index implementation.
B2IFactory.javaClass The "B2I" (acronym for b-tree secondary index) factory manages b-tree conglomerates implemented on the raw store which are used as secondary indexes.

Most of this code is generic to all conglomerates.

B2IForwardScan.javaClass The btree secondary index implementation of ScanManager which provides reading and deleting of entries in the btree secondary index.
B2IMaxScan.javaClass Scan used to find maximum value in the secondary index.
B2INoLocking.javaClass Secondary index locking policy that does no locking.

This is used when the caller knows that logical locks are already obtained so need not be requested again.

B2IRowLocking1.javaClass The btree locking policy which implements read uncommitted isolation level. It inherits all functionality from B2IRowLocking2 except that it does not get any read row locks (and thus does not release them).
B2IRowLocking2.javaClass The btree locking policy which implements read committed isolation level. It inherits all functionality from B2IRowLockingRR (repeatable read) except that it releases read locks after obtaining them.
B2IRowLocking3.javaClass Implements the jdbc serializable isolation level using row locks.
B2IRowLockingRR.javaClass
B2IStaticCompiledInfo.javaClass This class implements the static compiled information relevant to a btree secondary index.
B2ITableLocking3.javaClass
B2IUndo.javaClass The B2IUndo interface packages up the routines which the rawstore needs to call to perform logical undo of a record in a B2i.
D_B2IController.javaClass Debugging class used to print debug information about a B2I.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.