Package org.jpmml.evaluator
Class Table.Row
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- org.jpmml.evaluator.Table.Row
-
- All Implemented Interfaces:
Map<String,Object>,AggregableMap<String,Object>,LaggableMap<String,Object>
- Enclosing class:
- Table
public class Table.Row extends AbstractMap<String,Object> implements LaggableMap<String,Object>, AggregableMap<String,Object>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description Row(int origin, int fence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvance()booleancanAdvance()Set<Map.Entry<String,Object>>entrySet()intestimateAdvances()Objectget(Object key)Gets the field value at the current position.ObjectgetAggregated(String key, String function, int n, List<String> blockIndicatorKeys)Gets the aggregate field value after applying a "window transformation" to the current position.ExceptiongetException()ObjectgetLagged(String key, int n, List<String> blockIndicatorKeys)Gets the field value after applying a "lag transformation" to the current position.TablegetTable()Objectput(String key, Object value)Objectremove(Object key)voidsetException(Exception exception)-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
estimateAdvances
public int estimateAdvances()
-
canAdvance
public boolean canAdvance()
-
advance
public void advance()
-
getException
public Exception getException()
-
setException
public void setException(Exception exception)
-
get
public Object get(Object key)
Description copied from interface:LaggableMapGets the field value at the current position.
-
getLagged
public Object getLagged(String key, int n, List<String> blockIndicatorKeys)
Description copied from interface:LaggableMapGets the field value after applying a "lag transformation" to the current position.
- Specified by:
getLaggedin interfaceLaggableMap<String,Object>- Parameters:
key- The field name.n- The number of steps to move backwards from the current position. The previous position is1step backwards.blockIndicatorKeys- Block indicator field names.- Returns:
- The field value or
null.
-
getAggregated
@IgnoreJRERequirement public Object getAggregated(String key, String function, int n, List<String> blockIndicatorKeys)
Description copied from interface:AggregableMapGets the aggregate field value after applying a "window transformation" to the current position.
- Specified by:
getAggregatedin interfaceAggregableMap<String,Object>- Parameters:
key- The field name.function- The aggregation function name. The implementation should recognize and support allLag.Aggregateenum constant values (except for the `none` value).n- The window size.blockIndicatorKeys- Block indicator field names.- Returns:
- The aggregate field value.
-
getTable
public Table getTable()
-
-