All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.weaviate.client.v1.misc.model.VectorIndexConfig Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// Generated by delombok at Mon Jan 08 10:19:26 UTC 2024
package io.weaviate.client.v1.misc.model;

public class VectorIndexConfig {
  private final String distance;
  private final Integer ef;
  private final Integer efConstruction;
  private final Integer maxConnections;
  private final Integer dynamicEfMin;
  private final Integer dynamicEfMax;
  private final Integer dynamicEfFactor;
  private final Long vectorCacheMaxObjects;
  private final Integer flatSearchCutoff;
  private final Integer cleanupIntervalSeconds;
  private final Boolean skip;
  private final PQConfig pq;
  private final BQConfig bq;

  @java.lang.SuppressWarnings("all")
  VectorIndexConfig(final String distance, final Integer ef, final Integer efConstruction, final Integer maxConnections, final Integer dynamicEfMin, final Integer dynamicEfMax, final Integer dynamicEfFactor, final Long vectorCacheMaxObjects, final Integer flatSearchCutoff, final Integer cleanupIntervalSeconds, final Boolean skip, final PQConfig pq, final BQConfig bq) {
    this.distance = distance;
    this.ef = ef;
    this.efConstruction = efConstruction;
    this.maxConnections = maxConnections;
    this.dynamicEfMin = dynamicEfMin;
    this.dynamicEfMax = dynamicEfMax;
    this.dynamicEfFactor = dynamicEfFactor;
    this.vectorCacheMaxObjects = vectorCacheMaxObjects;
    this.flatSearchCutoff = flatSearchCutoff;
    this.cleanupIntervalSeconds = cleanupIntervalSeconds;
    this.skip = skip;
    this.pq = pq;
    this.bq = bq;
  }


  @java.lang.SuppressWarnings("all")
  public static class VectorIndexConfigBuilder {
    @java.lang.SuppressWarnings("all")
    private String distance;
    @java.lang.SuppressWarnings("all")
    private Integer ef;
    @java.lang.SuppressWarnings("all")
    private Integer efConstruction;
    @java.lang.SuppressWarnings("all")
    private Integer maxConnections;
    @java.lang.SuppressWarnings("all")
    private Integer dynamicEfMin;
    @java.lang.SuppressWarnings("all")
    private Integer dynamicEfMax;
    @java.lang.SuppressWarnings("all")
    private Integer dynamicEfFactor;
    @java.lang.SuppressWarnings("all")
    private Long vectorCacheMaxObjects;
    @java.lang.SuppressWarnings("all")
    private Integer flatSearchCutoff;
    @java.lang.SuppressWarnings("all")
    private Integer cleanupIntervalSeconds;
    @java.lang.SuppressWarnings("all")
    private Boolean skip;
    @java.lang.SuppressWarnings("all")
    private PQConfig pq;
    @java.lang.SuppressWarnings("all")
    private BQConfig bq;

