C# Class BplusDotNet.BplusTree

Tree index mapping strings to strings.
Inheritance: IStringTree
显示文件 Open project: benaston/BTree Class Usage Examples

Public Properties

Property Type Description
tree ITreeIndex

Public Methods

Method Description
Abort ( ) : void
BplusTree ( ITreeIndex tree ) : System
BytesToString ( byte bytes ) : string
Commit ( ) : void
Compare ( string left, string right ) : int
ContainsKey ( string key ) : bool
FirstKey ( ) : string
Get ( string key, object defaultValue ) : object
Initialize ( System treefile, System blockfile, int KeyLength ) : BplusTree
Initialize ( System treefile, System blockfile, int KeyLength, int CultureId ) : BplusTree
Initialize ( System treefile, System blockfile, int KeyLength, int CultureId, int nodesize, int buffersize ) : BplusTree
Initialize ( string treefileName, string blockfileName, int KeyLength ) : BplusTree
Initialize ( string treefileName, string blockfileName, int KeyLength, int CultureId ) : BplusTree
Initialize ( string treefileName, string blockfileName, int KeyLength, int CultureId, int nodesize, int buffersize ) : BplusTree
NextKey ( string AfterThisKey ) : string
ReOpen ( System treefile, System blockfile ) : BplusTree
ReOpen ( string treefileName, string blockfileName ) : BplusTree
ReadOnly ( string treefileName, string blockfileName ) : BplusTree
Recover ( bool CorrectErrors ) : void
RemoveKey ( string key ) : void
Set ( string key, object map ) : void
SetFootPrintLimit ( int limit ) : void
Shutdown ( ) : void
StringToBytes ( string thestring ) : byte[]
this ( string key ) : string
toHtml ( ) : string

Protected Methods

Method Description
checkTree ( ) : bool

Method Details

Abort() public method

public Abort ( ) : void
return void

BplusTree() public method

public BplusTree ( ITreeIndex tree ) : System
tree ITreeIndex
return System

BytesToString() public static method

public static BytesToString ( byte bytes ) : string
bytes byte
return string

Commit() public method

public Commit ( ) : void
return void

Compare() public method

public Compare ( string left, string right ) : int
left string
right string
return int

ContainsKey() public method

public ContainsKey ( string key ) : bool
key string
return bool

FirstKey() public method

public FirstKey ( ) : string
return string

Get() public method

public Get ( string key, object defaultValue ) : object
key string
defaultValue object
return object

Initialize() public static method

public static Initialize ( System treefile, System blockfile, int KeyLength ) : BplusTree
treefile System
blockfile System
KeyLength int
return BplusTree

Initialize() public static method

public static Initialize ( System treefile, System blockfile, int KeyLength, int CultureId ) : BplusTree
treefile System
blockfile System
KeyLength int
CultureId int
return BplusTree

Initialize() public static method

public static Initialize ( System treefile, System blockfile, int KeyLength, int CultureId, int nodesize, int buffersize ) : BplusTree
treefile System
blockfile System
KeyLength int
CultureId int
nodesize int
buffersize int
return BplusTree

Initialize() public static method

public static Initialize ( string treefileName, string blockfileName, int KeyLength ) : BplusTree
treefileName string
blockfileName string
KeyLength int
return BplusTree

Initialize() public static method

public static Initialize ( string treefileName, string blockfileName, int KeyLength, int CultureId ) : BplusTree
treefileName string
blockfileName string
KeyLength int
CultureId int
return BplusTree

Initialize() public static method

public static Initialize ( string treefileName, string blockfileName, int KeyLength, int CultureId, int nodesize, int buffersize ) : BplusTree
treefileName string
blockfileName string
KeyLength int
CultureId int
nodesize int
buffersize int
return BplusTree

NextKey() public method

public NextKey ( string AfterThisKey ) : string
AfterThisKey string
return string

ReOpen() public static method

public static ReOpen ( System treefile, System blockfile ) : BplusTree
treefile System
blockfile System
return BplusTree

ReOpen() public static method

public static ReOpen ( string treefileName, string blockfileName ) : BplusTree
treefileName string
blockfileName string
return BplusTree

ReadOnly() public static method

public static ReadOnly ( string treefileName, string blockfileName ) : BplusTree
treefileName string
blockfileName string
return BplusTree

Recover() public method

public Recover ( bool CorrectErrors ) : void
CorrectErrors bool
return void

RemoveKey() public method

public RemoveKey ( string key ) : void
key string
return void

Set() public method

public Set ( string key, object map ) : void
key string
map object
return void

SetFootPrintLimit() public method

public SetFootPrintLimit ( int limit ) : void
limit int
return void

Shutdown() public method

public Shutdown ( ) : void
return void

StringToBytes() public static method

public static StringToBytes ( string thestring ) : byte[]
thestring string
return byte[]

checkTree() protected method

protected checkTree ( ) : bool
return bool

this() public method

public this ( string key ) : string
key string
return string

toHtml() public method

public toHtml ( ) : string
return string

Property Details

tree public_oe property

Internal tree mapping strings to bytes (for conversion to strings).
public ITreeIndex tree
return ITreeIndex