org.eobjects.sassy
Class CountReaderCallback

java.lang.Object
  extended by org.eobjects.sassy.CountReaderCallback
All Implemented Interfaces:
SasReaderCallback

public class CountReaderCallback
extends Object
implements SasReaderCallback

A SasReaderCallback for getting the count of rows in a dataset.


Constructor Summary
CountReaderCallback()
          Constructs a CountReaderCallback
 
Method Summary
 void column(int columnIndex, String columnName, String columnLabel, SasColumnType columnType, int columnLength)
          Callback method that accepts a column discovered by the SasReader .
 int getCount()
          Gets the count of rows in the read table
 boolean readData()
          Should the reader read the data/rows (or only columns?)
 boolean row(int rowNumber, Object[] rowData)
          Callback method that accepts an array of row data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountReaderCallback

public CountReaderCallback()
Constructs a CountReaderCallback

Method Detail

column

public void column(int columnIndex,
                   String columnName,
                   String columnLabel,
                   SasColumnType columnType,
                   int columnLength)
Description copied from interface: SasReaderCallback
Callback method that accepts a column discovered by the SasReader .

Specified by:
column in interface SasReaderCallback
Parameters:
columnIndex - the index (0-based) of the column
columnName - the physical name of the column
columnLabel - the logical label of the column (often more user-friendly than name)
columnType - the type of the column
columnLength - the length of the column

readData

public boolean readData()
Description copied from interface: SasReaderCallback
Should the reader read the data/rows (or only columns?)

Specified by:
readData in interface SasReaderCallback
Returns:
true if data/rows should be read.

row

public boolean row(int rowNumber,
                   Object[] rowData)
Description copied from interface: SasReaderCallback
Callback method that accepts an array of row data.

Specified by:
row in interface SasReaderCallback
Parameters:
rowNumber - the row number (1 = first row)
rowData - the row data
Returns:
true if more rows should be read.

getCount

public int getCount()
Gets the count of rows in the read table

Returns:


Copyright © 2011-2012. All Rights Reserved.