Class BindPoint
java.lang.Object
io.nosqlbench.virtdata.core.templates.BindPoint
A bind point is a named injection point in a field value or statement needed for an operation of some type. A bind point can be specified as either a named reference to a binding recipe specified elsewhere (a binding reference), or it can contain its own binding recipe (a binding definition).
BindPoint references take the form of
{name}
and only allow a simple binding name with no spaces, whereas
BindPoint definitions take the form of
{{NumberNameToString()}}
and allow any characters which do not match the closing double braces.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType type of bindpoint indicates whether is was specified as a reference or a definition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe name of the anchor for a binding as it appears in a user-specified template, parsed byParsedTemplateString.getType()The type of a bind point determines how it should be processed.inthashCode()static BindPointof(String userid, String bindspec, BindPoint.Type type) toString()
-
Constructor Details
-
BindPoint
-
BindPoint
-
-
Method Details
-
of
-
getType
The type of a bind point determines how it should be processed.BindPoint.Type.definitioninstances should be taken as binding recipes to be evaluated directly.BindPoint.Type.referenceinstances should be looked up in an externally supplied set of named bindings. In practical terms, these can be processed identically so long as the bindspec is populated.- Returns:
- A binding type, from
BindPoint.Type
-
getAnchor
The name of the anchor for a binding as it appears in a user-specified template, parsed byParsedTemplateString.- Returns:
- A string name for the bind point anchor, or null for
BindPoint.Type.definitiontypes.
-
getBindspec
- Returns:
- The Binding specification. This is the binding recipe as it appears either in the binding directly
for
BindPoint.Type.definitiontypes, or as back-filled by a parser forBindPoint.Type.referencetypes.
-
equals
-
hashCode
-
toString
-