Ejemplo n.º 1
0
 public DataContainerPersist(IIndexerPersist <IData> keyIndexerPersist, IIndexerPersist <IData> recordIndexerPersist, IDataContainerFactory containerFactory)
 {
     this.keyIndexerPersist    = keyIndexerPersist;
     this.recordIndexerPersist = recordIndexerPersist;
     this.containerFactory     = containerFactory;
     verticalCompression       = true;
 }
Ejemplo n.º 2
0
 public DataContainerPersist(IPersist <IData> keyPersist, IPersist <IData> recordPersist, IDataContainerFactory containerFactory)
 {
     this.keyPersist       = keyPersist;
     this.recordPersist    = recordPersist;
     this.containerFactory = containerFactory;
     verticalCompression   = false;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public DataAssembler()
 {
     _dcFactory = new DataContainerFactory();
 }