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


java.lang.Object
   org.apache.derby.iapi.sql.dictionary.IndexRowGenerator

IndexRowGenerator
public class IndexRowGenerator implements IndexDescriptor,Formatable(Code)
This class extends IndexDescriptor for internal use by the DataDictionary.


Field Summary
 IndexDescriptorid
    

Constructor Summary
public  IndexRowGenerator(String indexType, boolean isUnique, int[] baseColumnPositions, boolean[] isAscending, int numberOfOrderedColumns)
     Constructor for an IndexRowGeneratorImpl
Parameters:
  indexType - The type of index
Parameters:
  isUnique - True means the index is unique
Parameters:
  baseColumnPositions - An array of column positions in the basetable.
public  IndexRowGenerator(IndexDescriptor indexDescriptor)
    
public  IndexRowGenerator()
    

Method Summary
public  int[]baseColumnPositions()
    
public  booleanequals(Object other)
    
public  IndexDescriptorgetIndexDescriptor()
     Get the IndexDescriptor that this IndexRowGenerator is based on.
public  voidgetIndexRow(ExecRow baseRow, RowLocation rowLocation, ExecIndexRow indexRow, FormatableBitSet bitSet)
     Get an index row for this index given a row from the base table and the RowLocation of the base row.
public  ExecIndexRowgetIndexRowTemplate()
     Get a template for the index row, to be used with getIndexRow.
public  IntegergetKeyColumnPosition(Integer heapColumnPosition)
    
public  intgetKeyColumnPosition(int heapColumnPosition)
    
public  ExecIndexRowgetNullIndexRow(ColumnDescriptorList columnList, RowLocation rowLocation)
     Get a NULL Index Row for this index.
public  intgetTypeFormatId()
    
public  inthashCode()
    
public  booleanindexChanged(int[] changedColumnIds)
     Return true iff a change to a set of columns changes the index for this IndexRowGenerator.
Parameters:
  changedColumnIds - - holds the 1 based column ids for the changedcolumns. true iff a change to one of the columns in changedColumnIdseffects this index.
public  StringindexType()
    
public  booleanisAscending(Integer keyColumnPosition)
    
public  boolean[]isAscending()
    
public  booleanisDescending(Integer keyColumnPosition)
    
public  booleanisUnique()
    
public  intnumberOfOrderedColumns()
    
public  voidreadExternal(ObjectInput in)
    
public  voidsetBaseColumnPositions(int[] baseColumnPositions)
    
public  voidsetIsAscending(boolean[] isAscending)
    
public  voidsetNumberOfOrderedColumns(int numberOfOrderedColumns)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
id
IndexDescriptor id(Code)




Constructor Detail
IndexRowGenerator
public IndexRowGenerator(String indexType, boolean isUnique, int[] baseColumnPositions, boolean[] isAscending, int numberOfOrderedColumns)(Code)
Constructor for an IndexRowGeneratorImpl
Parameters:
  indexType - The type of index
Parameters:
  isUnique - True means the index is unique
Parameters:
  baseColumnPositions - An array of column positions in the basetable. Each index column corresponds to acolumn position in the base table.
Parameters:
  isAscending - An array of booleans telling asc/desc on eachcolumn.
Parameters:
  numberOfOrderedColumns - In the future, it will be possibleto store non-ordered columns in anindex. These will be useful forcovered queries.



IndexRowGenerator
public IndexRowGenerator(IndexDescriptor indexDescriptor)(Code)
Constructor for an IndexRowGeneratorImpl
Parameters:
  indexDescriptor - An IndexDescriptor to delegate calls to



IndexRowGenerator
public IndexRowGenerator()(Code)
Zero-argument constructor for Formatable interface




Method Detail
baseColumnPositions
public int[] baseColumnPositions()(Code)

See Also:   IndexDescriptor.baseColumnPositions
See Also:   



equals
public boolean equals(Object other)(Code)
Test for value equality
Parameters:
  other - The other indexrowgenerator to compare this one with true if this indexrowgenerator has the same value as other



