ln.objects/index/Index.cs

26 lines
795 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace ln.objects.index
{
public abstract class Index
{
public Index()
{
}
public abstract void Reindex(Guid uid, object value);
public abstract void Remove(Guid uid);
public abstract void Match(Func<object, bool> criterion, ISet<Guid> matches);
public abstract void Clear(); // Reset this Index as it was newly created
public abstract bool TrySerializeIndex(out byte[] serializedIndex); // Serialize current state of index to <serializedIndex>
public abstract bool TryDeserializeIndex(byte[] serializedIndex); // Deserialize current state from <serializedIndex>
}
}