toConstant method
Convert to internal constant value.
Implementation
int toConstant() => switch (this) {
VectorQuantization.none => OBXHnswQuantType.None,
VectorQuantization.turboQuant1 => OBXHnswQuantType.TurboQuant1,
VectorQuantization.turboQuant1_5 => OBXHnswQuantType.TurboQuant1_5,
VectorQuantization.turboQuant2 => OBXHnswQuantType.TurboQuant2,
VectorQuantization.turboQuant3 => OBXHnswQuantType.TurboQuant3,
VectorQuantization.turboQuant4 => OBXHnswQuantType.TurboQuant4,
VectorQuantization.scalarQuant8 => OBXHnswQuantType.ScalarQuant8,
};