    @java.lang.SuppressWarnings("all")
    VectorIndexConfigBuilder() {
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder distance(final String distance) {
      this.distance = distance;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder ef(final Integer ef) {
      this.ef = ef;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder efConstruction(final Integer efConstruction) {
      this.efConstruction = efConstruction;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder maxConnections(final Integer maxConnections) {
      this.maxConnections = maxConnections;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder dynamicEfMin(final Integer dynamicEfMin) {
      this.dynamicEfMin = dynamicEfMin;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder dynamicEfMax(final Integer dynamicEfMax) {
      this.dynamicEfMax = dynamicEfMax;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder dynamicEfFactor(final Integer dynamicEfFactor) {
      this.dynamicEfFactor = dynamicEfFactor;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder vectorCacheMaxObjects(final Long vectorCacheMaxObjects) {
      this.vectorCacheMaxObjects = vectorCacheMaxObjects;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder flatSearchCutoff(final Integer flatSearchCutoff) {
      this.flatSearchCutoff = flatSearchCutoff;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder cleanupIntervalSeconds(final Integer cleanupIntervalSeconds) {
      this.cleanupIntervalSeconds = cleanupIntervalSeconds;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder skip(final Boolean skip) {
      this.skip = skip;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder pq(final PQConfig pq) {
      this.pq = pq;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig.VectorIndexConfigBuilder bq(final BQConfig bq) {
      this.bq = bq;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public VectorIndexConfig build() {
      return new VectorIndexConfig(this.distance, this.ef, this.efConstruction, this.maxConnections, this.dynamicEfMin, this.dynamicEfMax, this.dynamicEfFactor, this.vectorCacheMaxObjects, this.flatSearchCutoff, this.cleanupIntervalSeconds, this.skip, this.pq, this.bq);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "VectorIndexConfig.VectorIndexConfigBuilder(distance=" + this.distance + ", ef=" + this.ef + ", efConstruction=" + this.efConstruction + ", maxConnections=" + this.maxConnections + ", dynamicEfMin=" + this.dynamicEfMin + ", dynamicEfMax=" + this.dynamicEfMax + ", dynamicEfFactor=" + this.dynamicEfFactor + ", vectorCacheMaxObjects=" + this.vectorCacheMaxObjects + ", flatSearchCutoff=" + this.flatSearchCutoff + ", cleanupIntervalSeconds=" + this.cleanupIntervalSeconds + ", skip=" + this.skip + ", pq=" + this.pq + ", bq=" + this.bq + ")";
    }
  }

  @java.lang.SuppressWarnings("all")
  public static VectorIndexConfig.VectorIndexConfigBuilder builder() {
    return new VectorIndexConfig.VectorIndexConfigBuilder();
  }

  @java.lang.SuppressWarnings("all")
  public String getDistance() {
    return this.distance;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getEf() {
    return this.ef;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getEfConstruction() {
    return this.efConstruction;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getMaxConnections() {
    return this.maxConnections;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getDynamicEfMin() {
    return this.dynamicEfMin;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getDynamicEfMax() {
    return this.dynamicEfMax;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getDynamicEfFactor() {
    return this.dynamicEfFactor;
  }

  @java.lang.SuppressWarnings("all")
  public Long getVectorCacheMaxObjects() {
    return this.vectorCacheMaxObjects;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getFlatSearchCutoff() {
    return this.flatSearchCutoff;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getCleanupIntervalSeconds() {
    return this.cleanupIntervalSeconds;
  }

  @java.lang.SuppressWarnings("all")
  public Boolean getSkip() {
    return this.skip;
  }

  @java.lang.SuppressWarnings("all")
  public PQConfig getPq() {
    return this.pq;
  }

  @java.lang.SuppressWarnings("all")
  public BQConfig getBq() {
    return this.bq;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "VectorIndexConfig(distance=" + this.getDistance() + ", ef=" + this.getEf() + ", efConstruction=" + this.getEfConstruction() + ", maxConnections=" + this.getMaxConnections() + ", dynamicEfMin=" + this.getDynamicEfMin() + ", dynamicEfMax=" + this.getDynamicEfMax() + ", dynamicEfFactor=" + this.getDynamicEfFactor() + ", vectorCacheMaxObjects=" + this.getVectorCacheMaxObjects() + ", flatSearchCutoff=" + this.getFlatSearchCutoff() + ", cleanupIntervalSeconds=" + this.getCleanupIntervalSeconds() + ", skip=" + this.getSkip() + ", pq=" + this.getPq() + ", bq=" + this.getBq() + ")";
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof VectorIndexConfig)) return false;
    final VectorIndexConfig other = (VectorIndexConfig) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$ef = this.getEf();
    final java.lang.Object other$ef = other.getEf();
    if (this$ef == null ? other$ef != null : !this$ef.equals(other$ef)) return false;
    final java.lang.Object this$efConstruction = this.getEfConstruction();
    final java.lang.Object other$efConstruction = other.getEfConstruction();
    if (this$efConstruction == null ? other$efConstruction != null : !this$efConstruction.equals(other$efConstruction)) return false;
    final java.lang.Object this$maxConnections = this.getMaxConnections();
    final java.lang.Object other$maxConnections = other.getMaxConnections();
    if (this$maxConnections == null ? other$maxConnections != null : !this$maxConnections.equals(other$maxConnections)) return false;
    final java.lang.Object this$dynamicEfMin = this.getDynamicEfMin();
    final java.lang.Object other$dynamicEfMin = other.getDynamicEfMin();
    if (this$dynamicEfMin == null ? other$dynamicEfMin != null : !this$dynamicEfMin.equals(other$dynamicEfMin)) return false;
    final java.lang.Object this$dynamicEfMax = this.getDynamicEfMax();
    final java.lang.Object other$dynamicEfMax = other.getDynamicEfMax();
    if (this$dynamicEfMax == null ? other$dynamicEfMax != null : !this$dynamicEfMax.equals(other$dynamicEfMax)) return false;
    final java.lang.Object this$dynamicEfFactor = this.getDynamicEfFactor();
    final java.lang.Object other$dynamicEfFactor = other.getDynamicEfFactor();
    if (this$dynamicEfFactor == null ? other$dynamicEfFactor != null : !this$dynamicEfFactor.equals(other$dynamicEfFactor)) return false;
    final java.lang.Object this$vectorCacheMaxObjects = this.getVectorCacheMaxObjects();
    final java.lang.Object other$vectorCacheMaxObjects = other.getVectorCacheMaxObjects();
    if (this$vectorCacheMaxObjects == null ? other$vectorCacheMaxObjects != null : !this$vectorCacheMaxObjects.equals(other$vectorCacheMaxObjects)) return false;
    final java.lang.Object this$flatSearchCutoff = this.getFlatSearchCutoff();
    final java.lang.Object other$flatSearchCutoff = other.getFlatSearchCutoff();
    if (this$flatSearchCutoff == null ? other$flatSearchCutoff != null : !this$flatSearchCutoff.equals(other$flatSearchCutoff)) return false;
    final java.lang.Object this$cleanupIntervalSeconds = this.getCleanupIntervalSeconds();
    final java.lang.Object other$cleanupIntervalSeconds = other.getCleanupIntervalSeconds();
    if (this$cleanupIntervalSeconds == null ? other$cleanupIntervalSeconds != null : !this$cleanupIntervalSeconds.equals(other$cleanupIntervalSeconds)) return false;
    final java.lang.Object this$skip = this.getSkip();
    final java.lang.Object other$skip = other.getSkip();
    if (this$skip == null ? other$skip != null : !this$skip.equals(other$skip)) return false;
    final java.lang.Object this$distance = this.getDistance();
    final java.lang.Object other$distance = other.getDistance();
    if (this$distance == null ? other$distance != null : !this$distance.equals(other$distance)) return false;
    final java.lang.Object this$pq = this.getPq();
    final java.lang.Object other$pq = other.getPq();
    if (this$pq == null ? other$pq != null : !this$pq.equals(other$pq)) return false;
    final java.lang.Object this$bq = this.getBq();
    final java.lang.Object other$bq = other.getBq();
    if (this$bq == null ? other$bq != null : !this$bq.equals(other$bq)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof VectorIndexConfig;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $ef = this.getEf();
    result = result * PRIME + ($ef == null ? 43 : $ef.hashCode());
    final java.lang.Object $efConstruction = this.getEfConstruction();
    result = result * PRIME + ($efConstruction == null ? 43 : $efConstruction.hashCode());
    final java.lang.Object $maxConnections = this.getMaxConnections();
    result = result * PRIME + ($maxConnections == null ? 43 : $maxConnections.hashCode());
    final java.lang.Object $dynamicEfMin = this.getDynamicEfMin();
    result = result * PRIME + ($dynamicEfMin == null ? 43 : $dynamicEfMin.hashCode());
    final java.lang.Object $dynamicEfMax = this.getDynamicEfMax();
    result = result * PRIME + ($dynamicEfMax == null ? 43 : $dynamicEfMax.hashCode());
    final java.lang.Object $dynamicEfFactor = this.getDynamicEfFactor();
    result = result * PRIME + ($dynamicEfFactor == null ? 43 : $dynamicEfFactor.hashCode());
    final java.lang.Object $vectorCacheMaxObjects = this.getVectorCacheMaxObjects();
    result = result * PRIME + ($vectorCacheMaxObjects == null ? 43 : $vectorCacheMaxObjects.hashCode());
    final java.lang.Object $flatSearchCutoff = this.getFlatSearchCutoff();
    result = result * PRIME + ($flatSearchCutoff == null ? 43 : $flatSearchCutoff.hashCode());
    final java.lang.Object $cleanupIntervalSeconds = this.getCleanupIntervalSeconds();
    result = result * PRIME + ($cleanupIntervalSeconds == null ? 43 : $cleanupIntervalSeconds.hashCode());
    final java.lang.Object $skip = this.getSkip();
    result = result * PRIME + ($skip == null ? 43 : $skip.hashCode());
    final java.lang.Object $distance = this.getDistance();
    result = result * PRIME + ($distance == null ? 43 : $distance.hashCode());
    final java.lang.Object $pq = this.getPq();
    result = result * PRIME + ($pq == null ? 43 : $pq.hashCode());
    final java.lang.Object $bq = this.getBq();
    result = result * PRIME + ($bq == null ? 43 : $bq.hashCode());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy