org.hsqldb.navigator
Class RowSetNavigatorDataTable
- java.lang.Object
-
- org.hsqldb.navigator.RowSetNavigator
-
- org.hsqldb.navigator.RowSetNavigatorData
-
- org.hsqldb.navigator.RowSetNavigatorDataTable
-
- All Implemented Interfaces:
- java.util.Comparator, RangeIterator, RowIterator
public class RowSetNavigatorDataTable extends RowSetNavigatorData
Implementation of RowSetNavigator using a table as the data store.- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field and Description PersistentStorestoreTableBasetable-
Fields inherited from class org.hsqldb.navigator.RowSetNavigatorData
emptyTable
-
-
Constructor Summary
Constructors Constructor and Description RowSetNavigatorDataTable(Session session, QueryExpression queryExpression)RowSetNavigatorDataTable(Session session, QuerySpecification select)RowSetNavigatorDataTable(Session session, QuerySpecification select, RowSetNavigatorData navigator)RowSetNavigatorDataTable(Session session, TableBase table)
-
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 endvoidclear()Clear the contentsvoidcopy(RowSetNavigatorData 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(java.lang.Long rowId)java.lang.Object[]getGroupData(java.lang.Object[] data)Special case for isSimpleAggregate cannot use index lookup.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)voidupdate(java.lang.Object[] oldData, java.lang.Object[] newData)voidwrite(RowOutputInterface out, ResultMetaData meta)-
Methods inherited from class org.hsqldb.navigator.RowSetNavigatorData
addRow, compare, copy, getData, getNextRowData, unionAll
-
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
-
-
-
-
Field Detail
-
table
public TableBase table
-
store
public PersistentStore store
-
-
Constructor Detail
-
RowSetNavigatorDataTable
public RowSetNavigatorDataTable(Session session, QuerySpecification select)
-
RowSetNavigatorDataTable
public RowSetNavigatorDataTable(Session session, QuerySpecification select, RowSetNavigatorData navigator)
-
RowSetNavigatorDataTable
public RowSetNavigatorDataTable(Session session, QueryExpression queryExpression)
-
-
Method Detail
-
sortFull
public void sortFull(Session session)
- Overrides:
sortFullin classRowSetNavigatorData
-
sortOrder
public void sortOrder(Session session)
- Overrides:
sortOrderin classRowSetNavigatorData
-
sortOrderUnion
public void sortOrderUnion(Session session, SortAndSlice sortAndSlice)
- Overrides:
sortOrderUnionin classRowSetNavigatorData
-
add
public void add(java.lang.Object[] data)
Description copied from class:RowSetNavigatorAdd data to the end- Overrides:
addin classRowSetNavigatorData
-
update
public void update(java.lang.Object[] oldData, java.lang.Object[] newData)- Overrides:
updatein classRowSetNavigatorData
-
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 classRowSetNavigatorData
-
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- Overrides:
getCurrentin classRowSetNavigatorData
-
getCurrentRow
public Row getCurrentRow()
- Specified by:
getCurrentRowin interfaceRangeIterator- Overrides:
getCurrentRowin classRowSetNavigatorData
-
next
public boolean next()
- Specified by:
nextin interfaceRangeIterator- Overrides:
nextin classRowSetNavigatorData
-
removeCurrent
public void removeCurrent()
Description copied from class:RowSetNavigatorRemove current row- Specified by:
removeCurrentin interfaceRowIterator- Overrides:
removeCurrentin classRowSetNavigatorData
-
reset
public void reset()
Description copied from class:RowSetNavigatorReset to initial state- Specified by:
resetin interfaceRangeIterator- Overrides:
resetin classRowSetNavigatorData
-
release
public void release()
Description copied from class:RowSetNavigatorRemove any resourses and invalidate- Specified by:
releasein interfaceRowIterator- Overrides:
releasein classRowSetNavigatorData
-
clear
public void clear()
Description copied from class:RowSetNavigatorClear the contents- Overrides:
clearin classRowSetNavigatorData
-
isMemory
public boolean isMemory()
- Overrides:
isMemoryin classRowSetNavigatorData
-
read
public void read(RowInputInterface in, ResultMetaData meta) throws java.io.IOException
- Overrides:
readin classRowSetNavigatorData- Throws:
java.io.IOException
-
write
public void write(RowOutputInterface out, ResultMetaData meta) throws java.io.IOException
- Overrides:
writein classRowSetNavigatorData- Throws:
java.io.IOException
-
getData
public java.lang.Object[] getData(java.lang.Long rowId)
-
copy
public void copy(RowSetNavigatorData other, int[] rightColumnIndexes)
-
union
public void union(Session session, RowSetNavigatorData other)
- Overrides:
unionin classRowSetNavigatorData
-
intersect
public void intersect(Session session, RowSetNavigatorData other)
- Overrides:
intersectin classRowSetNavigatorData
-
intersectAll
public void intersectAll(Session session, RowSetNavigatorData other)
- Overrides:
intersectAllin classRowSetNavigatorData
-
except
public void except(Session session, RowSetNavigatorData other)
- Overrides:
exceptin classRowSetNavigatorData
-
exceptAll
public void exceptAll(Session session, RowSetNavigatorData other)
- Overrides:
exceptAllin classRowSetNavigatorData
-
hasUniqueNotNullRows
public boolean hasUniqueNotNullRows(Session session)
- Overrides:
hasUniqueNotNullRowsin classRowSetNavigatorData
-
removeDuplicates
public void removeDuplicates(Session session)
- Overrides:
removeDuplicatesin classRowSetNavigatorData
-
trim
public void trim(int limitstart, int limitcount)- Overrides:
trimin classRowSetNavigatorData
-
getGroupData
public java.lang.Object[] getGroupData(java.lang.Object[] data)
Special case for isSimpleAggregate cannot use index lookup.- Overrides:
getGroupDatain classRowSetNavigatorData
-
-
DataMelt 3.0 © DataMelt by jWork.ORG