C# Class FoundationDB.Client.Native.FdbNative

Show file Open project: BedeGaming/foundationdb-dotnet-client Class Usage Examples

Public Methods

Method Description
ClusterCreateDatabase ( ClusterHandle cluster, string name ) : FutureHandle
ClusterDestroy ( IntPtr handle ) : void
ClusterSetOption ( ClusterHandle cluster, FdbClusterOption option, byte value, int valueLength ) : FdbError
CreateCluster ( string path ) : FutureHandle
DatabaseCreateTransaction ( DatabaseHandle database, TransactionHandle &transaction ) : FdbError
DatabaseDestroy ( IntPtr handle ) : void
DatabaseSetOption ( DatabaseHandle database, FdbDatabaseOption option, byte value, int valueLength ) : FdbError
FutureBlockUntilReady ( FutureHandle future ) : FdbError
FutureCancel ( FutureHandle futureHandle ) : void
FutureDestroy ( IntPtr futureHandle ) : void
FutureGetCluster ( FutureHandle future, ClusterHandle &cluster ) : FdbError
FutureGetDatabase ( FutureHandle future, DatabaseHandle &database ) : FdbError
FutureGetError ( FutureHandle future ) : FdbError
FutureGetKey ( FutureHandle future, Slice &key ) : FdbError
FutureGetKeyValueArray ( FutureHandle future, Slice>.KeyValuePair &result, bool &more ) : FdbError
FutureGetStringArray ( FutureHandle future, string &result ) : FdbError
FutureGetValue ( FutureHandle future, bool &valuePresent, Slice &value ) : FdbError
FutureGetVersion ( FutureHandle future, long &version ) : FdbError
FutureIsReady ( FutureHandle futureHandle ) : bool
FutureReleaseMemory ( FutureHandle futureHandle ) : void
FutureSetCallback ( FutureHandle future, FdbFutureCallback callback, IntPtr callbackParameter ) : FdbError
GetError ( FdbError code ) : string

fdb_get_error

GetMaxApiVersion ( ) : int

fdb_get_max_api_version

NetworkSetOption ( FdbNetworkOption option, byte value, int valueLength ) : FdbError
RunNetwork ( ) : FdbError
SelectApiVersion ( int version ) : FdbError

fdb_select_api_impl

SelectApiVersionImpl ( int runtimeVersion, int headerVersion ) : FdbError

fdb_select_api_impl

SetupNetwork ( ) : FdbError
StopNetwork ( ) : FdbError
ToNativeString ( string value, bool nullTerminated ) : Slice

Converts a string into an ANSI byte array

TransactionAddConflictRange ( TransactionHandle transaction, Slice beginKey, Slice endKey, FdbConflictRangeType type ) : FdbError
TransactionAtomicOperation ( TransactionHandle transaction, Slice key, Slice param, FdbMutationType operationType ) : void
TransactionCancel ( TransactionHandle transaction ) : void
TransactionClear ( TransactionHandle transaction, Slice key ) : void
TransactionClearRange ( TransactionHandle transaction, Slice beginKey, Slice endKey ) : void
TransactionCommit ( TransactionHandle transaction ) : FutureHandle
TransactionDestroy ( IntPtr handle ) : void
TransactionGet ( TransactionHandle transaction, Slice key, bool snapshot ) : FutureHandle
TransactionGetAddressesForKey ( TransactionHandle transaction, Slice key ) : FutureHandle
TransactionGetCommittedVersion ( TransactionHandle transaction, long &version ) : FdbError
TransactionGetKey ( TransactionHandle transaction, FdbKeySelector selector, bool snapshot ) : FutureHandle
TransactionGetRange ( TransactionHandle transaction, FdbKeySelector begin, FdbKeySelector end, int limit, int targetBytes, FdbStreamingMode mode, int iteration, bool snapshot, bool reverse ) : FutureHandle
TransactionGetReadVersion ( TransactionHandle transaction ) : FutureHandle
TransactionOnError ( TransactionHandle transaction, FdbError errorCode ) : FutureHandle
TransactionReset ( TransactionHandle transaction ) : void
TransactionSet ( TransactionHandle transaction, Slice key, Slice value ) : void
TransactionSetOption ( TransactionHandle transaction, FdbTransactionOption option, byte value, int valueLength ) : FdbError
TransactionSetReadVersion ( TransactionHandle transaction, long version ) : void
TransactionWatch ( TransactionHandle transaction, Slice key ) : FutureHandle

Private Methods

