예제 #1
0
 internal TimeSeriesImpl(Storage storage, Type blockClass, long maxBlockTimeInterval)
 {
     lookupConstructor(blockClass);
     this.maxBlockTimeInterval = maxBlockTimeInterval;
     blockClassName            = ClassDescriptor.getTypeName(blockClass);
     index = storage.CreateIndex(typeof(long), false);
 }
예제 #2
0
        internal AltBtreeMultiFieldIndex(Type cls, string[] fieldNames, bool unique)
        {
            this.cls = cls;
#endif
            this.unique     = unique;
            this.fieldNames = fieldNames;
            this.className  = ClassDescriptor.getTypeName(cls);
            locateFields();
            type = ClassDescriptor.FieldType.tpValue;
        }
예제 #3
0
        internal RndBtreeFieldIndex(Type cls, String fieldName, bool unique)
        {
            this.cls = cls;
#endif
            this.unique    = unique;
            this.fieldName = fieldName;
            this.className = ClassDescriptor.getTypeName(cls);
            lookupField(fieldName);
            type = checkType(mbrType);
        }
 public override void init(Type cls, ClassDescriptor.FieldType[] types, string[] fieldNames, bool unique, long autoincCount)
 {
     this.cls          = cls;
     this.unique       = unique;
     this.fieldName    = fieldNames[0];
     this.className    = ClassDescriptor.getTypeName(cls);
     this.autoincCount = autoincCount;
     lookupField(fieldNames[0]);
     type = checkType(mbrType);
 }
예제 #5
0
 public override void init(Type cls, ClassDescriptor.FieldType[] mfTypes, string[] fieldNames, bool unique, long autoincCount)
 {
     this.cls        = cls;
     this.unique     = unique;
     this.fieldNames = fieldNames;
     this.className  = ClassDescriptor.getTypeName(cls);
     locateFields();
     type  = ClassDescriptor.FieldType.tpArrayOfByte;
     types = new ClassDescriptor.FieldType[fieldNames.Length];
     for (int i = 0; i < types.Length; i++)
     {
         Type mbrType = mbr[i] is FieldInfo ? ((FieldInfo)mbr[i]).FieldType : ((PropertyInfo)mbr[i]).PropertyType;
         types[i] = checkType(mbrType);
     }
 }