Apache Ignite.NET
Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi Class Reference

File-based swap space SPI implementation which holds keys in memory and values on disk. It is intended for cases when value is bigger than 100 bytes, otherwise it will not have any positive effect. More...

Inheritance diagram for Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi:
Apache.Ignite.Core.SwapSpace.ISwapSpaceSpi

Public Member Functions

 FileSwapSpaceSpi ()
 Initializes a new instance of the FileSwapSpaceSpi class. More...
 

Public Attributes

const float DefaultMaximumSparsity = 0.5f
 Default value for MaximumSparsity property. More...
 
const int DefaultWriteBufferSize = 64 * 1024
 Default value for WriteBufferSize property. More...
 
const int DefaultMaximumWriteQueueSize = 1024 * 1024
 Default value for MaximumWriteQueueSize property. More...
 

Static Public Attributes

static readonly int DefaultReadStripesNumber = Environment.ProcessorCount
 Default value for ReadStripesNumber property. More...
 

Properties

string BaseDirectory [get, set]
 Gets or sets the base directory. More...
 
float MaximumSparsity [get, set]
 Gets or sets the maximum sparsity. This property defines maximum acceptable wasted file space to whole file size ratio. When this ratio becomes higher than specified number compacting thread starts working. More...
 
int MaximumWriteQueueSize [get, set]
 Gets or sets the maximum size of the write queue in bytes. If there are more values are waiting to be written to disk then specified size, SPI will block on write operation. More...
 
int ReadStripesNumber [get, set]
 Gets or sets the read stripes number. Defines number of file channels to be used concurrently. Default is Environment.ProcessorCount. More...
 
int WriteBufferSize [get, set]
 Gets or sets the size of the write buffer, in bytes. Write to disk occurs only when this buffer is full. More...
 

Detailed Description

Constructor & Destructor Documentation

Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.FileSwapSpaceSpi ( )

Member Data Documentation

const float Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.DefaultMaximumSparsity = 0.5f
const int Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.DefaultMaximumWriteQueueSize = 1024 * 1024
readonly int Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.DefaultReadStripesNumber = Environment.ProcessorCount
static
const int Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.DefaultWriteBufferSize = 64 * 1024

Property Documentation

string Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.BaseDirectory
getset
float Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.MaximumSparsity
getset

The maximum sparsity. Must be between 0 and 1.

int Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.MaximumWriteQueueSize
getset

The maximum size of the write queue, in bytes.

int Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.ReadStripesNumber
getset

Number of read stripes.

int Apache.Ignite.Core.SwapSpace.File.FileSwapSpaceSpi.WriteBufferSize
getset

The size of the write buffer, in bytes.