Class Config.ConfigBuilder
java.lang.Object
com.apple.foundationdb.async.hnsw.Config.ConfigBuilder
- Enclosing class:
- Config
Builder for
Config.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigBuilder(long randomSeed, Metric metric, boolean useInlining, int m, int mMax, int mMax0, int efConstruction, boolean extendCandidates, boolean keepPrunedConnections, double sampleVectorStatsProbability, double maintainStatsProbability, int statsThreshold, boolean useRaBitQ, int raBitQNumExBits, int maxNumConcurrentNodeFetches, int maxNumConcurrentNeighborhoodFetches) -
Method Summary
Modifier and TypeMethodDescriptionbuild(int numDimensions) intintgetM()doubleintintintgetMMax()intgetMMax0()intlongdoubleintbooleanbooleanbooleanbooleansetEfConstruction(int efConstruction) setExtendCandidates(boolean extendCandidates) setKeepPrunedConnections(boolean keepPrunedConnections) setM(int m) setMaintainStatsProbability(double maintainStatsProbability) setMaxNumConcurrentNeighborhoodFetches(int maxNumConcurrentNeighborhoodFetches) setMaxNumConcurrentNodeFetches(int maxNumConcurrentNodeFetches) setMMax(int mMax) setMMax0(int mMax0) setRaBitQNumExBits(int raBitQNumExBits) setRandomSeed(long randomSeed) setSampleVectorStatsProbability(double sampleVectorStatsProbability) setStatsThreshold(int statsThreshold) setUseInlining(boolean useInlining) setUseRaBitQ(boolean useRaBitQ)
-
Constructor Details
-
ConfigBuilder
public ConfigBuilder() -
ConfigBuilder
public ConfigBuilder(long randomSeed, @Nonnull Metric metric, boolean useInlining, int m, int mMax, int mMax0, int efConstruction, boolean extendCandidates, boolean keepPrunedConnections, double sampleVectorStatsProbability, double maintainStatsProbability, int statsThreshold, boolean useRaBitQ, int raBitQNumExBits, int maxNumConcurrentNodeFetches, int maxNumConcurrentNeighborhoodFetches)
-
-
Method Details
-
getRandomSeed
public long getRandomSeed() -
setRandomSeed
-
getMetric
-
setMetric
-
isUseInlining
public boolean isUseInlining() -
setUseInlining
-
getM
public int getM() -
setM
-
getMMax
public int getMMax() -
setMMax
-
getMMax0
public int getMMax0() -
setMMax0
-
getEfConstruction
public int getEfConstruction() -
setEfConstruction
-
isExtendCandidates
public boolean isExtendCandidates() -
setExtendCandidates
-
isKeepPrunedConnections
public boolean isKeepPrunedConnections() -
setKeepPrunedConnections
-
getSampleVectorStatsProbability
public double getSampleVectorStatsProbability() -
setSampleVectorStatsProbability
@Nonnull public Config.ConfigBuilder setSampleVectorStatsProbability(double sampleVectorStatsProbability) -
getMaintainStatsProbability
public double getMaintainStatsProbability() -
setMaintainStatsProbability
-
getStatsThreshold
public int getStatsThreshold() -
setStatsThreshold
-
isUseRaBitQ
public boolean isUseRaBitQ() -
setUseRaBitQ
-
getRaBitQNumExBits
public int getRaBitQNumExBits() -
setRaBitQNumExBits
-
getMaxNumConcurrentNodeFetches
public int getMaxNumConcurrentNodeFetches() -
setMaxNumConcurrentNodeFetches
-
getMaxNumConcurrentNeighborhoodFetches
public int getMaxNumConcurrentNeighborhoodFetches() -
setMaxNumConcurrentNeighborhoodFetches
public Config.ConfigBuilder setMaxNumConcurrentNeighborhoodFetches(int maxNumConcurrentNeighborhoodFetches) -
build
-