io.warp10:warp10-ext-thrift
Installation
$ wf g -w /path/to/warp10 io.warp10 warp10-ext-thrift
/path/to/warp10/
is where Warp 10 is physically located.
Readme
Thrift support in WarpScript
This extension adds the possibility from within WarpScript to serialize and deserialize data using the Thrift format.
The traditional workflow when working with Thrift is to generate code for your target language using a .thrift
IDL file as input. Then within your application the generated structure can be manipulated and a set of utility classes can be used to perform serialization and deserialization.
The approach adopted in WarpScript is similar except the code generation step has been removed. Instead the function THRIFTC
can be used to generate an internal WarpScript structure that can be fed as input to serialization (->THRIFT
) and deserialization (THRIFT->
) functions. This approach renders the use of Thrift completely dynamic, enabling runtime generation of serialization/deserialization templates.
To the best of our knowledge this is the first attempt at a fully dynamic use of Thrift in any data environment. No doubt this feature will have many fans!
Author

SenX
contact@senx.io
Version
1.1.1-uberjar
Type
Extension
Last published
2021-05-21
License
Apache-2.0
Repository
Path | Size | Creation time |
---|---|---|
->THRIFT | 1353 bytes | 2021-05-20 |
THRIFT-> | 1328 bytes | 2021-05-20 |
THRIFTC | 1300 bytes | 2021-05-20 |
Configuration
//
Configuration template
//
Describe here the typical configuration needed to enable
and use the module.
//
This includes configuration primitives for the module itself
or for provided macros.
//
This configuration file is used by the wf tool for documenting
your module on the WarpFleetâ„¢ site.
//
warpscript.extension.thrift = io.warp10.ext.thrift.ThriftWarpScriptExtension
Versions | Published |
---|---|
1.1.1-uberjar | 2021-05-21 |