FetchPartition constructor

FetchPartition(
  1. int partition,
  2. int fetchOffset,
  3. int partitionMaxBytes
)

Creates a selection; rejects negative indices/offsets or nonpositive limits.

Implementation

FetchPartition(this.partition, this.fetchOffset, this.partitionMaxBytes) {
  if (partition < 0 || fetchOffset < 0 || partitionMaxBytes <= 0) {
    throw ArgumentError('Invalid partition, offset, or fetch byte limit');
  }
}