using System.Threading.Tasks;
namespace ZeroLevel.Services.PartitionStorage.Interfaces
{
///
/// Provides write operations in catalog partition
///
/// Key type
/// Type of one input value
/// Type of records aggregate
public interface IStorePartitionMergeBuilder
: IStorePartitionBase
{
long TotalRecords
{
get;
}
///
/// Writing a key-value pair
///
Task Store(TKey key, TInput value);
///
/// Perform the conversion of the records from (TKey; TInput) to (TKey; TValue). Called after CompleteAdding
///
Task Compress();
}
}