org.hsqldb.navigator
Class RowSetNavigatorData
- java.lang.Object
-
- org.hsqldb.navigator.RowSetNavigator
-
- org.hsqldb.navigator.RowSetNavigatorData
-
- All Implemented Interfaces:
- java.util.Comparator, RangeIterator, RowIterator
- Direct Known Subclasses:
- RowSetNavigatorDataTable
public class RowSetNavigatorData extends RowSetNavigator implements java.util.Comparator
Implementation of RowSetNavigator for result sets.- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.Object[][]emptyTable
-
Constructor Summary
Constructors Constructor and Description RowSetNavigatorData(Session session, QueryExpression queryExpression)RowSetNavigatorData(Session session, QuerySpecification select)RowSetNavigatorData(Session session, RowSetNavigator navigator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanabsolute(int position)Uses similar semantics to java.sql.ResultSet except this is 0 based.voidadd(java.lang.Object[] data)Add data to the endbooleanaddRow(Row row)Add row to the endvoidclear()Clear the contentsintcompare(java.lang.Object a, java.lang.Object b)voidcopy(RowIterator other, int[] rightColumnIndexes)voidexcept(Session session, RowSetNavigatorData other)voidexceptAll(Session session, RowSetNavigatorData other)java.lang.Object[]getCurrent()Returns the current row object.RowgetCurrentRow()java.lang.Object[]getData(long rowId)java.lang.Object[]getGroupData(java.lang.Object[] data)Special case for isSimpleAggregate cannot use index lookup.java.lang.Object[]getNextRowData()booleanhasUniqueNotNullRows(Session session)voidintersect(Session session, RowSetNavigatorData other)voidintersectAll(Session session, RowSetNavigatorData other)booleanisMemory()booleannext()voidread(RowInputInterface in, ResultMetaData meta)voidrelease()Remove any resourses and invalidatevoidremoveCurrent()Remove current rowvoidremoveDuplicates(Session session)voidreset()Reset to initial statevoidsortFull(Session session)voidsortOrder(Session session)voidsortOrderUnion(Session session, SortAndSlice sortAndSlice)voidtrim(int limitstart, int limitcount)voidunion(Session session, RowSetNavigatorData other)voidunionAll(Session session, RowSetNavigatorData other)voidupdate(java.lang.Object[] oldData, java.lang.Object[] newData)voidwrite(RowOutputInterface out, ResultMetaData meta)-
Methods inherited from class org.hsqldb.navigator.RowSetNavigator
afterLast, beforeFirst, first, getCurrent, getId, getNext, getNextRow, getRangePosition, getRowid, getRowId, getRowidObject, getRowNumber, getSession, getSize, hasNext, isAfterLast, isBeforeFirst, isEmpty, isFirst, isLast, last, previous, readSimple, relative, setCurrent, setId, setRowColumns, setSession, writeSimple
-
-
-
-
Constructor Detail
-
RowSetNavigatorData
public RowSetNavigatorData(Session session, QuerySpecification select)
-
RowSetNavigatorData
public RowSetNavigatorData(Session session, QueryExpression queryExpression)
-
RowSetNavigatorData
public RowSetNavigatorData(Session session, RowSetNavigator navigator)
-
-
Method Detail
-
sortFull
public void sortFull(Session session)
-
sortOrder
public void sortOrder(Session session)
-
sortOrderUnion
public void sortOrderUnion(Session session, SortAndSlice sortAndSlice)
-
add
public void add(java.lang.Object[] data)
Description copied from class:RowSetNavigatorAdd data to the end- Specified by:
addin classRowSetNavigator
-
addRow
public boolean addRow(Row row)
Description copied from class:RowSetNavigatorAdd row to the end- Specified by:
addRowin classRowSetNavigator
-
update
public void update(java.lang.Object[] oldData, java.lang.Object[] newData)
-
release
public void release()
Description copied from class:RowSetNavigatorRemove any resourses and invalidate- Specified by:
releasein interfaceRowIterator- Specified by:
releasein classRowSetNavigator
-
clear
public void clear()
Description copied from class:RowSetNavigatorClear the contents- Specified by:
clearin classRowSetNavigator
-
absolute
public boolean absolute(int position)
Description copied from class:RowSetNavigatorUses similar semantics to java.sql.ResultSet except this is 0 based. When position is 0 or positive, it is from the start; when negative, it is from end- Overrides:
absolutein classRowSetNavigator
-
getCurrent
public java.lang.Object[] getCurrent()
Description copied from class:RowSetNavigatorReturns the current row object. Type of object is implementation defined.- Specified by:
getCurrentin interfaceRangeIterator- Specified by:
getCurrentin classRowSetNavigator
-
getCurrentRow
public Row getCurrentRow()
- Specified by:
getCurrentRowin interfaceRangeIterator- Specified by:
getCurrentRowin classRowSetNavigator
-
getNextRowData
public java.lang.Object[] getNextRowData()
-
next
public boolean next()
- Specified by:
nextin interfaceRangeIterator- Overrides:
nextin classRowSetNavigator
-
removeCurrent
public void removeCurrent()
Description copied from class:RowSetNavigatorRemove current row- Specified by:
removeCurrentin interfaceRowIterator- Specified by:
removeCurrentin classRowSetNavigator
-
reset
public void reset()
Description copied from class:RowSetNavigatorReset to initial state- Specified by:
resetin interfaceRangeIterator- Overrides:
resetin classRowSetNavigator
-
isMemory
public boolean isMemory()
- Overrides:
isMemoryin classRowSetNavigator
-
read
public void read(RowInputInterface in, ResultMetaData meta) throws java.io.IOException
- Specified by:
readin classRowSetNavigator- Throws:
java.io.IOException
-
write
public void write(RowOutputInterface out, ResultMetaData meta) throws java.io.IOException
- Specified by:
writein classRowSetNavigator- Throws:
java.io.IOException
-
getData
public java.lang.Object[] getData(long rowId)
-
copy
public void copy(RowIterator other, int[] rightColumnIndexes)
-
union
public void union(Session session, RowSetNavigatorData other)
-
unionAll
public void unionAll(Session session, RowSetNavigatorData other)
-
intersect
public void intersect(Session session, RowSetNavigatorData other)
-
intersectAll
public void intersectAll(Session session, RowSetNavigatorData other)
-
except
public void except(Session session, RowSetNavigatorData other)
-
exceptAll
public void exceptAll(Session session, RowSetNavigatorData other)
-
hasUniqueNotNullRows
public boolean hasUniqueNotNullRows(Session session)
-
removeDuplicates
public void removeDuplicates(Session session)
-
trim
public void trim(int limitstart, int limitcount)
-
getGroupData
public java.lang.Object[] getGroupData(java.lang.Object[] data)
Special case for isSimpleAggregate cannot use index lookup.
-
compare
public int compare(java.lang.Object a, java.lang.Object b)- Specified by:
comparein interfacejava.util.Comparator
-
-
DataMelt 3.0 © DataMelt by jWork.ORG