Skip to content

gregrluck/hazelcast-jet-code-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hazelcast Jet Code Samples

A repository of code samples for Hazelcast Jet. It covers the high-level APIs (pipelines and java.util.stream) as well as the lower-level Core API. This is the basic layout of the directories:

  1. batch: batch jobs with high-level APIs
  2. streaming: streaming jobs with high-level APIs
  3. pcf: a sample application on the Pivotal Cloud Foundry infrastructure
  4. core-api/batch: batch jobs with the Core API
  5. core-api/streaming: streaming jobs with the Core API
  6. sample-data: a module containing the sample data shared by several samples
  7. refman: code snippets used in the Reference Manual

Batch Jobs

  • Access Log Analyzer

    Analyzes access log files from an HTTP server. Demonstrates the usage of file sources and sinks.

  • Co-Group Transform

    Uses the co-group transform to perform a full outer join of three streams on a common join key (a many-to-many relationship).

  • Hazelcast Connectors

    Demonstrates the usage of Hazelcast IMap, ICache and IList as data sources and sinks.

  • java.util.stream API Samples

    Several basic samples using the java.util.stream API.

  • Word Count

    Analyzes a set of documents and finds the number of occurrences of each word they contain.

  • Word Count with HDFS

    A Word Count job with the Hadoop File System as both source and sink.

Streaming Jobs

  • Data Enrichment Using Hash-Join

    Uses the hash-join transform to enrich an infinite stream of trade events. Attaches to each event the associated product and broker objects.

  • Map Journal Source

    Consumes and filters events generated from a Hazelcast IMap's Event Journal.

  • Kafka Source

    Demonstrates the usage of a Kafka topic as a Jet data source. Pours the data from a Kafka topic to a Hazelcast IMap.

  • Socket Connector

    Two code samples showing the usage of a TCP/IP socket as a source and a sink.

Pivotal Cloud Foundry

The directory pcf contains a sample Spring Boot application which shows how to use Hazelcast Jet in Pivotal Cloud Foundry environment.

Core API

Refer to the core-api readme for details on its contents.

License

Hazelcast is available under the Apache 2 License. Please see the Licensing section for more information.

Copyright

Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.

Visit www.hazelcast.com for more info.

About

Code Samples for Hazelcast Jet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%