Class HnswVectorIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.vector.HnswVectorIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,VectorIndexCreator,IndexCreator
public class HnswVectorIndexCreator extends Object implements VectorIndexCreator
This is used to create Lucene based HNSW index. Used for both offline fromSegmentColumnarIndexCreatorand realtime fromMutableVectorIndex
-
-
Field Summary
Fields Modifier and Type Field Description static StringVECTOR_INDEX_DOC_ID_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description HnswVectorIndexCreator(String column, File segmentIndexDir, VectorIndexConfig vectorIndexConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(float[] document)voidadd(Object[] values, int[] dictIds)voidclose()voidseal()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.creator.VectorIndexCreator
add
-
-
-
-
Field Detail
-
VECTOR_INDEX_DOC_ID_COLUMN_NAME
public static final String VECTOR_INDEX_DOC_ID_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HnswVectorIndexCreator
public HnswVectorIndexCreator(String column, File segmentIndexDir, VectorIndexConfig vectorIndexConfig)
-
-
Method Detail
-
add
public void add(@Nonnull Object[] values, @Nullable int[] dictIds)- Specified by:
addin interfaceIndexCreator- Specified by:
addin interfaceVectorIndexCreator
-
add
public void add(float[] document)
- Specified by:
addin interfaceVectorIndexCreator
-
seal
public void seal()
- Specified by:
sealin interfaceIndexCreator- Specified by:
sealin interfaceVectorIndexCreator
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceVectorIndexCreator- Throws:
IOException
-
-