Class CustomWrapperFieldExpression

java.lang.Object
com.denodo.vdb.engine.customwrapper.expression.CustomWrapperExpression
com.denodo.vdb.engine.customwrapper.expression.CustomWrapperFieldExpression

public final class CustomWrapperFieldExpression extends CustomWrapperExpression
Represents a field (or a field's sub-field) in Custom Wrapper conditions.
See Also:
  • Constructor Details

    • CustomWrapperFieldExpression

      public CustomWrapperFieldExpression(String name)
      Creates an instance of CustomWrapperFieldExpression with a name.

      Users do not need to instantiate this class.

      Parameters:
      name - this field's name
    • CustomWrapperFieldExpression

      @Deprecated public CustomWrapperFieldExpression(String name, List<CustomWrapperFieldExpression> subFields)
      Deprecated.
      Creates an instance of CustomWrapperFieldExpression with a list of sub-fields.

      Users do not need to instantiate this class.

      Parameters:
      name - this field's name
      subFields - a list of sub-fields for this field
    • CustomWrapperFieldExpression

      public CustomWrapperFieldExpression(int index)
      Creates an instance of CustomWrapperFieldExpression which is an index. This kind of fields are intended to be sub-fields of fields which correspond to an array in the Custom Wrapper's schema.

      Users do not need to instantiate this class.

      Parameters:
      index - this sub-field's index
  • Method Details

    • getName

      public String getName()
      Returns:
      this field's name
    • getStringRepresentation

      public String getStringRepresentation()
      Returns:
      this field's String representation. This representation is generated using the field's sub-fields, if there are any. For example: myfield, myfield.mysubfield, myarray[2], myfield.myarray[10].myinteger
    • getSubFields

      Deprecated.
      This method is deprecated and it may be removed in future releases of the Denodo Platform.
      Returns:
      a list containing all the sub-fields of this field
    • hasSubFields

      @Deprecated public boolean hasSubFields()
      Deprecated.
      This method is deprecated and it may be removed in future releases of the Denodo Platform.
      Returns:
      true if this field has any sub-fields, false otherwise.
    • getExpressionType

      protected int getExpressionType()
      Specified by:
      getExpressionType in class CustomWrapperExpression
    • toString

      public String toString()
      Specified by:
      toString in class CustomWrapperExpression