Java Doc for IndexDescriptor.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » catalog » 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 » db derby 10.2 » org.apache.derby.catalog 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.catalog.IndexDescriptor

All known Subclasses:   org.apache.derby.catalog.types.IndexDescriptorImpl,  org.apache.derby.iapi.sql.dictionary.IndexRowGenerator,
IndexDescriptor
public interface IndexDescriptor (Code)
This interface describes an index. It is used in the column SYS.SYSCONGLOMERATES.DESCRIPTOR and describes everything about an index except the index name and the table on which the index is defined. That information is available in the columns NAME and TABLEID of the table SYS.SYSCONGLOMERATES.




Method Summary
public  int[]baseColumnPositions()
     Returns an array of column positions in the base table.
public  IntegergetKeyColumnPosition(Integer heapColumnPosition)
     Returns the postion of a column.
public  intgetKeyColumnPosition(int heapColumnPosition)
     Returns the postion of a column.

Returns the position of a column within the key (1-based). 0 means that the column is not in the key.

 StringindexType()
     Returns the type of the index.
public  boolean[]isAscending()
     Returns array of boolean telling asc/desc info for each index key column for convenience of using together with baseColumnPositions method.
 booleanisAscending(Integer keyColumnPosition)
     Returns true if the specified column is ascending in the index (1-based).
 booleanisDescending(Integer keyColumnPosition)
     Returns true if the specified column is descending in the index (1-based).
 booleanisUnique()
     Returns true if the index is unique.
 intnumberOfOrderedColumns()
     Returns the number of ordered columns.
public  voidsetBaseColumnPositions(int[] baseColumnPositions)
     set the baseColumnPositions field of the index descriptor.
public  voidsetIsAscending(boolean[] isAscending)
     set the isAscending field of the index descriptor.
public  voidsetNumberOfOrderedColumns(int numberOfOrderedColumns)
     set the numberOfOrderedColumns field of the index descriptor.



Method Detail
baseColumnPositions
public int[] baseColumnPositions()(Code)
Returns an array of column positions in the base table. Each index column corresponds to a column position in the base table, except the column representing the location of the row in the base table. The returned array holds the column positions in the base table, so, if entry 2 is the number 4, the second column in the index is the fourth column in the table.



getKeyColumnPosition
public Integer getKeyColumnPosition(Integer heapColumnPosition)(Code)
Returns the postion of a column.

Returns the position of a column within the key (1-based). 0 means that the column is not in the key.




getKeyColumnPosition
public int getKeyColumnPosition(int heapColumnPosition)(Code)
Returns the postion of a column.

Returns the position of a column within the key (1-based). 0 means that the column is not in the key. Same as the above method, but it uses int instead of Integer.




indexType
String indexType()(Code)
Returns the type of the index. For now, we only support B-Trees, so the value "BTREE" is returned.



isAscending
public boolean[] isAscending()(Code)
Returns array of boolean telling asc/desc info for each index key column for convenience of using together with baseColumnPositions method. Both methods return an array with subscript starting from 0.



isAscending
boolean isAscending(Integer keyColumnPosition)(Code)
Returns true if the specified column is ascending in the index (1-based).



isDescending
boolean isDescending(Integer keyColumnPosition)(Code)
Returns true if the specified column is descending in the index (1-based). In the current release, only ascending columns are supported.



isUnique
boolean isUnique()(Code)
Returns true if the index is unique.



numberOfOrderedColumns
int numberOfOrderedColumns()(Code)
Returns the number of ordered columns.

In the future, it will be possible to store non-ordered columns in an index. These will be useful for covered queries. The ordered columns will be at the beginning of the index row, and they will be followed by the non-ordered columns. For now, all columns in an index must be ordered.




setBaseColumnPositions
public void setBaseColumnPositions(int[] baseColumnPositions)(Code)
set the baseColumnPositions field of the index descriptor. This is for updating the field in operations such as "alter table drop column" where baseColumnPositions is changed.



setIsAscending
public void setIsAscending(boolean[] isAscending)(Code)
set the isAscending field of the index descriptor. This is for updating the field in operations such as "alter table drop column" where isAscending is changed.



setNumberOfOrderedColumns
public void setNumberOfOrderedColumns(int numberOfOrderedColumns)(Code)
set the numberOfOrderedColumns field of the index descriptor. This is for updating the field in operations such as "alter table drop column" where numberOfOrderedColumns is changed.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.