示例#1
0
        public TConsolidatedStoreComponent(long count, string traceType)
        {
            this.traceType = traceType;
            int intCount = checked ((int)count);

            this.component = new PartitionedSortedList <TKey, TVersionedItem <TValue> >(KeyComparer);
        }
        /// <summary>
        /// Initialize a new instance of the RecoveryStoreComponent class.
        /// </summary>
        /// <param name="metadataTable"></param>
        /// <param name="workDirectory"></param>
        /// <param name="traceType"></param>
        /// <param name="keyConverter"></param>
        /// <param name="isValueReferenceType"></param>
        public RecoveryStoreComponent(MetadataTable metadataTable, string workDirectory, string traceType, IStateSerializer <TKey> keyConverter, bool isValueReferenceType)
        {
            this.metadataTable = metadataTable;
            this.workDirectory = workDirectory;
            this.traceType     = traceType;
            this.keyConverter  = keyConverter;

            this.fileId = InvalidFileId;
            this.logicalCheckpointFileTimeStamp = InvalidTimeStamp;
            this.component            = new PartitionedSortedList <TKey, TVersionedItem <TValue> >(KeyComparer);
            this.isValueReferenceType = isValueReferenceType;
        }
示例#3
0
 public TConsolidatedStoreComponent(string traceType)
 {
     this.traceType = traceType;
     this.component = new PartitionedSortedList <TKey, TVersionedItem <TValue> >(KeyComparer);
 }