Method Description
EnsureLibraryIsLoaded ( ) : void
FdbNative ( ) : FoundationDB.Client.Utils
ToManagedString ( IntPtr nativeString ) : string
ToManagedString ( byte nativeString ) : string

Method Details

ClusterCreateDatabase() public static method

public static ClusterCreateDatabase ( ClusterHandle cluster, string name ) : FutureHandle
cluster ClusterHandle
name string
return FutureHandle

ClusterDestroy() public static method

public static ClusterDestroy ( IntPtr handle ) : void
handle System.IntPtr
return void

ClusterSetOption() public static method

public static ClusterSetOption ( ClusterHandle cluster, FdbClusterOption option, byte value, int valueLength ) : FdbError
cluster ClusterHandle
option FdbClusterOption
value byte
valueLength int
return FdbError

CreateCluster() public static method

public static CreateCluster ( string path ) : FutureHandle
path string
return FutureHandle

DatabaseCreateTransaction() public static method

public static DatabaseCreateTransaction ( DatabaseHandle database, TransactionHandle &transaction ) : FdbError
database DatabaseHandle
transaction TransactionHandle
return FdbError

DatabaseDestroy() public static method

public static DatabaseDestroy ( IntPtr handle ) : void
handle System.IntPtr
return void

DatabaseSetOption() public static method

public static DatabaseSetOption ( DatabaseHandle database, FdbDatabaseOption option, byte value, int valueLength ) : FdbError
database DatabaseHandle
option FdbDatabaseOption
value byte
valueLength int
return FdbError

FutureBlockUntilReady() public static method

public static FutureBlockUntilReady ( FutureHandle future ) : FdbError
future FutureHandle
return FdbError

FutureCancel() public static method

public static FutureCancel ( FutureHandle futureHandle ) : void
futureHandle FutureHandle
return void

FutureDestroy() public static method

public static FutureDestroy ( IntPtr futureHandle ) : void
futureHandle System.IntPtr
return void

FutureGetCluster() public static method

public static FutureGetCluster ( FutureHandle future, ClusterHandle &cluster ) : FdbError
future FutureHandle
cluster ClusterHandle
return FdbError

FutureGetDatabase() public static method

public static FutureGetDatabase ( FutureHandle future, DatabaseHandle &database ) : FdbError
future FutureHandle
database DatabaseHandle
return FdbError

FutureGetError() public static method

public static FutureGetError ( FutureHandle future ) : FdbError
future FutureHandle
return FdbError

FutureGetKey() public static method

public static FutureGetKey ( FutureHandle future, Slice &key ) : FdbError
future FutureHandle
key Slice
return FdbError

FutureGetKeyValueArray() public static method

public static FutureGetKeyValueArray ( FutureHandle future, Slice>.KeyValuePair &result, bool &more ) : FdbError
future FutureHandle
result Slice>.KeyValuePair
more bool
return FdbError

FutureGetStringArray() public static method

public static FutureGetStringArray ( FutureHandle future, string &result ) : FdbError
future FutureHandle
result string
return FdbError

FutureGetValue() public static method

public static FutureGetValue ( FutureHandle future, bool &valuePresent, Slice &value ) : FdbError
future FutureHandle
valuePresent bool
value Slice
return FdbError

FutureGetVersion() public static method

public static FutureGetVersion ( FutureHandle future, long &version ) : FdbError
future FutureHandle
version long
return FdbError

FutureIsReady() public static method

public static FutureIsReady ( FutureHandle futureHandle ) : bool
futureHandle FutureHandle
return bool

FutureReleaseMemory() public static method

public static FutureReleaseMemory ( FutureHandle futureHandle ) : void
futureHandle FutureHandle
return void

FutureSetCallback() public static method

public static FutureSetCallback ( FutureHandle future, FdbFutureCallback callback, IntPtr callbackParameter ) : FdbError
future FutureHandle
callback FdbFutureCallback
callbackParameter System.IntPtr
return FdbError

GetError() public static method

fdb_get_error
public static GetError ( FdbError code ) : string
code FdbError
return string

GetMaxApiVersion() public static method

fdb_get_max_api_version
public static GetMaxApiVersion ( ) : int
return int

NetworkSetOption() public static method

public static NetworkSetOption ( FdbNetworkOption option, byte value, int valueLength ) : FdbError
option FdbNetworkOption
value byte
valueLength int
return FdbError

RunNetwork() public static method

public static RunNetwork ( ) : FdbError
return FdbError

SelectApiVersion() public static method

fdb_select_api_impl
public static SelectApiVersion ( int version ) : FdbError
version int
return FdbError

SelectApiVersionImpl() public static method

