DisplayData.Builder (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1


Interface DisplayData.Builder

  • Enclosing class:

    public static interface DisplayData.Builder
    Utility to build up display data from a component and its included subcomponents.
    • Method Detail

      • include

        DisplayData.Builder include(HasDisplayData subComponent)
        Register display data from the specified subcomponent. For example, a PTransform which delegates to a user-provided function can implement HasDisplayData on the function and include it from the PTransform:
         public void populateDisplayData(DisplayData.Builder builder) {
             .add(DisplayData.item("userFn", userFn)) // To register the class name of the userFn
             .include(userFn); // To allow the userFn to register additional display data

        Using include(subcomponent) will associate each of the registered items with the namespace of the subcomponent being registered. To register display data in the current namespace, such as from a base class implementation, use subcomponent.populateDisplayData(builder) instead.

        See Also:

이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.