예제 #1
0
파일: Locator.cs 프로젝트: zhouweiaccp/code
        public IDataContainer CreateDataContainer()
        {
            const int MAX_RECORDS = 128 * 1024;

            var data = new IndexRecordSet(KeyComparer, KeyEqualityComparer);

            data.MAX_RECORDS = MAX_RECORDS;

            return(data);
        }
예제 #2
0
        private new IndexRecordSet InternalSplit(int count)
        {
            IndexRecordSet recordSet;

            if (list != null)
            {
                recordSet = new IndexRecordSet(Comparer, EqualityComparer, list.Split(count));
            }
            else
            {
                if (dictionary != null)
                {
                    TransformDictionaryToTree();
                }

                recordSet = new IndexRecordSet(Comparer, EqualityComparer, set.Split(count));
            }

            recordSet.MAX_RECORDS = MAX_RECORDS;

            return(recordSet);
        }