Package io.higson.runtime.model
Class Parameter
java.lang.Object
io.higson.runtime.model.Parameter
- Author:
- przemek hertel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charDefault value forarraySeparatorfield. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry(ParameterEntry entry) voidaddLevel(ParameterLevel parameterLevel) voidclose()Returns parameter's digest which is a hashed info about given parametergetInputLevel(String code) intgetInputLevelIndex(String code) getLevel(int ix) intNumber of ALL levelslongintGets the matrix id (also known as a pid of the matrix owner).getOutputLevel(int outIx) intNumber of OUT levelsbooleanbooleanisLink()voidvoidsetEntries(Set<ParameterEntry> entries) voidsetLoadedAt(long loadedAt) voidsetLoadedAt(Date loadedAt) voidtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.higson.runtime.model.Element
getName, getRegionVersionIdMethods inherited from interface io.higson.runtime.engine.core.parameter.Parameter
getArraySeparator, getEntries, getId, getInputLevels, getLevels, getMetadata, getName, isAiModelSource, isCacheable, isDictionary, isNullable, setAiSourceSession
-
Field Details
-
DEFAULT_ARRAY_SEPARATOR
public static final char DEFAULT_ARRAY_SEPARATORDefault value forarraySeparatorfield.- See Also:
-
-
Constructor Details
-
Parameter
public Parameter()
-
-
Method Details
-
postprocess
public void postprocess() -
hasExternalStorage
public boolean hasExternalStorage() -
getLevelCount
public int getLevelCount()Number of ALL levels- Returns:
- number of ALL levels
-
getOutputLevels
public int getOutputLevels()Number of OUT levels- Returns:
- number of OUT levels
-
toString
-
setEntries
-
addEntry
-
addLevel
-
getLevel
-
getOutputLevel
-
getInputLevelIndex
-
getInputLevel
-
getLoadedAtMillis
public long getLoadedAtMillis() -
setLoadedAt
public void setLoadedAt(long loadedAt) -
setLoadedAt
-
setLoadedNow
public void setLoadedNow() -
isLink
public boolean isLink() -
getMatrixId
public int getMatrixId()Gets the matrix id (also known as a pid of the matrix owner). For alias parameter, we take master parameter pid. For hard link parameter, we take hard link as a matrix id. In all other cases, the matrix is owned by the parameter itself. -
getDigest
Description copied from interface:ParameterReturns parameter's digest which is a hashed info about given parameter -
close
public void close()
-