Package com.streambase.sb
Interface TupleCaptureTransformer
public interface TupleCaptureTransformer
A TupleCaptureTransformer represents a way of converting tuples with capture
fields from inside the application to tuples without capture fields, with
all of the fields stored in the capture expanded out to the same level
as the capture field itself.
- Since:
- 7.2
-
Method Summary
Modifier and TypeMethodDescriptionCapture all the extra fields in 'in' into their correct capture fields.Expand all the capture fields in 'in'
-
Method Details
-
getCollapsedSchema
Schema getCollapsedSchema()- Returns:
- the collapsed schema for this transformer. All applicable fields are inside their captures.
-
getExpandedSchema
Schema getExpandedSchema()- Returns:
- the destination schema for this transformer. All capture fields have been expanded out.
-
expand
Expand all the capture fields in 'in'- Parameters:
in
- tuple- Returns:
- the expanded tuple
- Throws:
TupleException
- if in has the wrong schema
-
collapse
Capture all the extra fields in 'in' into their correct capture fields.- Parameters:
in
- tuple- Returns:
- the tuple with all extra fields captured
- Throws:
TupleException
- if in has the wrong schema
-