mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 08:36:54 +08:00
Improved function names
This commit is contained in:
@@ -141,10 +141,10 @@ HnswBuildAppendPage(Relation index, Buffer *buf, Page *page, ForkNumber forkNum)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create element pages
|
* Create graph pages
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
CreateElementPages(HnswBuildState * buildstate)
|
CreateGraphPages(HnswBuildState * buildstate)
|
||||||
{
|
{
|
||||||
Relation index = buildstate->index;
|
Relation index = buildstate->index;
|
||||||
ForkNumber forkNum = buildstate->forkNum;
|
ForkNumber forkNum = buildstate->forkNum;
|
||||||
@@ -244,10 +244,10 @@ CreateElementPages(HnswBuildState * buildstate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create neighbor pages
|
* Write neighbor tuples
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
CreateNeighborPages(HnswBuildState * buildstate)
|
WriteNeighborTuples(HnswBuildState * buildstate)
|
||||||
{
|
{
|
||||||
Relation index = buildstate->index;
|
Relation index = buildstate->index;
|
||||||
ForkNumber forkNum = buildstate->forkNum;
|
ForkNumber forkNum = buildstate->forkNum;
|
||||||
@@ -299,8 +299,8 @@ FlushPages(HnswBuildState * buildstate)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
CreateMetaPage(buildstate);
|
CreateMetaPage(buildstate);
|
||||||
CreateElementPages(buildstate);
|
CreateGraphPages(buildstate);
|
||||||
CreateNeighborPages(buildstate);
|
WriteNeighborTuples(buildstate);
|
||||||
|
|
||||||
buildstate->graph->flushed = true;
|
buildstate->graph->flushed = true;
|
||||||
MemoryContextReset(buildstate->graphCtx);
|
MemoryContextReset(buildstate->graphCtx);
|
||||||
|
|||||||
Reference in New Issue
Block a user