MCPcopy
hub / github.com/dgraph-io/dgraph / Create

Method Create

tok/index/index.go:42–42  ·  view source on GitHub ↗

Create is expected to create a VectorIndex, or generate an error if the name already has a corresponding VectorIndex or other problems. The name will be associated with with the generated VectorIndex such that if we Create an index with the name "foo", then later attempt to find the index with name

(name string, o opts.Options, floatBits int)

Source from the content-addressed store, hash-verified

40 // The set of vectors to use in the index process is defined by
41 // source.
42 Create(name string, o opts.Options, floatBits int) (VectorIndex[T], error)
43
44 // Find is expected to retrieve the VectorIndex corresponding with the
45 // name. If it attempts to find a name that does not exist, the VectorIndex

Callers 15

TestDgraphVersionFunction · 0.65
writeToFileFunction · 0.65
createArchiveFunction · 0.65
createGzipArchiveFunction · 0.65
saveDebugFunction · 0.65
TestFindDataFilesFunction · 0.65
TestIsMissingOrEmptyDirFunction · 0.65
openMethod · 0.65
CreateFileMethod · 0.65
createTestCoverageFileFunction · 0.65
sdiffJSONFunction · 0.65
sdiffJSONFunction · 0.65

Implementers 1

indexFactorytok/index_factory.go

Calls

no outgoing calls

Tested by 9

TestDgraphVersionFunction · 0.52
TestFindDataFilesFunction · 0.52
TestIsMissingOrEmptyDirFunction · 0.52
Test21MillionDataSetFunction · 0.52
TestFileReaderFunction · 0.52
TestRDFChunkerChunkFunction · 0.52