Uses of Enum
com.spotify.voyager.jni.Index.SpaceType
Packages that use Index.SpaceType
Package
Description
Java Native Interface (JNI) bindings to expose functionality from Voyager's C++ code into Java.
-
Uses of Index.SpaceType in com.spotify.voyager.jni
Methods in com.spotify.voyager.jni that return Index.SpaceTypeModifier and TypeMethodDescriptionIndex.getSpace()
Get theIndex.SpaceType
that thisIndex
uses to store and compare vectors.static Index.SpaceType
Returns the enum constant of this type with the specified name.static Index.SpaceType[]
Index.SpaceType.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.spotify.voyager.jni with parameters of type Index.SpaceTypeModifier and TypeMethodDescriptionstatic Index
Index.load
(InputStream inputStream, Index.SpaceType space, int numDimensions, Index.StorageDataType storageDataType) Interpret the contents of ajava.io.InputStream
as the contents of a Voyager index file and create a newIndex
initialized with the data provided by that stream.static Index
Index.load
(String filename, Index.SpaceType space, int numDimensions, Index.StorageDataType storageDataType) Load a Voyager index file and create a newIndex
initialized with the data in that file.static StringIndex
StringIndex.load
(InputStream indexInputStream, InputStream nameListInputStream, Index.SpaceType spaceType, int numDimensions, Index.StorageDataType storageDataType) Load a previously constructed index from the provided input streams.static StringIndex
StringIndex.load
(String indexFilename, String nameListFilename, Index.SpaceType spaceType, int numDimensions, Index.StorageDataType storageDataType) Load a previously constructed index from the provided file location.Constructors in com.spotify.voyager.jni with parameters of type Index.SpaceTypeModifierConstructorDescriptionIndex
(Index.SpaceType space, int numDimensions) Create a newIndex
that uses the givenIndex.SpaceType
to store and comparenumDimensions
-dimensional vectors.Index
(Index.SpaceType space, int numDimensions, long indexM, long efConstruction, long randomSeed, long maxElements, Index.StorageDataType storageDataType) Create a newIndex
that uses the givenIndex.SpaceType
to store and comparenumDimensions
-dimensional vectors.StringIndex
(Index.SpaceType spaceType, int numDimensions) Instantiate a new empty index with the specified space type and dimensionalityStringIndex
(Index.SpaceType spaceType, int numDimensions, long indexM, long efConstruction, long randomSeed, long maxElements, Index.StorageDataType storageDataType) Instantiate an empty index with the specified index parameters