public class RResult extends Object implements Serializable
Processing result based on configuration connect defined, different situation could trigger different joining
Here are three critical concept:
X_ATTRIBUTE field NAME, it’s the model attribute name.connect configuration.There is connect of String defined in json configuration such as following segment.
// <pre><code class="json">
{
"connect": "joinField"
}
// </code></pre>
One to One/Many, join json object with JoinField ( Batch Mode )
sourceField name.joinField in Batch mode, connect json object/array.name = json object/array.JoinField, SourceField, Name. Result:
name = JsonObject / JsonArray.
There is connect of JsonObject defined in json configuration such as following segment.
// <pre><code class="json">
{
"connect": {
"sourceField1": "joinField1",
"sourceField2": "joinField2"
}
}
// </code></pre>
One to One/Many, join json object with JoinFields ( Batch Mode )
sourceField1 and sourceField2 name.joinField1 and joinField2 in Batch mode, connect json object/array.name = json object/array.JoinFields, SourceFields, Name. Result:
name = JsonObject / JsonArray.
sourceField of reference record - referenceField.joinField of current record - currentField.| Constructor and Description |
|---|
RResult(MAttribute attribute,
AoAttribute aoAttr) |
| Modifier and Type | Method and Description |
|---|---|
DataFormat |
format() |
List<Kv<String,String>> |
joined() |
io.vertx.core.json.JsonArray |
runRuler(io.vertx.core.json.JsonArray source) |
String |
sourceField() |
Class<?> |
typeData() |
public RResult(MAttribute attribute, AoAttribute aoAttr)
Copyright © 2021. All rights reserved.