org.knime.core.node.tableview
Class FindPositionRowKey

java.lang.Object
  extended by org.knime.core.node.tableview.FindPositionRowKey
Direct Known Subclasses:
FindPositionAll

 class FindPositionRowKey
extends Object

Position information that is used when searching row keys. It is used to mark and traverse the table.

Author:
Bernd Wiswedel, University of Konstanz

Constructor Summary
FindPositionRowKey(int rowCount)
          Creates new position information.
 
Method Summary
(package private)  int getSearchColumn()
           
(package private)  int getSearchRow()
           
(package private)  boolean isIDOnly()
          If to look for IDs only.
(package private)  void mark()
          Set a mark (memorize last search hit location).
(package private)  boolean next()
          Pushes the search position to its next location.
(package private)  boolean reachedMark()
           
(package private)  void reset()
          Reset position to row 0.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FindPositionRowKey

FindPositionRowKey(int rowCount)
Creates new position information.

Parameters:
rowCount - The total number of rows in the table to search.
Method Detail

next

boolean next()
Pushes the search position to its next location.

Returns:
true if it advanced to the next position, false if it starts from top.

reset

void reset()
Reset position to row 0.


mark

void mark()
Set a mark (memorize last search hit location).


reachedMark

boolean reachedMark()
Returns:
true if we reached the mark (again).

getSearchRow

int getSearchRow()
Returns:
Current location row.

getSearchColumn

int getSearchColumn()
Returns:
Current location column (in this class -1).

isIDOnly

boolean isIDOnly()
If to look for IDs only.

Returns:
true

toString

public String toString()

Overrides:
toString in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.