public Index(IBlockReference blockReference, IndexDefinition indexDefinition) : base(blockReference, indexDefinition.CreateGistConfig(blockReference.Blocks)) //: base(blockReference, new GistConfig<IndexValue, string> // { // Blocks = blockReference.Blocks, // UpdateStrategy = UpdateStrategy<IndexValue, string>.AppendKey, // Ext = // new OrderedGistExtension<IndexValue, string>(new GistIndexValueType(), // new GistStringType()) // }) { }
public static void UpdateBlockReference(this IBlockEditor blockEditor, IBlockReference blockRef) { blockRef.TagBlock = new TagBlock(blockEditor.EntryCount, blockRef.TagBlock.Pointer); }
public Gist(IBlockReference blockReference, IGistConfig <TKey, TValue> config) { BlockReference = blockReference; Config = config; }