final class VoyagerPairSCollectionOps extends AnyVal
- Source
- SCollectionSyntax.scala
- Alphabetic
- By Inheritance
- VoyagerPairSCollectionOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VoyagerPairSCollectionOps(self: SCollection[(String, Array[Float])])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asVoyager(uri: VoyagerUri, space: SpaceType, numDimensions: Int, indexM: Long = VoyagerWriter.DefaultIndexM, efConstruction: Long = VoyagerWriter.DefaultEfConstruction, randomSeed: Long = VoyagerWriter.DefaultRandomSeed, storageDataType: StorageDataType = VoyagerWriter.DefaultStorageDataType): SCollection[VoyagerUri]
Write the key-value pairs of this SCollection as a Voyager index to a specified location using the parameters specified.
Write the key-value pairs of this SCollection as a Voyager index to a specified location using the parameters specified.
- uri
The VoyagerUri.
- space
The space type to use when storing and comparing vectors.
- numDimensions
The number of dimensions per vector.
- indexM
Controls the degree of interconnectedness between vectors.
- efConstruction
Controls index quality, affecting the speed of addItem calls. Does not affect memory usage or size of the index.
- randomSeed
A random seed to use when initializing the index's internal data structures.
- storageDataType
The datatype to use under-the-hood when storing vectors.
- returns
A VoyagerUri representing where the index was written to.
- Annotations
- @experimental()
- def asVoyagerSideInput(space: SpaceType, numDimensions: Int, indexM: Long = VoyagerWriter.DefaultIndexM, efConstruction: Long = VoyagerWriter.DefaultEfConstruction, randomSeed: Long = VoyagerWriter.DefaultRandomSeed, storageDataType: StorageDataType = VoyagerWriter.DefaultStorageDataType): SideInput[VoyagerReader]
Write the key-value pairs of this SCollection as a Voyager index to a temporary location, building the index using the parameters specified and then loading the reader into a side input.
Write the key-value pairs of this SCollection as a Voyager index to a temporary location, building the index using the parameters specified and then loading the reader into a side input.
- space
The space type to use when storing and comparing vectors.
- numDimensions
The number of dimensions per vector.
- indexM
Controls the degree of interconnectedness between vectors.
- efConstruction
Controls index quality, affecting the speed of addItem calls. Does not affect memory usage or size of the index.
- randomSeed
A random seed to use when initializing the index's internal data structures.
- storageDataType
The datatype to use under-the-hood when storing vectors.
- returns
A SideInput with a VoyagerReader
- Annotations
- @experimental()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any