public interface OutgoingResultSet
addColumn(java.lang.String) is used for specifying the column names for this result
set. If addRow(java.util.List<java.lang.Object>) is called before addColumn(java.lang.String), then
the column names will default to "c1", "c2", etc.
The types of the columns will always be Types.JAVA_OBJECT.
Once {{addRow}} has been called, an invocation of {{addColumn}} will throw
an IllegalStateException.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BATCH_SIZE
The default number of rows batched up before being flushed as a message to
the originating node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String name)
Specify the name of the next column for this results set.
|
void |
addRow(List<Object> row)
Add a row to this result set, to be sent to the
ResultCollector.
|
void |
endResults()
Invoke this method to let the result set know that there are no more rows
to be added.
|
int |
getBatchSize()
Get the number of rows batched up before being flushed as a message to the
originating node.
|
void |
setBatchSize(int size)
Set the number of rows to be batched up before being flushed as a message
to the originating node.
|
static final int DEFAULT_BATCH_SIZE
void addColumn(String name)
addRow(java.util.List<java.lang.Object>)
is called, unless the default names are desired.
Default column names will be used for any columns that have not been
named by calling this method: "c1", "c2", etc.name - the name of the columnIllegalStateException - if rows have already been added when
this method is called.void addRow(List<Object> row)
addColumn(java.lang.String) before this method is called,
otherwise default column descriptions will be inferred
based on the first row added with columns named "c1", "c2", etc.row - a List<Object> for this row. Each element will be
converted to the corresponding SQL type.IllegalArgumentException - if the row is not of the correct length
based on previous calls to addColumn.void endResults()
int getBatchSize()
setBatchSize(int) then default is DEFAULT_BATCH_SIZE.void setBatchSize(int size)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.