public class TableIterator
extends java.lang.Object
Constructor and Description |
---|
TableIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete() |
void |
deleteRowOnly()
Delete but do not delete any indexes (for rebuilding).
|
void |
evalToResult(Column column,
SelectResult result)
Evaluates the row to the result.
|
void |
free() |
Block |
getBlock() |
long |
getBlockId()
Returns the current block id of the iterator.
|
byte[] |
getBuffer()
Gets the current block.
|
int |
getBuffer(Column column,
byte[] buffer,
int offset)
Evaluates the row to the result.
|
byte[] |
getBytes(Column column)
Returns the column's bytes value.
|
double |
getDouble(Column column)
Returns the column's double value.
|
int |
getInteger(Column column)
Returns the column's value as an integer
|
long |
getLong(Column column)
Returns the column's long value.
|
QueryContext |
getQueryContext()
Returns the query context for the iterator.
|
long |
getRowAddress()
Returns the current address.
|
int |
getRowOffset()
Returns the current row offset of the iterator.
|
java.lang.String |
getString(Column column)
Returns the string for the column at the given index.
|
Table |
getTable()
Returns the table of the iterator.
|
DbTransaction |
getTransaction()
Returns the transaction for the iterator.
|
void |
init(DbTransaction xa) |
void |
init(QueryContext queryContext) |
void |
init(Table table) |
void |
initNullRow()
Sets the next row.
|
void |
initRow() |
boolean |
isEqual(Column column,
byte[] matchBuffer) |
boolean |
isEqual(Column column,
byte[] matchBuffer,
int matchLength) |
boolean |
isEqual(Column column,
java.lang.String string) |
boolean |
isNull(Column column)
Returns true if the column is null.
|
boolean |
isNullRow()
Returns true for the null for (for OUTER JOINs)
|
boolean |
isValidRow(long rowAddr)
Sets the next row.
|
boolean |
next()
Returns the next row.
|
boolean |
nextBlock()
Returns the following block.
|
boolean |
nextRow()
Returns the next tuple in the current row.
|
void |
prevRow() |
void |
setBlockId(long blockId)
Sets the current block id of the iterator.
|
void |
setDirty() |
void |
setDouble(DbTransaction xa,
Column column,
double value)
Returns the double for the column at the given index.
|
void |
setInteger(DbTransaction xa,
Column column,
int value)
Returns the integer for the column at the given index.
|
void |
setLong(DbTransaction xa,
Column column,
long value)
Returns the long for the column at the given index.
|
void |
setRow(long rowAddr)
Sets the next row.
|
void |
setRowOffset(int rowOffset)
Sets the current row offset of the iterator.
|
void |
setString(DbTransaction xa,
Column column,
java.lang.String value)
Returns the string for the column at the given index.
|
java.lang.String |
toString() |
public void init(Table table)
public Table getTable()
public final long getBlockId()
public final void setBlockId(long blockId)
public final long getRowAddress()
public final int getRowOffset()
public final void setRowOffset(int rowOffset)
public final byte[] getBuffer()
public DbTransaction getTransaction()
public QueryContext getQueryContext()
public void init(QueryContext queryContext) throws java.sql.SQLException
java.sql.SQLException
public void init(DbTransaction xa) throws java.sql.SQLException
java.sql.SQLException
public void initRow() throws java.io.IOException
java.io.IOException
public void prevRow()
public Block getBlock()
public final boolean nextRow() throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
java.io.IOException
public boolean nextBlock() throws java.io.IOException
java.io.IOException
public boolean isValidRow(long rowAddr) throws java.io.IOException
java.io.IOException
public void setRow(long rowAddr) throws java.io.IOException
java.io.IOException
public void initNullRow() throws java.io.IOException
java.io.IOException
public boolean isNullRow()
public final boolean isNull(Column column) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(Column column) throws java.sql.SQLException
java.sql.SQLException
public void setString(DbTransaction xa, Column column, java.lang.String value) throws java.sql.SQLException
java.sql.SQLException
public int getInteger(Column column) throws java.sql.SQLException
index
- column index in the rowjava.sql.SQLException
public void setInteger(DbTransaction xa, Column column, int value) throws java.sql.SQLException
java.sql.SQLException
public long getLong(Column column) throws java.sql.SQLException
index
- column index in the rowjava.sql.SQLException
public void setLong(DbTransaction xa, Column column, long value) throws java.sql.SQLException
java.sql.SQLException
public double getDouble(Column column) throws java.sql.SQLException
index
- column index in the rowjava.sql.SQLException
public void setDouble(DbTransaction xa, Column column, double value) throws java.sql.SQLException
java.sql.SQLException
public byte[] getBytes(Column column) throws java.sql.SQLException
index
- column index in the rowjava.sql.SQLException
public boolean isEqual(Column column, byte[] matchBuffer) throws java.sql.SQLException
java.sql.SQLException
public boolean isEqual(Column column, byte[] matchBuffer, int matchLength) throws java.sql.SQLException
java.sql.SQLException
public boolean isEqual(Column column, java.lang.String string) throws java.sql.SQLException
java.sql.SQLException
public int getBuffer(Column column, byte[] buffer, int offset) throws java.sql.SQLException
java.sql.SQLException
public void evalToResult(Column column, SelectResult result) throws java.sql.SQLException
java.sql.SQLException
public boolean delete() throws java.sql.SQLException
java.sql.SQLException
public void deleteRowOnly() throws java.sql.SQLException
java.sql.SQLException
public void setDirty() throws java.sql.SQLException
java.sql.SQLException
public void free()
public java.lang.String toString()
toString
in class java.lang.Object