Exemple #1
0
        protected OrderedGistRecords(BinaryReader reader, IOrderedGistType <TKey> keyType,
                                     IOrderedGistType <TValue> valueType)
        {
            KeyType   = keyType;
            ValueType = valueType;

            var count = reader.ReadInt32();

            Capacity = count;
            for (var i = 0; i < count; ++i)
            {
                Add(new KeyValuePair <TKey, TValue>(keyType.Read(reader), valueType.Read(reader)));
            }
        }
Exemple #2
0
 protected OrderedGistRecords(IEnumerable <KeyValuePair <TKey, TValue> > records, IOrderedGistType <TKey> keyType,
                              IOrderedGistType <TValue> valueType) : base(records)
 {
     KeyType   = keyType;
     ValueType = valueType;
 }
Exemple #3
0
 public OrderedGistExtension(IOrderedGistType <TKey> keyType, IOrderedGistType <TValue> valueType)
 {
     KeyType   = keyType;
     ValueType = valueType;
 }
Exemple #4
0
 public OrderedGistIndexRecords(IEnumerable <KeyValuePair <TKey, int> > records, IOrderedGistType <TKey> keyType)
     : base(records, keyType, GistIntType.Default)
 {
 }
Exemple #5
0
 public OrderedGistIndexRecords(BinaryReader reader, IOrderedGistType <TKey> keyType)
     : base(reader, keyType, GistIntType.Default)
 {
 }
 public OrderedGistLeafRecords(BinaryReader reader, IOrderedGistType <TKey> keyType,
                               IOrderedGistType <TValue> valueType)
     : base(reader, keyType, valueType)
 {
 }
 public OrderedGistLeafRecords(IEnumerable <KeyValuePair <TKey, TValue> > records, IOrderedGistType <TKey> keyType,
                               IOrderedGistType <TValue> valueType) : base(records, keyType, valueType)
 {
 }