Example: Basic Java Code to generate events Parquet file to use for S3 integration with Split.
Environment:
- Maven
- Java 10.0.1
How to use:
- Unzip the attached folder
- Open file PraquetDemo.java it contains two event records similar to the one below, make sure to set the correct event data:
Event e1 = Event.builder()
.environmentId("029bd160-7e36-11e8-9a1c-0acd31e5aef0")
.trafficTypeId("e6910420-5c85-11e9-bbc9-12a5cc2af8fe")
.eventTypeId("s3-integration")
.key("key1")
.timestamp(System.currentTimeMillis())
.withProperty("foo", "bar")
.build();
- From command line cd to the folder and type
mvn install
- The resulted parquet file is generated under:
./demo.parquet.gz
Comments
0 comments
Please sign in to leave a comment.