C# Class LibGit2Sharp.Elasticsearch.ElasticsearchOdbBackend

Inheritance: OdbBackend
Exibir arquivo Open project: synhershko/libgit2sharp.Elasticsearch Class Usage Examples

Protected Properties

Property Type Description
client ElasticsearchRestClient

Public Methods

Method Description
ElasticsearchOdbBackend ( string elasticsearchUrl, string indexName ) : System
Exists ( ObjectId id ) : bool
ForEach ( ForEachCallback callback ) : int
Read ( ObjectId id, Stream &data, ObjectType &objectType ) : int
ReadHeader ( ObjectId id, int &length, ObjectType &objectType ) : int
ReadPrefix ( string shortSha, ObjectId &id, Stream &data, ObjectType &objectType ) : int
ReadStream ( ObjectId id, OdbBackendStream &stream ) : int
Write ( ObjectId id, Stream dataStream, long length, ObjectType objectType ) : int

Writes a git object to the backend. Assumes libgit2 calls Exists before (which is indeed the case)

WriteStream ( long length, ObjectType objectType, OdbBackendStream &stream ) : int

Protected Methods

Method Description
Dispose ( ) : void

Private Methods

Method Description
ForEachInternal ( object query, ForEachCallback callback ) : int
ReadInternal ( string sha, bool needsData ) : GetResponse

Method Details

Dispose() protected method

protected Dispose ( ) : void
return void

ElasticsearchOdbBackend() public method

public ElasticsearchOdbBackend ( string elasticsearchUrl, string indexName ) : System
elasticsearchUrl string
indexName string
return System

Exists() public method

public Exists ( ObjectId id ) : bool
id ObjectId
return bool

ForEach() public method

public ForEach ( ForEachCallback callback ) : int
callback ForEachCallback
return int

Read() public method

public Read ( ObjectId id, Stream &data, ObjectType &objectType ) : int
id ObjectId
data Stream
objectType ObjectType
return int

ReadHeader() public method

public ReadHeader ( ObjectId id, int &length, ObjectType &objectType ) : int
id ObjectId
length int
objectType ObjectType
return int

ReadPrefix() public method

public ReadPrefix ( string shortSha, ObjectId &id, Stream &data, ObjectType &objectType ) : int
shortSha string
id ObjectId
data Stream
objectType ObjectType
return int

ReadStream() public method

public ReadStream ( ObjectId id, OdbBackendStream &stream ) : int
id ObjectId
stream OdbBackendStream
return int

Write() public method

Writes a git object to the backend. Assumes libgit2 calls Exists before (which is indeed the case)
public Write ( ObjectId id, Stream dataStream, long length, ObjectType objectType ) : int
id ObjectId
dataStream Stream
length long
objectType ObjectType
return int

WriteStream() public method

public WriteStream ( long length, ObjectType objectType, OdbBackendStream &stream ) : int
length long
objectType ObjectType
stream OdbBackendStream
return int

Property Details

client protected_oe property

protected ElasticsearchRestClient client
return ElasticsearchRestClient