@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same number of months, " + "day of month, start date and time zone are compatible.", MonthsWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same number of years, month of year, " + "day of month, start date and time zone are compatible.", YearsWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "%s is only compatible with %s.", Sessions.class.getSimpleName(), Sessions.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same window supplier are compatible.", StaticWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "%s is only compatible with %s.", GlobalWindows.class.getSimpleName(), GlobalWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same originalWindowFn are compatible.", InvalidWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "%s is only compatible with %s.", ValidityWindows.class.getSimpleName(), ValidityWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same size, period and offset are compatible.", SlidingWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same number of days, start date " + "and time zone are compatible.", DaysWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "Only %s objects with the same size and offset are compatible.", FixedWindows.class.getSimpleName())); } }
/** * Throw {@link IncompatibleWindowException} if this WindowFn does not perform the same merging as * the given ${@code WindowFn}. * * @throws IncompatibleWindowException if compared WindowFns are not compatible. */ public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "%s is not compatible with %s", this.getClass().getSimpleName(), other.getClass().getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { throw new IncompatibleWindowException( other, String.format( "%s is not compatible with any other %s.", EvaluatorTestWindowFn.class.getSimpleName(), WindowFn.class.getSimpleName())); }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { throw new IncompatibleWindowException( other, String.format( "%s is not compatible with any other %s.", EvaluatorTestWindowFn.class.getSimpleName(), WindowFn.class.getSimpleName())); }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "%s is only compatible with %s.", PartitionedGlobalWindows.class.getSimpleName(), PartitionedGlobalWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, String.format( "%s is only compatible with %s.", CustomWindows.class.getSimpleName(), CustomWindows.class.getSimpleName())); } }
@Override public void verifyCompatibility(WindowFn<?, ?> other) throws IncompatibleWindowException { if (!this.isCompatible(other)) { throw new IncompatibleWindowException( other, "WindowOddEvenBuckets is only compatible with WindowOddEvenBuckets."); } }