public DataContainerPersist(IIndexerPersist <IData> keyIndexerPersist, IIndexerPersist <IData> recordIndexerPersist, IDataContainerFactory containerFactory) { this.keyIndexerPersist = keyIndexerPersist; this.recordIndexerPersist = recordIndexerPersist; this.containerFactory = containerFactory; verticalCompression = true; }
public DataContainerPersist(IPersist <IData> keyPersist, IPersist <IData> recordPersist, IDataContainerFactory containerFactory) { this.keyPersist = keyPersist; this.recordPersist = recordPersist; this.containerFactory = containerFactory; verticalCompression = false; }
public Locator(long id, string name, int structureType, DataType keyDataType, DataType recordDataType, Type keyType, Type recordType) { if (keyDataType == null) { throw new ArgumentException("keyDataType"); } if (recordDataType == null) { throw new ArgumentException("recordDataType"); } ID = id; Name = name; StructureType = structureType; hashCode = ID.GetHashCode(); //apply switch (structureType) { case STSdb4.Database.StructureType.XTABLE: Apply = new XTableApply(this); break; case STSdb4.Database.StructureType.XFILE: Apply = new XStreamApply(this); break; } KeyDataType = keyDataType; RecordDataType = recordDataType; KeyType = keyType; RecordType = recordType; CreateTime = DateTime.Now; ModifiedTime = CreateTime; AccessTime = CreateTime; OperationCollectionFactory = new OperationCollectionFactory(this); DataContainerFactory = new DataContainerFactory(this); }
public DataAssembler() { _dcFactory = new DataContainerFactory(); }