getIndexDescriptor
public IndexDescriptor getIndexDescriptor()(Code)
Get the IndexDescriptor that this IndexRowGenerator is based on.



getIndexRow
public void getIndexRow(ExecRow baseRow, RowLocation rowLocation, ExecIndexRow indexRow, FormatableBitSet bitSet) throws StandardException(Code)
Get an index row for this index given a row from the base table and the RowLocation of the base row. This method can be used to get the new index row for inserts, and the old and new index rows for deletes and updates. For updates, the result row has all the old column values followed by all of the new column values, so you must form a row using the new column values to pass to this method to get the new index row.
Parameters:
  baseRow - A row in the base table
Parameters:
  rowLocation - The RowLocation of the row in the base table
Parameters:
  indexRow - A template for the index row. It must have thecorrect number of columns.
Parameters:
  bitSet - If non-null, then baseRow is a partial row and theset bits in bitSet represents the column mapping forthe partial row to the complete base row. WARNING: ONE based!!!
exception:
  StandardException - Thrown on error



getIndexRowTemplate
public ExecIndexRow getIndexRowTemplate()(Code)
Get a template for the index row, to be used with getIndexRow. A row template for the index row.



getKeyColumnPosition
public Integer getKeyColumnPosition(Integer heapColumnPosition)(Code)

See Also:   IndexDescriptor.getKeyColumnPosition
See Also:   



getKeyColumnPosition
public int getKeyColumnPosition(int heapColumnPosition)(Code)

See Also:   IndexDescriptor.getKeyColumnPosition
See Also:   



getNullIndexRow
public ExecIndexRow getNullIndexRow(ColumnDescriptorList columnList, RowLocation rowLocation) throws StandardException(Code)
Get a NULL Index Row for this index. This is useful to create objects that need to be passed to ScanController.
Parameters:
  columnList - ColumnDescriptors describing the base table.
Parameters:
  rowLocation - empty row location.
exception:
  StandardException - thrown on error.



getTypeFormatId
public int getTypeFormatId()(Code)



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



indexChanged
public boolean indexChanged(int[] changedColumnIds)(Code)
Return true iff a change to a set of columns changes the index for this IndexRowGenerator.
Parameters:
  changedColumnIds - - holds the 1 based column ids for the changedcolumns. true iff a change to one of the columns in changedColumnIdseffects this index.



indexType
public String indexType()(Code)

See Also:   IndexDescriptor.indexType
See Also:   



isAscending
public boolean isAscending(Integer keyColumnPosition)(Code)

See Also:   IndexDescriptor.isAscending
See Also:   



isAscending
public boolean[] isAscending()(Code)

See Also:   IndexDescriptor.isAscending
See Also:   



isDescending
public boolean isDescending(Integer keyColumnPosition)(Code)

See Also:   IndexDescriptor.isDescending
See Also:   



isUnique
public boolean isUnique()(Code)

See Also:   IndexDescriptor.isUnique
See Also:   



numberOfOrderedColumns
public int numberOfOrderedColumns()(Code)

See Also:   IndexDescriptor.numberOfOrderedColumns
See Also:   



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)

See Also:   java.io.Externalizable.readExternal
exception:
  IOException - Thrown on read error
exception:
  ClassNotFoundException - Thrown on read error



setBaseColumnPositions
public void setBaseColumnPositions(int[] baseColumnPositions)(Code)

See Also:   IndexDescriptor.setBaseColumnPositions
See Also:   



setIsAscending
public void setIsAscending(boolean[] isAscending)(Code)

See Also:   IndexDescriptor.setIsAscending
See Also:   



setNumberOfOrderedColumns
public void setNumberOfOrderedColumns(int numberOfOrderedColumns)(Code)

See Also:   IndexDescriptor.setNumberOfOrderedColumns
See Also:   



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)

exception:
  IOException - Thrown on write error



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.