mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.0 KiB
25 lines
1.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ZeroLevel.Services.PartitionStorage
|
|
{
|
|
/// <summary>
|
|
/// Partition store interface
|
|
/// </summary>
|
|
/// <typeparam name="TKey">Record key</typeparam>
|
|
/// <typeparam name="TInput">The value that is written in the stream</typeparam>
|
|
/// <typeparam name="TValue">Value after compression of TInput values by duplicate keys (TInput list or similar)</typeparam>
|
|
/// <typeparam name="TMeta">Meta information for partition search</typeparam>
|
|
public interface IStore<TKey, TInput, TValue, TMeta>
|
|
{
|
|
IStorePartitionBuilder<TKey, TInput, TValue> CreateBuilder(TMeta info);
|
|
|
|
IStorePartitionBuilder<TKey, TInput, TValue> CreateMergeAccessor(TMeta info, Func<TValue, IEnumerable<TInput>> decompressor);
|
|
|
|
IStorePartitionAccessor<TKey, TInput, TValue> CreateAccessor(TMeta info);
|
|
|
|
Task<StoreSearchResult<TKey, TValue, TMeta>> Search(StoreSearchRequest<TKey, TMeta> searchRequest);
|
|
}
|
|
}
|