/
IIndexingStorageActions.cs
43 lines (36 loc) · 1.61 KB
/
IIndexingStorageActions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//-----------------------------------------------------------------------
// <copyright file="IIndexingStorageActions.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using Raven.Abstractions.Data;
using Raven.Database.Indexing;
namespace Raven.Database.Storage
{
public interface IIndexingStorageActions : IDisposable
{
IEnumerable<IndexStats> GetIndexesStats();
IndexStats GetIndexStats(int index);
void AddIndex(int id, bool createMapReduce);
void PrepareIndexForDeletion(int id);
void DeleteIndex(int id, CancellationToken cancellationToken);
void SetIndexPriority(int id, IndexingPriority priority);
IndexFailureInformation GetFailureRate(int id);
void UpdateLastIndexed(int id, Etag etag, DateTime timestamp);
void UpdateLastReduced(int id, Etag etag, DateTime timestamp);
void TouchIndexEtag(int id);
void UpdateIndexingStats(int id, IndexingWorkStats stats);
void UpdateReduceStats(int id, IndexingWorkStats stats);
void RemoveAllDocumentReferencesFrom(string key);
void UpdateDocumentReferences(int id, string key, HashSet<string> references);
IEnumerable<string> GetDocumentsReferencing(string key);
int GetCountOfDocumentsReferencing(string key);
Dictionary<string, int> GetDocumentReferencesStats();
IEnumerable<string> GetDocumentsReferencesFrom(string key);
void DumpAllReferancesToCSV(StreamWriter writer, int numberOfSampleDocs);
}
}