ln.bson/ln.bson.storage/index/IBsonIndex.cs

17 lines
535 B
C#

using System.Collections;
using System.Collections.Generic;
namespace ln.bson.storage.index
{
public interface IBsonIndex : IEnumerable<KeyValuePair<long,byte[]>>
{
void Query(QueryOperator queryOperator, byte[] value, ISet<long> resultSet);
public void AddValue(long key, BsonValue bsonValue);
public void AddValue(long key, byte[] value);
public void RemoveValue(long key);
public void ReplaceValue(long oldKey, long newKey, BsonValue newValue);
public void Clear();
}
}