Class CompleteStateIterator<T>

java.lang.Object
org.apache.flink.runtime.state.v2.adaptor.CompleteStateIterator<T>
All Implemented Interfaces:
org.apache.flink.api.common.state.v2.StateIterator<T>, org.apache.flink.core.state.InternalStateIterator<T>

public class CompleteStateIterator<T> extends Object implements org.apache.flink.core.state.InternalStateIterator<T>
A StateIterator that has all elements.
  • Constructor Details

    • CompleteStateIterator

      public CompleteStateIterator(@Nullable Iterable<T> iterable)
  • Method Details

    • onNext

      public <U> org.apache.flink.api.common.state.v2.StateFuture<Collection<U>> onNext(org.apache.flink.util.function.FunctionWithException<T,org.apache.flink.api.common.state.v2.StateFuture<? extends U>,Exception> iterating)
      Specified by:
      onNext in interface org.apache.flink.api.common.state.v2.StateIterator<T>
    • onNext

      public org.apache.flink.api.common.state.v2.StateFuture<Void> onNext(org.apache.flink.util.function.ThrowingConsumer<T,Exception> iterating)
      Specified by:
      onNext in interface org.apache.flink.api.common.state.v2.StateIterator<T>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.apache.flink.api.common.state.v2.StateIterator<T>
    • hasNextLoading

      public boolean hasNextLoading()
      Specified by:
      hasNextLoading in interface org.apache.flink.core.state.InternalStateIterator<T>
    • getCurrentCache

      public Iterable<T> getCurrentCache()
      Specified by:
      getCurrentCache in interface org.apache.flink.core.state.InternalStateIterator<T>