Esempio n. 1
0
        public (int depth, int width) CreatePage(VectorNode column, Stream vectorStream, PageIndexWriter pageIndexWriter)
        {
            var page = GraphBuilder.SerializeTree(column, _ixStream, vectorStream, null);

            pageIndexWriter.Put(page.offset, page.length);

            return(PathFinder.Size(column));
        }
Esempio n. 2
0
        public (int depth, int width) CreatePage(VectorNode column, Stream vectorStream, Stream postingsStream, PageIndexWriter pageIndexWriter)
        {
            var page = column.SerializeTree(_ixStream, vectorStream, postingsStream);

            pageIndexWriter.Put(page.offset, page.length);

            return(PathFinder.Size(column));
        }