Class DefaultParquetBufferPool
- Namespace
- Plank
- Assembly
- Plank.dll
Pools aligned native buffers and learns how many buffers of each size the process reuses.
public sealed class DefaultParquetBufferPool : IParquetBufferPool, IDisposable
- Inheritance
-
DefaultParquetBufferPool
- Implements
- Inherited Members
- Extension Methods
Constructors
DefaultParquetBufferPool()
public DefaultParquetBufferPool()
DefaultParquetBufferPool(ParquetBufferRetentionPolicy)
public DefaultParquetBufferPool(ParquetBufferRetentionPolicy retentionPolicy)
Parameters
retentionPolicyParquetBufferRetentionPolicy
DefaultParquetBufferPool(ParquetBufferRetentionPolicy, long)
public DefaultParquetBufferPool(ParquetBufferRetentionPolicy retentionPolicy, long maximumRetainedBytes)
Parameters
retentionPolicyParquetBufferRetentionPolicymaximumRetainedByteslong
Fields
Shared
Gets the process-wide pool, using adaptive p99 retention.
public static readonly DefaultParquetBufferPool Shared
Field Value
Properties
MaximumRetainedBytes
Gets the hard limit on idle native bytes retained by this pool.
public long MaximumRetainedBytes { get; }
Property Value
RetainedBytes
Gets the number of idle native bytes currently retained by this pool.
public long RetainedBytes { get; }
Property Value
RetentionPolicy
Gets the policy used to choose how many idle buffers to retain.
public ParquetBufferRetentionPolicy RetentionPolicy { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~DefaultParquetBufferPool()
protected ~DefaultParquetBufferPool()
Rent(uint)
public ParquetBuffer Rent(uint minimumByteLength)
Parameters
minimumByteLengthuint
Returns
Trim()
Releases every idle buffer without resetting learned demand.
public void Trim()