public final class CustomWrapperResult extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomWrapperResult.CustomWrapperResultListener
Do not implement this interface. For internal purposes only.
|
| Constructor and Description |
|---|
CustomWrapperResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(Object[] row,
List<CustomWrapperFieldExpression> projectedFields)
Invoke this method to add a row to the result set.
|
CustomWrapperSchemaParameter[] |
getSchema()
Returns the schema of this instance of the custom wrapper.
|
void |
setListener(CustomWrapperResult.CustomWrapperResultListener listener)
Do not invoke this method. For internal purposes only.
|
public void addRow(Object[] row, List<CustomWrapperFieldExpression> projectedFields)
The elements of the parameter array have to contain the values of the row. You have to place these elements in the same order as the fields in the list projectedFields. For example, if the field f3 is the first one in the list projectedFields, its value also has to be in the first position of the array.
Except in very rare scenarios, the value of the parameter projectedFields always has to be the input
parameter projectedFields of the method
run of the CustomWrapper interface, from which you invoke this method.
values - array of Object that contains the values of the row.projectedFields - list of projected fields.public CustomWrapperSchemaParameter[] getSchema()
CustomWrapperSchemaParameterpublic void setListener(CustomWrapperResult.CustomWrapperResultListener listener)
Copyright © 2019 Denodo Technologies. All rights reserved.