Class GenericDatumReaderOptions
Limits that protect GenericDatumReader against malformed or hostile input.
public sealed class GenericDatumReaderOptions
- Inheritance
-
GenericDatumReaderOptions
- Inherited Members
Fields
- DefaultMaxDepth
The default MaxDepth: 128.
- DefaultMaxZeroSizeItems
The default MaxZeroSizeItems: 65,536.
Properties
- Default
Gets the default options.
- MaxDepth
Gets the deepest nesting of records allowed while reading one value, at least 1. Deeper input is rejected with AvroDataException instead of overflowing the stack. The default is DefaultMaxDepth.
- MaxZeroSizeItems
Gets the largest total number of zero-size array items (for example
nulls or empty records) allowed while reading one value, zero or more. Such items take no input bytes, so the input size cannot bound them. The default is DefaultMaxZeroSizeItems.