|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.test.concurrent.ConcurrentTestCommandScript.ResultsReader
private class ConcurrentTestCommandScript.ResultsReader
Field Summary | |
---|---|
private long |
baseTime
|
private boolean |
counted
prefix printed row with its sequence number |
private String[] |
labels
|
private int |
ncols
|
private int |
nth
print every Nth row. |
private PrintWriter |
out
|
private boolean |
timestamped
prefix printed row with time it was fetched |
private int[] |
widths
|
Constructor Summary | |
---|---|
ConcurrentTestCommandScript.ResultsReader(BufferedWriter out)
|
|
ConcurrentTestCommandScript.ResultsReader(BufferedWriter out,
int nth,
boolean counted,
boolean timestamped)
|
Method Summary | |
---|---|
private void |
indent()
|
(package private) void |
prepareFormat(ResultSet rset)
|
private void |
printHeaders()
|
private void |
printRow(String[] values)
Prints an output table row. |
private void |
printRowCount(int count)
|
private void |
printSeparator()
Prints an output table separator. |
private void |
printTimestamp(long time)
|
(package private) void |
read(ResultSet rset,
boolean withTimeout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final PrintWriter out
private final int nth
private final boolean counted
private final boolean timestamped
private long baseTime
private int ncols
private int[] widths
private String[] labels
Constructor Detail |
---|
ConcurrentTestCommandScript.ResultsReader(BufferedWriter out)
ConcurrentTestCommandScript.ResultsReader(BufferedWriter out, int nth, boolean counted, boolean timestamped)
Method Detail |
---|
void prepareFormat(ResultSet rset) throws SQLException
SQLException
private void printHeaders()
void read(ResultSet rset, boolean withTimeout) throws SQLException
SQLException
private void printRowCount(int count)
private void printTimestamp(long time)
private void indent()
private void printSeparator()
"+----+--------+"
.
private void printRow(String[] values)
"| COL1 | COL2
|"
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |