Struct CacheOptions
- Namespace
- ParquetSharp
- Assembly
- ParquetSharp.dll
public struct CacheOptions
- Inherited Members
Constructors
CacheOptions(long, long, bool, long)
public CacheOptions(long hole_size_limit, long range_size_limit, bool lazy, long prefetch_limit = 0)
Parameters
Fields
hole_size_limit
The maximum distance in bytes between two consecutive ranges; beyond this value, ranges are not combined
public long hole_size_limit
Field Value
lazy
A lazy cache does not perform any I/O until requested. lazy = false: request all byte ranges when PreBuffer or WillNeed is called. lazy = True, prefetch_limit = 0: request merged byte ranges only after the reader needs them. lazy = True, prefetch_limit = k: prefetch up to k merged byte ranges ahead of the range that is currently being read.
public bool lazy
Field Value
prefetch_limit
The maximum number of ranges to be prefetched. This is only used for lazy cache to asynchronously read some ranges after reading the target range.
public long prefetch_limit
Field Value
range_size_limit
The maximum size in bytes of a combined range; if combining two consecutive ranges would produce a range of a size greater than this, they are not combined
public long range_size_limit