using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiShe.CollectBus.ShardingStrategy
{
///
/// 数据存储分片策略
///
///
public interface IShardingStrategy
{
///
/// 获取指定时间对应的集合名
///
///
string GetCollectionName(DateTime dateTime);
///
/// 获取当前时间对应的集合名
///
///
string GetCurrentCollectionName();
///
/// 用于查询时确定目标集合
///
///
///
///
IEnumerable GetQueryCollectionNames(DateTime? startTime = null,
DateTime? endTime = null);
}
}