Package org.h2.expression.function.table
Class CSVReadFunction
- java.lang.Object
-
- org.h2.expression.function.table.TableFunction
-
- org.h2.expression.function.table.CSVReadFunction
-
- All Implemented Interfaces:
ExpressionWithVariableParameters,NamedExpression,HasSQL
public final class CSVReadFunction extends TableFunction
A CSVREAD function.
-
-
Field Summary
-
Fields inherited from class org.h2.expression.function.table.TableFunction
args
-
Fields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
-
-
Constructor Summary
Constructors Constructor Description CSVReadFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the name.ResultInterfacegetValue(SessionLocal session)Get a result with.private java.lang.StringgetValue(SessionLocal session, int index)private static java.lang.StringgetValue(SessionLocal session, Expression[] args, int index)ResultInterfacegetValueTemplate(SessionLocal session)Get an empty result with the column names set.booleanisDeterministic()Whether the function always returns the same result for the same parameters.voidoptimize(SessionLocal session)Try to optimize this table function-
Methods inherited from class org.h2.expression.function.table.TableFunction
addParameter, doneWithParameters, getSQL
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
-
-
-
Method Detail
-
getValue
public ResultInterface getValue(SessionLocal session)
Description copied from class:TableFunctionGet a result with.- Specified by:
getValuein classTableFunction- Parameters:
session- the session- Returns:
- the result
-
getValue
private java.lang.String getValue(SessionLocal session, int index)
-
optimize
public void optimize(SessionLocal session)
Description copied from class:TableFunctionTry to optimize this table function- Overrides:
optimizein classTableFunction- Parameters:
session- the session
-
getValueTemplate
public ResultInterface getValueTemplate(SessionLocal session)
Description copied from class:TableFunctionGet an empty result with the column names set.- Specified by:
getValueTemplatein classTableFunction- Parameters:
session- the session- Returns:
- the empty result
-
getValue
private static java.lang.String getValue(SessionLocal session, Expression[] args, int index)
-
getName
public java.lang.String getName()
Description copied from interface:NamedExpressionGet the name.- Returns:
- the name in uppercase
-
isDeterministic
public boolean isDeterministic()
Description copied from class:TableFunctionWhether the function always returns the same result for the same parameters.- Specified by:
isDeterministicin classTableFunction- Returns:
- true if it does
-
-