C# 클래스 FoundationDB.Layers.Blobs.FdbBlob

파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client

공개 메소드들

메소드 설명
AppendAsync ( IFdbTransaction trans, Slice data ) : System.Threading.Tasks.Task

Append the contents of data onto the end of the blob.

Delete ( IFdbTransaction trans ) : void

Delete all key-value pairs associated with the blob.

FdbBlob ( FdbSubspace subspace ) : FoundationDB.Client

Create a new object representing a binary large object (blob). Only keys within the subspace will be used by the object. Other clients of the database should refrain from modifying the subspace.

GetSizeAsync ( IFdbReadOnlyTransaction trans ) : Task

Get the size (in bytes) of the blob.

ReadAsync ( IFdbReadOnlyTransaction trans, long offset, int n ) : Task

Read from the blob, starting at offset, retrieving up to n bytes (fewer then n bytes are returned when the end of the blob is reached).

TruncateAsync ( IFdbTransaction trans, long newLength ) : System.Threading.Tasks.Task

Change the blob length to newLength, erasing any data when shrinking, and filling new bytes with 0 when growing.

WriteAsync ( IFdbTransaction trans, long offset, Slice data ) : System.Threading.Tasks.Task

Write data to the blob, starting at and overwriting any existing data at that location. The length of the blob is increased if necessary.

보호된 메소드들

메소드 설명
AttributeKey ( string name ) : Slice
DataKey ( long offset ) : Slice

Returns the key for data chunk at the specified offset

DataKeyOffset ( Slice key ) : long
SizeKey ( ) : Slice

비공개 메소드들

메소드 설명
GetChunkAtAsync ( IFdbTransaction trans, long offset ) : Task
MakeSparseAsync ( IFdbTransaction trans, long start, long end ) : System.Threading.Tasks.Task
MakeSplitPointAsync ( IFdbTransaction trans, long offset ) : System.Threading.Tasks.Task
SetSize ( IFdbTransaction trans, long size ) : void
TryRemoteSplitPointAsync ( IFdbTransaction trans, long offset ) : Task
WriteToSparse ( IFdbTransaction trans, long offset, Slice data ) : void

메소드 상세

AppendAsync() 공개 메소드

Append the contents of data onto the end of the blob.
public AppendAsync ( IFdbTransaction trans, Slice data ) : System.Threading.Tasks.Task
trans IFdbTransaction
data Slice
리턴 System.Threading.Tasks.Task

AttributeKey() 보호된 메소드

protected AttributeKey ( string name ) : Slice
name string
리턴 Slice

DataKey() 보호된 메소드

Returns the key for data chunk at the specified offset
protected DataKey ( long offset ) : Slice
offset long
리턴 Slice

DataKeyOffset() 보호된 메소드

protected DataKeyOffset ( Slice key ) : long
key Slice
리턴 long

Delete() 공개 메소드

Delete all key-value pairs associated with the blob.
public Delete ( IFdbTransaction trans ) : void
trans IFdbTransaction
리턴 void

FdbBlob() 공개 메소드

Create a new object representing a binary large object (blob). Only keys within the subspace will be used by the object. Other clients of the database should refrain from modifying the subspace.
public FdbBlob ( FdbSubspace subspace ) : FoundationDB.Client
subspace FdbSubspace Subspace to be used for storing the blob data and metadata
리턴 FoundationDB.Client

GetSizeAsync() 공개 메소드

Get the size (in bytes) of the blob.
public GetSizeAsync ( IFdbReadOnlyTransaction trans ) : Task
trans IFdbReadOnlyTransaction
리턴 Task

ReadAsync() 공개 메소드

Read from the blob, starting at offset, retrieving up to n bytes (fewer then n bytes are returned when the end of the blob is reached).
public ReadAsync ( IFdbReadOnlyTransaction trans, long offset, int n ) : Task
trans IFdbReadOnlyTransaction
offset long
n int
리턴 Task

SizeKey() 보호된 메소드

protected SizeKey ( ) : Slice
리턴 Slice

TruncateAsync() 공개 메소드

Change the blob length to newLength, erasing any data when shrinking, and filling new bytes with 0 when growing.
public TruncateAsync ( IFdbTransaction trans, long newLength ) : System.Threading.Tasks.Task
trans IFdbTransaction
newLength long
리턴 System.Threading.Tasks.Task

WriteAsync() 공개 메소드

Write data to the blob, starting at and overwriting any existing data at that location. The length of the blob is increased if necessary.
public WriteAsync ( IFdbTransaction trans, long offset, Slice data ) : System.Threading.Tasks.Task
trans IFdbTransaction
offset long
data Slice
리턴 System.Threading.Tasks.Task