Class CustomWrapperResult

java.lang.Object
com.denodo.vdb.engine.customwrapper.CustomWrapperResult

public final class CustomWrapperResult extends Object
Custom Wrappers use this class to return any data retrieved from their data source.
  • Constructor Details

    • CustomWrapperResult

      public CustomWrapperResult()
  • Method Details

    • addRow

      @Deprecated public void addRow(Object[] row, List<CustomWrapperFieldExpression> projectedFields)
      Deprecated.
      Use method addRow(Object[])
      Invoke this method to add a row to the result set.

      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.

      Parameters:
      row - array of Object that contains the values of the row.
      projectedFields - list of projected fields.
    • addRow

      public void addRow(Object[] row)
      Invoke this method to add a row to the result set.

      The elements of the parameter row 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 received in the run method of the wrapper. 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.

      Parameters:
      row - array of Object that contains the values of the row.
      Since:
      7.0u20200310
    • getSchema

      public CustomWrapperSchemaParameter[] getSchema()
      Returns the schema of this instance of the custom wrapper.
      Returns:
      an array of CustomWrapperSchemaParameter
    • setListener

      public void setListener(CustomWrapperResult.CustomWrapperResultListener listener)
      Important: do not invoke this method. For internal purposes only.
      Parameters:
      listener - -
    • getProjectedFields

      public List<CustomWrapperFieldExpression> getProjectedFields()
    • setProjectedFields

      public void setProjectedFields(List<CustomWrapperFieldExpression> projectedFields)