Skip to content

abnercorrea/apache-beam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Repo with Apache Beam Java code.

Interrresting things:

  1. Transform to manipulate Rows and update the schema automatically. Example:
pcoll.apply( TransformRows.create() .withField("a", TypeDescriptors.longs(), r -> r.getInt64("a")) .withField("b", TypeDescriptors.strings(), r -> r.getString("b") + " " + r.getInt64("a")) .withField("aIsEven", TypeDescriptors.booleans(), r -> r.getInt64("a") % 2 == 0) .withField("c", TypeDescriptors.longs(), generateC) .withField("d", TypeDescriptors.longs(), r -> 2 * generateC.apply(r)) .withField("numbers", TypeDescriptors.lists(TypeDescriptors.longs()), r -> List.of(r.getInt64("key"), r.getInt64("a"))) .withFieldRenamed("b", "name") .withFieldRenamed("d", "doubleC") .drop("key") )
  1. Simple framework to unit test beam pipelines as is, without rewriting them to replace / remove sources and sinks. Example:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages