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.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							889 B
						
					
					
				
			
		
		
	
	
							28 lines
						
					
					
						
							889 B
						
					
					
				| using System.Threading.Tasks;
 | |
| 
 | |
| namespace ZeroLevel.Services.PartitionStorage.Interfaces
 | |
| {
 | |
|     /// <summary>
 | |
|     /// Provides write operations in catalog partition
 | |
|     /// </summary>
 | |
|     /// <typeparam name="TKey">Key type</typeparam>
 | |
|     /// <typeparam name="TInput">Type of one input value</typeparam>
 | |
|     /// <typeparam name="TValue">Type of records aggregate</typeparam>
 | |
|     public interface IStorePartitionMergeBuilder<TKey, TInput, TValue>
 | |
|        : IStorePartitionBase<TKey, TInput, TValue>
 | |
|     {
 | |
|         long TotalRecords
 | |
|         {
 | |
|             get;
 | |
|         }
 | |
|         /// <summary>
 | |
|         /// Writing a key-value pair
 | |
|         /// </summary>
 | |
|         Task Store(TKey key, TInput value);
 | |
|         /// <summary>
 | |
|         /// Perform the conversion of the records from (TKey; TInput) to (TKey; TValue). Called after CompleteAdding
 | |
|         /// </summary>
 | |
|         Task Compress();
 | |
|     }
 | |
| }
 |