ArrowRunEndEncodedType constructor

ArrowRunEndEncodedType(
  1. ArrowField runEndsField,
  2. ArrowField valuesField
)

Implementation

ArrowRunEndEncodedType(this.runEndsField, this.valuesField) {
  final type = runEndsField.type;
  if (type is! ArrowIntegerType ||
      !type.signed ||
      type.bitWidth < 16 ||
      type.bitWidth > 64 ||
      runEndsField.nullable) {
    throw ArgumentError.value(
      runEndsField,
      'runEndsField',
      'must be a non-nullable int16, int32, or int64 field',
    );
  }
}