C# Class LibGit2Sharp.Elasticsearch.ElasticsearchOdbBackend

Inheritance: OdbBackend
Afficher le fichier Open project: synhershko/libgit2sharp.Elasticsearch Class Usage Examples

Protected Properties

Свойство Type Description
client ElasticsearchRestClient

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( ) : void

Private Methods

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

Method Details

Dispose() protected méthode

protected Dispose ( ) : void
Résultat void

ElasticsearchOdbBackend() public méthode

public ElasticsearchOdbBackend ( string elasticsearchUrl, string indexName ) : System
elasticsearchUrl string
indexName string
Résultat System

Exists() public méthode

public Exists ( ObjectId id ) : bool
id ObjectId
Résultat bool

ForEach() public méthode

public ForEach ( ForEachCallback callback ) : int
callback ForEachCallback
Résultat int

Read() public méthode

public Read ( ObjectId id, Stream &data, ObjectType &objectType ) : int
id ObjectId
data Stream
objectType ObjectType
Résultat int

ReadHeader() public méthode

public ReadHeader ( ObjectId id, int &length, ObjectType &objectType ) : int
id ObjectId
length int
objectType ObjectType
Résultat int

ReadPrefix() public méthode

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

ReadStream() public méthode

public ReadStream ( ObjectId id, OdbBackendStream &stream ) : int
id ObjectId
stream OdbBackendStream
Résultat int

Write() public méthode

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
Résultat int

WriteStream() public méthode

public WriteStream ( long length, ObjectType objectType, OdbBackendStream &stream ) : int
length long
objectType ObjectType
stream OdbBackendStream
Résultat int

Property Details

client protected_oe property

protected ElasticsearchRestClient client
Résultat ElasticsearchRestClient