public interface RowMapper<I>
The following invariants must hold:
rowIdToIndex(rowIndexToId(ix)) == ix rowIndexToId(rowIdToIndex(id)) == id
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class<I> |
getIdClass() |
Returns the type of object used for representing row indices.
|
long |
rowIdToIndex(I id) |
Returns the table row index corresponding to a given typed identifier.
|
I |
rowIndexToId(long index) |
Returns a typed identifer corresponding to a given row index.
|
java.lang.Class<I> getIdClass()
long rowIdToIndex(I id)
id
- identifier objectI rowIndexToId(long index)
index
- row indexCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.