WindowFn.MergeContext (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.transforms.windowing

Class WindowFn.MergeContext

  • java.lang.Object
    • com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn.MergeContext
    • Constructor Detail

      • MergeContext

        public MergeContext()
    • Method Detail

      • windows

        public abstract Collection<W> windows()
        Returns the current set of windows.
      • merge

        public abstract void merge(Collection<W> toBeMerged,
                                   W mergeResult)
                            throws Exception
        Signals to the framework that the windows in toBeMerged should be merged together to form mergeResult.

        toBeMerged should be a subset of windows() and disjoint from the toBeMerged set of previous calls to merge.

        mergeResult must either not be in windows() or be in toBeMerged.

        Throws:
        IllegalArgumentException - if any elements of toBeMerged are not in windows(), or have already been merged
        Exception


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

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

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