Example #1
0
 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())
     //                           })
 {
 }
Example #2
0
 public static void UpdateBlockReference(this IBlockEditor blockEditor, IBlockReference blockRef)
 {
     blockRef.TagBlock = new TagBlock(blockEditor.EntryCount, blockRef.TagBlock.Pointer);
 }
Example #3
0
 public Gist(IBlockReference blockReference, IGistConfig <TKey, TValue> config)
 {
     BlockReference = blockReference;
     Config         = config;
 }