Property | Type | Description | |
---|---|---|---|
client | ElasticsearchRestClient |
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 |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Method | Description | |
---|---|---|
ForEachInternal ( object query, ForEachCallback callback ) : int | ||
ReadInternal ( string sha, bool needsData ) : GetResponse |
public ElasticsearchOdbBackend ( string elasticsearchUrl, string indexName ) : System | ||
elasticsearchUrl | string | |
indexName | string | |
return | System |
public ForEach ( ForEachCallback callback ) : int | ||
callback | ForEachCallback | |
return | int |
public Read ( ObjectId id, Stream &data, ObjectType &objectType ) : int | ||
id | ObjectId | |
data | Stream | |
objectType | ObjectType | |
return | int |
public ReadHeader ( ObjectId id, int &length, ObjectType &objectType ) : int | ||
id | ObjectId | |
length | int | |
objectType | ObjectType | |
return | int |
public ReadPrefix ( string shortSha, ObjectId &id, Stream &data, ObjectType &objectType ) : int | ||
shortSha | string | |
id | ObjectId | |
data | Stream | |
objectType | ObjectType | |
return | int |
public ReadStream ( ObjectId id, OdbBackendStream &stream ) : int | ||
id | ObjectId | |
stream | OdbBackendStream | |
return | int |
public Write ( ObjectId id, Stream dataStream, long length, ObjectType objectType ) : int | ||
id | ObjectId | |
dataStream | Stream | |
length | long | |
objectType | ObjectType | |
return | int |
public WriteStream ( long length, ObjectType objectType, OdbBackendStream &stream ) : int | ||
length | long | |
objectType | ObjectType | |
stream | OdbBackendStream | |
return | int |