Package io.trino.plugin.ml
Class LearnStateFactory.SingleLearnState
java.lang.Object
io.trino.plugin.ml.LearnStateFactory.SingleLearnState
- All Implemented Interfaces:
LearnState,AccumulatorState
- Enclosing class:
- LearnStateFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(long value) intenumerateLabel(String label) longio.airlift.slice.SlicevoidsetParameters(io.airlift.slice.Slice parameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
Constructor Details
-
SingleLearnState
public SingleLearnState()
-
-
Method Details
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
getLabelEnumeration
- Specified by:
getLabelEnumerationin interfaceLearnState
-
enumerateLabel
- Specified by:
enumerateLabelin interfaceLearnState
-
getLabels
- Specified by:
getLabelsin interfaceLearnState
-
getFeatureVectors
- Specified by:
getFeatureVectorsin interfaceLearnState
-
getParameters
public io.airlift.slice.Slice getParameters()- Specified by:
getParametersin interfaceLearnState
-
setParameters
public void setParameters(io.airlift.slice.Slice parameters) - Specified by:
setParametersin interfaceLearnState
-
addMemoryUsage
public void addMemoryUsage(long value) - Specified by:
addMemoryUsagein interfaceLearnState
-