Interface Partition<T>

Type Parameters:
T - the type of element
All Superinterfaces:
Queryable<T>

public interface Partition<T> extends Queryable<T>
Represents partition
Since:
4.0.0
  • Field Details

    • EMPTY_PARTITION

      static final Partition EMPTY_PARTITION
      Represents the empty Partition instance
      Since:
      4.0.0
  • Method Details

    • of

      static <T> Partition<Tuple2<T,Long>> of(List<Tuple2<T,Long>> listWithIndex)
      Factory method to create Partition instance
      Type Parameters:
      T - the type of element
      Parameters:
      listWithIndex - the list with index
      Returns:
      the Partition instance
      Since:
      4.0.0
    • emptyPartition

      static <T> Partition<T> emptyPartition()
      Returns the empty Partition instance
      Type Parameters:
      T - the type of element
      Returns:
      the empty Partition instance
      Since:
      4.0.0