GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DataflowJavaSDK/contrib/firebaseio at master · knowledgehacker/DataflowJavaSDK

Expand file tree

/

firebaseio

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

firebaseio

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
AUTHORS.md
AUTHORS.md
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

FirebaseIO for Dataflow

This library includes two components for communicating with Firebase from Dataflow:

  • FirebaseSource an UnboundedSource which can watch a Firebase ref for events and attempts (but does not guarantee) to deliver those events in order to the Dataflow pipeline. The source will unmarshal DataSnapshots generated by these events into the paramaterized type specified by your FirebaseSource, which can be any object serializable by Jackson.

  • Various FirebaseDoFn which can be used to write data to a firebase:

    • DoFirebasePush will attach unique and time-ordered strings as keys to objects recieved from the pipeline.
    • DoFirebaseSet will overriding data at the key's location with the specified Object
    • DoFirebaseUpdate will update the tree at the ref with the given Map<String, Object>

These utilities also use various FirebaseEvents to wrap your unmarshalled data in a Jackson Serializable POJO, which retains event type information. So for example you could filter a pipeline on ChildAdded<T> events, where your original DataSnapshot was unmarshalled into a Jackson Serializable POJO of type T.

The library uses the firebase JVM client library and as such takes advantage of Web sockets for data transfer. However this means that writing to Firebase will use one websocket per shard, so if you plan to fan out your writes, make sure to limit the parallelism with PTransform#withMaxParallelism to avoid capping out your available connections.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.