Skip to content

Commit

Permalink
[BEAM-3612] Add way to query input registration
Browse files Browse the repository at this point in the history
  • Loading branch information
lostluck committed Oct 5, 2018
1 parent 9ac7ad4 commit 7fbf886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdks/go/pkg/beam/core/runtime/exec/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ func RegisterInput(t reflect.Type, maker func(ReStream) ReusableInput) {
inputs[t] = maker
}

// IsInputRegistered returns whether an input maker has already been registered.
func IsInputRegistered(t reflect.Type) bool {
_, exists := inputs[t]
return exists
}

type reIterValue struct {
t reflect.Type
s ReStream
Expand Down

0 comments on commit 7fbf886

Please sign in to comment.