Skip to content

Commit

Permalink
Merge pull request #6597 from lostluck/patch-15
Browse files Browse the repository at this point in the history
[BEAM-3612] Add way to query input registration
  • Loading branch information
aaltay committed Oct 5, 2018
2 parents d0810ef + 7fbf886 commit e4965ad
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 e4965ad

Please sign in to comment.