Class SingleListaggAggregationState
- java.lang.Object
-
- io.trino.operator.aggregation.listagg.SingleListaggAggregationState
-
- All Implemented Interfaces:
ListaggAggregationState,AccumulatorState
public class SingleListaggAggregationState extends Object implements ListaggAggregationState
-
-
Constructor Summary
Constructors Constructor Description SingleListaggAggregationState(Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Block block, int position)voidforEach(ListaggAggregationStateConsumer consumer)intgetEntryCount()longgetEstimatedSize()io.airlift.slice.SlicegetOverflowFiller()io.airlift.slice.SlicegetSeparator()booleanisEmpty()booleanisOverflowError()voidreset()voidsetOverflowError(boolean overflowError)voidsetOverflowFiller(io.airlift.slice.Slice overflowFiller)voidsetSeparator(io.airlift.slice.Slice separator)voidsetShowOverflowEntryCount(boolean showOverflowEntryCount)booleanshowOverflowEntryCount()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
Methods inherited from interface io.trino.operator.aggregation.listagg.ListaggAggregationState
merge
-
-
-
-
Constructor Detail
-
SingleListaggAggregationState
public SingleListaggAggregationState(Type type)
-
-
Method Detail
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
setSeparator
public void setSeparator(io.airlift.slice.Slice separator)
- Specified by:
setSeparatorin interfaceListaggAggregationState
-
getSeparator
public io.airlift.slice.Slice getSeparator()
- Specified by:
getSeparatorin interfaceListaggAggregationState
-
setOverflowFiller
public void setOverflowFiller(io.airlift.slice.Slice overflowFiller)
- Specified by:
setOverflowFillerin interfaceListaggAggregationState
-
getOverflowFiller
public io.airlift.slice.Slice getOverflowFiller()
- Specified by:
getOverflowFillerin interfaceListaggAggregationState
-
setOverflowError
public void setOverflowError(boolean overflowError)
- Specified by:
setOverflowErrorin interfaceListaggAggregationState
-
isOverflowError
public boolean isOverflowError()
- Specified by:
isOverflowErrorin interfaceListaggAggregationState
-
setShowOverflowEntryCount
public void setShowOverflowEntryCount(boolean showOverflowEntryCount)
- Specified by:
setShowOverflowEntryCountin interfaceListaggAggregationState
-
showOverflowEntryCount
public boolean showOverflowEntryCount()
- Specified by:
showOverflowEntryCountin interfaceListaggAggregationState
-
add
public void add(Block block, int position)
- Specified by:
addin interfaceListaggAggregationState
-
forEach
public void forEach(ListaggAggregationStateConsumer consumer)
- Specified by:
forEachin interfaceListaggAggregationState
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceListaggAggregationState
-
getEntryCount
public int getEntryCount()
- Specified by:
getEntryCountin interfaceListaggAggregationState
-
reset
public void reset()
- Specified by:
resetin interfaceListaggAggregationState
-
-