private void Init(List <byte[]> indexIdList, List <int> primaryIdList, string targetIndexName, List <string> tagsFromIndexes, TagSort tagSort, int maxItems, bool excludeData, bool getIndexHeader, Dictionary <byte[], IndexIdParams> indexIdParamsMapping, bool getAdditionalAvailableItemCount, Filter filter, FullDataIdInfo fullDataIdInfo, IndexCondition indexCondition, bool clientSideSubsetProcessingRequired, CapCondition capCondition, GetIndexHeaderType getIndexHeaderType) { IndexIdList = indexIdList; PrimaryIdList = primaryIdList; TargetIndexName = targetIndexName; TagsFromIndexes = tagsFromIndexes; TagSort = tagSort; MaxItems = maxItems; ExcludeData = excludeData; GetIndexHeader = getIndexHeader; IndexIdParamsMapping = indexIdParamsMapping; GetAdditionalAvailableItemCount = getAdditionalAvailableItemCount; Filter = filter; FullDataIdInfo = fullDataIdInfo; IndexCondition = indexCondition; ClientSideSubsetProcessingRequired = clientSideSubsetProcessingRequired; CapCondition = capCondition; GetIndexHeaderType = getIndexHeaderType; }
public override string ToString() { var stb = new StringBuilder(); stb.Append("(").Append("TargetIndexName: ").Append(TargetIndexName).Append("),"); stb.Append("(").Append("TagsFromIndexes Count: ").Append(TagsFromIndexes == null ? "Null" : TagsFromIndexes.Count.ToString()); if (TagsFromIndexes != null && TagsFromIndexes.Count > 0) { foreach (var indexName in TagsFromIndexes) { stb.Append("(").Append(" IndexName: ").Append(indexName).Append("),"); } } stb.Append("),"); stb.Append("(").Append("TagSort: ").Append(TagSort == null ? "Null" : TagSort.ToString()).Append("),"); stb.Append("(").Append("IndexIdList Count: ").Append(IndexIdList == null ? "Null" : IndexIdList.Count.ToString()); if (IndexIdList != null && IndexIdList.Count > 0) { foreach (var indexId in IndexIdList) { stb.Append("(").Append(" IndexId: ").Append(IndexCacheUtils.GetReadableByteArray(indexId)).Append("),"); } } stb.Append("),"); stb.Append("(").Append("MaxItems: ").Append(MaxItems).Append("),"); stb.Append("(").Append("ExcludeData: ").Append(ExcludeData).Append("),"); stb.Append("(").Append("GetIndexHeader: ").Append(GetIndexHeader).Append("),"); stb.Append("(").Append("GetAdditionalAvailableItemCount: ").Append(GetAdditionalAvailableItemCount).Append("),"); stb.Append("(").Append("PrimaryIdList").Append(PrimaryIdList == null ? "Null" : PrimaryIdList.Count.ToString()); if (PrimaryIdList != null && PrimaryIdList.Count > 0) { foreach (var primaryId in PrimaryIdList) { stb.Append("(").Append("PrimaryId: ").Append(primaryId).Append("),"); } } stb.Append("),"); if (Filter == null) { stb.Append("(").Append("Total Filter Count: ").Append(0); } else { stb.Append("(").Append("Total Filter Count: ").Append(Filter.FilterCount).Append(" ").Append("Filter Info - ").Append(Filter.ToString()); } stb.Append("),"); stb.Append("(").Append("IndexCondition: ").Append(IndexCondition == null ? "Null" : IndexCondition.ToString()).Append("),"); stb.Append("(").Append("IndexIdParamsMapping Count: ").Append(IndexIdParamsMapping == null ? "Null" : IndexIdParamsMapping.Count.ToString()); if (IndexIdParamsMapping != null && IndexIdParamsMapping.Count > 0) { foreach (var indexIdParam in IndexIdParamsMapping) { stb.Append("("); stb.Append("(").Append(" IndexId: ").Append(IndexCacheUtils.GetReadableByteArray(indexIdParam.Key)).Append("),"); stb.Append("(").Append("IndexIdParams: ").Append(indexIdParam.Value).Append("),"); stb.Append("),"); } } stb.Append("),"); stb.Append("(").Append("CapCondition: ").Append(CapCondition == null ? "Null" : CapCondition.ToString()).Append("),"); stb.Append("(").Append("GetIndexHeaderType: ").Append(GetIndexHeaderType.ToString()).Append("),"); stb.Append("(").Append("ClientSideSubsetProcessingRequired: ").Append(ClientSideSubsetProcessingRequired).Append("),"); stb.Append("(").Append("MaxMergeCount: ").Append(MaxMergeCount).Append("),"); stb.Append("(").Append("DomainSpecificProcessingType: ").Append(DomainSpecificProcessingType).Append("),"); stb.Append("(").Append("GroupBy: ").Append(GroupBy == null ? "Null" : GroupBy.ToString()).Append("),"); return(stb.ToString()); }