public OrderedSetPersist(IIndexerPersist <IData> keyIndexerPersist, IIndexerPersist <IData> recordIndexerPersist, IOrderedSetFactory orderedSetFactory)
 {
     this.keyIndexerPersist    = keyIndexerPersist;
     this.recordIndexerPersist = recordIndexerPersist;
     this.orderedSetFactory    = orderedSetFactory;
     verticalCompression       = true;
 }
 public OrderedSetPersist(IPersist <IData> keyPersist, IPersist <IData> recordPersist, IOrderedSetFactory orderedSetFactory)
 {
     this.keyPersist        = keyPersist;
     this.recordPersist     = recordPersist;
     this.orderedSetFactory = orderedSetFactory;
     verticalCompression    = false;
 }
Beispiel #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 Iveely.STSdb4.Database.StructureType.XTABLE: Apply = new XTableApply(this); break;

            case Iveely.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);
            OrderedSetFactory          = new OrderedSetFactory(this);
        }