public class MatchingFrame extends Tuple implements java.lang.Cloneable
cachedHash| Constructor and Description |
|---|
MatchingFrame(java.lang.Object pattern,
int frameSize) |
| Modifier and Type | Method and Description |
|---|---|
MatchingFrame |
clone() |
java.lang.Object |
get(int index) |
java.lang.Object[] |
getElements()
As the tuple is supposed to be immutable, do not modify the returned array.
|
MatchingKey |
getKey() |
java.lang.Object |
getPattern() |
int |
getSize() |
java.lang.Object |
getValue(int position)
Returns the value stored inside the matching frame.
|
boolean |
setKeys(int[] keys)
The keys describes which elements of the frame corresponds to the parameters.
|
void |
setParameterValues(java.lang.Object[] parameterValues)
Call for setting the parameter values (or null if a value is unspecified).
|
void |
setValue(int position,
java.lang.Object value)
Sets the value of the variable at the given position.
|
boolean |
testAndSetValue(java.lang.Integer position,
java.lang.Object value) |
java.lang.String |
toString() |
equals, getDistinctElements, hashCode, internalEquals, invertIndex, invertIndexWithMupliplicity, replaceAllpublic boolean setKeys(int[] keys)
SearchPlanExecutor class
later than initialization (done by the LocalSearchMatcher.keys - #setParameterValues(Object[])} for setting the initial parameterpublic java.lang.Object getValue(int position)
position - java.lang.IndexOutOfBoundsException - if position is negativejava.lang.IllegalArgumentException - if the position is larger then the length of the framepublic void setValue(int position,
java.lang.Object value)
position - the position of the variable within the framevalue - the value to be set for the variablepublic void setParameterValues(java.lang.Object[] parameterValues)
setKeys(int[]) is called.parameterValues - a non-null array of values; a value might be null if it is not specified earlypublic boolean testAndSetValue(java.lang.Integer position,
java.lang.Object value)
public java.lang.Object getPattern()
public MatchingKey getKey()
public MatchingFrame clone()
clone in class java.lang.Objectpublic java.lang.Object get(int index)
public java.lang.Object[] getElements()
TuplegetElements in class Tuple