Class VariableSizeDiskSegment<TKey, TValue>
Inheritance
VariableSizeDiskSegment<TKey, TValue>
Assembly: ZoneTree.dll
Syntax
public sealed class VariableSizeDiskSegment<TKey, TValue> : DiskSegment<TKey, TValue>, IDiskSegment<TKey, TValue>, IReadOnlySegment<TKey, TValue>, IIndexedReader<TKey, TValue>, IDisposable
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
|
Improve this Doc
View Source
VariableSizeDiskSegment(long, ZoneTreeOptions<TKey, TValue>)
Declaration
public VariableSizeDiskSegment(long segmentId, ZoneTreeOptions<TKey, TValue> options)
Parameters
|
Improve this Doc
View Source
VariableSizeDiskSegment(long, ZoneTreeOptions<TKey, TValue>, IRandomAccessDevice, IRandomAccessDevice)
Declaration
public VariableSizeDiskSegment(long segmentId, ZoneTreeOptions<TKey, TValue> options, IRandomAccessDevice dataHeaderDevice, IRandomAccessDevice dataDevice)
Parameters
Properties
|
Improve this Doc
View Source
ReadBufferCount
Gets the count of read buffers.
Declaration
public override int ReadBufferCount { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
DeleteDevices()
Declaration
protected override void DeleteDevices()
Overrides
|
Improve this Doc
View Source
ReadKey(long, BlockPin)
Declaration
protected override TKey ReadKey(long index, BlockPin blockPin)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
ReadValue(long, BlockPin)
Declaration
protected override TValue ReadValue(long index, BlockPin blockPin)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
ReleaseReadBuffers(long)
Releases internal read buffers that have not been used since the specified tick count.
Declaration
public override int ReleaseReadBuffers(long ticks)
Parameters
Type |
Name |
Description |
long |
ticks |
|
Returns
Type |
Description |
int |
The total number of released read buffers.
|
Overrides
|
Improve this Doc
View Source
ReleaseResources()
Declaration
public override void ReleaseResources()
Overrides
|
Improve this Doc
View Source
SetDefaultSparseArray(IReadOnlyList<SparseArrayEntry<TKey, TValue>>)
Sets default sparse array of the disk segment and persists it to the disk.
Declaration
public override void SetDefaultSparseArray(IReadOnlyList<SparseArrayEntry<TKey, TValue>> defaultSparseArray)
Parameters
Overrides
Implements