Package org.h2.expression.aggregate
Class ListaggArguments
- java.lang.Object
-
- org.h2.expression.aggregate.ListaggArguments
-
public final class ListaggArguments extends java.lang.ObjectAdditional arguments of LISTAGG aggregate function.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringfilterprivate booleanonOverflowTruncateprivate java.lang.Stringseparatorprivate booleanwithoutCount
-
Constructor Summary
Constructors Constructor Description ListaggArguments()Creates a new instance of additional arguments of LISTAGG aggregate function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEffectiveFilter()Returns the effective LISTAGG truncation filter.java.lang.StringgetEffectiveSeparator()Returns the effective LISTAGG separator.java.lang.StringgetFilter()Returns the LISTAGG truncation filter.booleangetOnOverflowTruncate()Returns the LISTAGG overflow behavior.java.lang.StringgetSeparator()Returns the LISTAGG separator.booleanisWithoutCount()Returns the LISTAGG count indication.voidsetFilter(java.lang.String filter)Sets the custom LISTAGG truncation filter.voidsetOnOverflowTruncate(boolean onOverflowTruncate)Sets the LISTAGG overflow behavior.voidsetSeparator(java.lang.String separator)Sets the custom LISTAGG separator.voidsetWithoutCount(boolean withoutCount)Sets the LISTAGG count indication.
-
-
-
Method Detail
-
setSeparator
public void setSeparator(java.lang.String separator)
Sets the custom LISTAGG separator.- Parameters:
separator- the LISTAGG separator,nullor empty string means no separator
-
getSeparator
public java.lang.String getSeparator()
Returns the LISTAGG separator.- Returns:
- the LISTAGG separator,
nullmeans the default
-
getEffectiveSeparator
public java.lang.String getEffectiveSeparator()
Returns the effective LISTAGG separator.- Returns:
- the effective LISTAGG separator
-
setOnOverflowTruncate
public void setOnOverflowTruncate(boolean onOverflowTruncate)
Sets the LISTAGG overflow behavior.- Parameters:
onOverflowTruncate-truefor ON OVERFLOW TRUNCATE,falsefor ON OVERFLOW ERROR
-
getOnOverflowTruncate
public boolean getOnOverflowTruncate()
Returns the LISTAGG overflow behavior.- Returns:
truefor ON OVERFLOW TRUNCATE,falsefor ON OVERFLOW ERROR
-
setFilter
public void setFilter(java.lang.String filter)
Sets the custom LISTAGG truncation filter.- Parameters:
filter- the LISTAGG truncation filter,nullor empty string means no truncation filter
-
getFilter
public java.lang.String getFilter()
Returns the LISTAGG truncation filter.- Returns:
- the LISTAGG truncation filter,
nullmeans the default
-
getEffectiveFilter
public java.lang.String getEffectiveFilter()
Returns the effective LISTAGG truncation filter.- Returns:
- the effective LISTAGG truncation filter
-
setWithoutCount
public void setWithoutCount(boolean withoutCount)
Sets the LISTAGG count indication.- Parameters:
withoutCount-truefor WITHOUT COUNT,falsefor WITH COUNT
-
isWithoutCount
public boolean isWithoutCount()
Returns the LISTAGG count indication.- Returns:
truefor WITHOUT COUNT,falsefor WITH COUNT
-
-