Class CSVWriteFunction

All Implemented Interfaces:
ExpressionWithVariableParameters, NamedExpression, HasSQL, Typed

public final class CSVWriteFunction extends FunctionN
A CSVWRITE function.
  • Constructor Details

    • CSVWriteFunction

      public CSVWriteFunction()
  • Method Details

    • getValue

      public Value getValue(SessionLocal session)
      Description copied from class: Expression
      Return the resulting value for the current row.
      Overrides:
      getValue in class FunctionN
      Parameters:
      session - the session
      Returns:
      the result
    • getValue

      private String getValue(SessionLocal session, int index)
    • setCsvDelimiterEscape

      public static void setCsvDelimiterEscape(Csv csv, String fieldSeparator, String fieldDelimiter, String escapeCharacter)
      Sets delimiter options.
      Parameters:
      csv - the CSV utility instance
      fieldSeparator - the field separator
      fieldDelimiter - the field delimiter
      escapeCharacter - the escape character
    • optimize

      public Expression optimize(SessionLocal session)
      Description copied from class: Expression
      Try to optimize the expression.
      Specified by:
      optimize in class Expression
      Parameters:
      session - the session
      Returns:
      the optimized expression
    • getName

      public String getName()
      Description copied from interface: NamedExpression
      Get the name.
      Returns:
      the name in uppercase
    • isEverything

      public boolean isEverything(ExpressionVisitor visitor)
      Description copied from class: Expression
      Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
      Overrides:
      isEverything in class OperationN
      Parameters:
      visitor - the visitor
      Returns:
      if the criteria can be fulfilled