io.weaviate.client.v1.misc.model.InvertedIndexConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
A java client for Weaviate Vector Search Engine
// Generated by delombok at Thu Dec 07 10:07:47 UTC 2023
package io.weaviate.client.v1.misc.model;
public class InvertedIndexConfig {
private final BM25Config bm25;
private final StopwordConfig stopwords;
private final Integer cleanupIntervalSeconds;
private final Boolean indexTimestamps;
private final Boolean indexNullState;
private final Boolean indexPropertyLength;
@java.lang.SuppressWarnings("all")
InvertedIndexConfig(final BM25Config bm25, final StopwordConfig stopwords, final Integer cleanupIntervalSeconds, final Boolean indexTimestamps, final Boolean indexNullState, final Boolean indexPropertyLength) {
this.bm25 = bm25;
this.stopwords = stopwords;
this.cleanupIntervalSeconds = cleanupIntervalSeconds;
this.indexTimestamps = indexTimestamps;
this.indexNullState = indexNullState;
this.indexPropertyLength = indexPropertyLength;
}
@java.lang.SuppressWarnings("all")
public static class InvertedIndexConfigBuilder {
@java.lang.SuppressWarnings("all")
private BM25Config bm25;
@java.lang.SuppressWarnings("all")
private StopwordConfig stopwords;
@java.lang.SuppressWarnings("all")
private Integer cleanupIntervalSeconds;
@java.lang.SuppressWarnings("all")
private Boolean indexTimestamps;
@java.lang.SuppressWarnings("all")
private Boolean indexNullState;
@java.lang.SuppressWarnings("all")
private Boolean indexPropertyLength;
@java.lang.SuppressWarnings("all")
InvertedIndexConfigBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig.InvertedIndexConfigBuilder bm25(final BM25Config bm25) {
this.bm25 = bm25;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig.InvertedIndexConfigBuilder stopwords(final StopwordConfig stopwords) {
this.stopwords = stopwords;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig.InvertedIndexConfigBuilder cleanupIntervalSeconds(final Integer cleanupIntervalSeconds) {
this.cleanupIntervalSeconds = cleanupIntervalSeconds;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig.InvertedIndexConfigBuilder indexTimestamps(final Boolean indexTimestamps) {
this.indexTimestamps = indexTimestamps;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig.InvertedIndexConfigBuilder indexNullState(final Boolean indexNullState) {
this.indexNullState = indexNullState;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig.InvertedIndexConfigBuilder indexPropertyLength(final Boolean indexPropertyLength) {
this.indexPropertyLength = indexPropertyLength;
return this;
}
@java.lang.SuppressWarnings("all")
public InvertedIndexConfig build() {
return new InvertedIndexConfig(this.bm25, this.stopwords, this.cleanupIntervalSeconds, this.indexTimestamps, this.indexNullState, this.indexPropertyLength);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "InvertedIndexConfig.InvertedIndexConfigBuilder(bm25=" + this.bm25 + ", stopwords=" + this.stopwords + ", cleanupIntervalSeconds=" + this.cleanupIntervalSeconds + ", indexTimestamps=" + this.indexTimestamps + ", indexNullState=" + this.indexNullState + ", indexPropertyLength=" + this.indexPropertyLength + ")";
}
}
@java.lang.SuppressWarnings("all")
public static InvertedIndexConfig.InvertedIndexConfigBuilder builder() {
return new InvertedIndexConfig.InvertedIndexConfigBuilder();
}
@java.lang.SuppressWarnings("all")
public BM25Config getBm25() {
return this.bm25;
}
@java.lang.SuppressWarnings("all")
public StopwordConfig getStopwords() {
return this.stopwords;
}
@java.lang.SuppressWarnings("all")
public Integer getCleanupIntervalSeconds() {
return this.cleanupIntervalSeconds;
}
@java.lang.SuppressWarnings("all")
public Boolean getIndexTimestamps() {
return this.indexTimestamps;
}
@java.lang.SuppressWarnings("all")
public Boolean getIndexNullState() {
return this.indexNullState;
}
@java.lang.SuppressWarnings("all")
public Boolean getIndexPropertyLength() {
return this.indexPropertyLength;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "InvertedIndexConfig(bm25=" + this.getBm25() + ", stopwords=" + this.getStopwords() + ", cleanupIntervalSeconds=" + this.getCleanupIntervalSeconds() + ", indexTimestamps=" + this.getIndexTimestamps() + ", indexNullState=" + this.getIndexNullState() + ", indexPropertyLength=" + this.getIndexPropertyLength() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof InvertedIndexConfig)) return false;
final InvertedIndexConfig other = (InvertedIndexConfig) o;
if (!other.canEqual((java.lang.Object) this)) 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$indexTimestamps = this.getIndexTimestamps();
final java.lang.Object other$indexTimestamps = other.getIndexTimestamps();
if (this$indexTimestamps == null ? other$indexTimestamps != null : !this$indexTimestamps.equals(other$indexTimestamps)) return false;
final java.lang.Object this$indexNullState = this.getIndexNullState();
final java.lang.Object other$indexNullState = other.getIndexNullState();
if (this$indexNullState == null ? other$indexNullState != null : !this$indexNullState.equals(other$indexNullState)) return false;
final java.lang.Object this$indexPropertyLength = this.getIndexPropertyLength();
final java.lang.Object other$indexPropertyLength = other.getIndexPropertyLength();
if (this$indexPropertyLength == null ? other$indexPropertyLength != null : !this$indexPropertyLength.equals(other$indexPropertyLength)) return false;
final java.lang.Object this$bm25 = this.getBm25();
final java.lang.Object other$bm25 = other.getBm25();
if (this$bm25 == null ? other$bm25 != null : !this$bm25.equals(other$bm25)) return false;
final java.lang.Object this$stopwords = this.getStopwords();
final java.lang.Object other$stopwords = other.getStopwords();
if (this$stopwords == null ? other$stopwords != null : !this$stopwords.equals(other$stopwords)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof InvertedIndexConfig;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $cleanupIntervalSeconds = this.getCleanupIntervalSeconds();
result = result * PRIME + ($cleanupIntervalSeconds == null ? 43 : $cleanupIntervalSeconds.hashCode());
final java.lang.Object $indexTimestamps = this.getIndexTimestamps();
result = result * PRIME + ($indexTimestamps == null ? 43 : $indexTimestamps.hashCode());
final java.lang.Object $indexNullState = this.getIndexNullState();
result = result * PRIME + ($indexNullState == null ? 43 : $indexNullState.hashCode());
final java.lang.Object $indexPropertyLength = this.getIndexPropertyLength();
result = result * PRIME + ($indexPropertyLength == null ? 43 : $indexPropertyLength.hashCode());
final java.lang.Object $bm25 = this.getBm25();
result = result * PRIME + ($bm25 == null ? 43 : $bm25.hashCode());
final java.lang.Object $stopwords = this.getStopwords();
result = result * PRIME + ($stopwords == null ? 43 : $stopwords.hashCode());
return result;
}
}