Beispiel #1
0
        public static Hasher <T> Create(MolapHashTypes type)
        {
            Hasher <T> hasher = null;

            switch (type)
            {
            case MolapHashTypes.FNV:
                hasher = new FNVHasher <T>();
                break;

            case MolapHashTypes.FNV1A:
                hasher = new FNV1aHasher <T>();
                break;

            case MolapHashTypes.MURMUR2:
                hasher = new MurmurHash2 <T>();
                break;

            case MolapHashTypes.CITY:
                hasher = new CityHash <T>();
                break;
            }

            return(hasher);
        }
Beispiel #2
0
        public Axis(MolapHashTypes hashingtype, DataSchema <T> schema)
        {
            _schema       = schema;
            _rowsAxis     = new List <KeyValuePair <T, T>[]>();
            _columnsAxis  = new List <KeyValuePair <T, T>[]>();
            _rowHashes    = new List <T>();
            _columnHashes = new List <T>();
            _hasher       = Hasher <T> .Create(hashingtype);

            _keyComparer         = new KeyComparer <T>();
            _keyEqualityComparer = new KeyEqualityComparer <T>();
        }
Beispiel #3
0
 public AxisBuilder(MolapHashTypes hashingtype, DataSchema <T> schema)
 {
     _axis             = new Axis <T>(hashingtype, schema);
     _filterDimensions = new List <T>();
 }
 public MolapStorageBuilder SetStoreType(MolapHashTypes hashtype)
 {
     _element.HashType = hashtype;
     return this;
 }
 public MolapKeyHandler(MolapStorageConfig config)
 {
     _hashingtype = config.HashType;
     this.Init();
 }
Beispiel #6
0
 public MolapStorageBuilder SetStoreType(MolapHashTypes hashtype)
 {
     _element.HashType = hashtype;
     return(this);
 }
Beispiel #7
0
 public InMemoryFactsProvider(MolapHashTypes hashingType)
 {
     _hashingtype = hashingType;
     _innerList   = new TSList <FactsRow <T> >();
     this.Init();
 }