fdb_select_api_impl
public static SelectApiVersionImpl ( int runtimeVersion, int headerVersion ) : FdbError
runtimeVersion int
headerVersion int
return FdbError

SetupNetwork() public static method

public static SetupNetwork ( ) : FdbError
return FdbError

StopNetwork() public static method

public static StopNetwork ( ) : FdbError
return FdbError

ToNativeString() public static method

Converts a string into an ANSI byte array
public static ToNativeString ( string value, bool nullTerminated ) : Slice
value string String to convert (or null)
nullTerminated bool If true, adds a terminating \0 at the end (C-style strings)
return Slice

TransactionAddConflictRange() public static method

public static TransactionAddConflictRange ( TransactionHandle transaction, Slice beginKey, Slice endKey, FdbConflictRangeType type ) : FdbError
transaction TransactionHandle
beginKey Slice
endKey Slice
type FdbConflictRangeType
return FdbError

TransactionAtomicOperation() public static method

public static TransactionAtomicOperation ( TransactionHandle transaction, Slice key, Slice param, FdbMutationType operationType ) : void
transaction TransactionHandle
key Slice
param Slice
operationType FdbMutationType
return void

TransactionCancel() public static method

public static TransactionCancel ( TransactionHandle transaction ) : void
transaction TransactionHandle
return void

TransactionClear() public static method

public static TransactionClear ( TransactionHandle transaction, Slice key ) : void
transaction TransactionHandle
key Slice
return void

TransactionClearRange() public static method

public static TransactionClearRange ( TransactionHandle transaction, Slice beginKey, Slice endKey ) : void
transaction TransactionHandle
beginKey Slice
endKey Slice
return void

TransactionCommit() public static method

public static TransactionCommit ( TransactionHandle transaction ) : FutureHandle
transaction TransactionHandle
return FutureHandle

TransactionDestroy() public static method

public static TransactionDestroy ( IntPtr handle ) : void
handle System.IntPtr
return void

TransactionGet() public static method

public static TransactionGet ( TransactionHandle transaction, Slice key, bool snapshot ) : FutureHandle
transaction TransactionHandle
key Slice
snapshot bool
return FutureHandle

TransactionGetAddressesForKey() public static method

public static TransactionGetAddressesForKey ( TransactionHandle transaction, Slice key ) : FutureHandle
transaction TransactionHandle
key Slice
return FutureHandle

TransactionGetCommittedVersion() public static method

public static TransactionGetCommittedVersion ( TransactionHandle transaction, long &version ) : FdbError
transaction TransactionHandle
version long
return FdbError

TransactionGetKey() public static method

public static TransactionGetKey ( TransactionHandle transaction, FdbKeySelector selector, bool snapshot ) : FutureHandle
transaction TransactionHandle
selector FdbKeySelector
snapshot bool
return FutureHandle

TransactionGetRange() public static method

public static TransactionGetRange ( TransactionHandle transaction, FdbKeySelector begin, FdbKeySelector end, int limit, int targetBytes, FdbStreamingMode mode, int iteration, bool snapshot, bool reverse ) : FutureHandle
transaction TransactionHandle
begin FdbKeySelector
end FdbKeySelector
limit int
targetBytes int
mode FdbStreamingMode
iteration int
snapshot bool
reverse bool
return FutureHandle

TransactionGetReadVersion() public static method

public static TransactionGetReadVersion ( TransactionHandle transaction ) : FutureHandle
transaction TransactionHandle
return FutureHandle

TransactionOnError() public static method

public static TransactionOnError ( TransactionHandle transaction, FdbError errorCode ) : FutureHandle
transaction TransactionHandle
errorCode FdbError
return FutureHandle

TransactionReset() public static method

public static TransactionReset ( TransactionHandle transaction ) : void
transaction TransactionHandle
return void

TransactionSet() public static method

public static TransactionSet ( TransactionHandle transaction, Slice key, Slice value ) : void
transaction TransactionHandle
key Slice
value Slice
return void

TransactionSetOption() public static method

public static TransactionSetOption ( TransactionHandle transaction, FdbTransactionOption option, byte value, int valueLength ) : FdbError
transaction TransactionHandle
option FdbTransactionOption
value byte
valueLength int
return FdbError

TransactionSetReadVersion() public static method

public static TransactionSetReadVersion ( TransactionHandle transaction, long version ) : void
transaction TransactionHandle
version long
return void

TransactionWatch() public static method

public static TransactionWatch ( TransactionHandle transaction, Slice key ) : FutureHandle
transaction TransactionHandle
key Slice
return FutureHandle