technology.semi.weaviate.client.v1.misc.model.ShardingConfig 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 Mon Nov 21 14:07:45 UTC 2022
package technology.semi.weaviate.client.v1.misc.model;
public class ShardingConfig {
private final Integer actualCount;
private final Integer actualVirtualCount;
private final Integer desiredCount;
private final Integer desiredVirtualCount;
private final String function;
private final String key;
private final String strategy;
private final Integer virtualPerPhysical;
@java.lang.SuppressWarnings("all")
ShardingConfig(final Integer actualCount, final Integer actualVirtualCount, final Integer desiredCount, final Integer desiredVirtualCount, final String function, final String key, final String strategy, final Integer virtualPerPhysical) {
this.actualCount = actualCount;
this.actualVirtualCount = actualVirtualCount;
this.desiredCount = desiredCount;
this.desiredVirtualCount = desiredVirtualCount;
this.function = function;
this.key = key;
this.strategy = strategy;
this.virtualPerPhysical = virtualPerPhysical;
}
@java.lang.SuppressWarnings("all")
public static class ShardingConfigBuilder {
@java.lang.SuppressWarnings("all")
private Integer actualCount;
@java.lang.SuppressWarnings("all")
private Integer actualVirtualCount;
@java.lang.SuppressWarnings("all")
private Integer desiredCount;
@java.lang.SuppressWarnings("all")
private Integer desiredVirtualCount;
@java.lang.SuppressWarnings("all")
private String function;
@java.lang.SuppressWarnings("all")
private String key;
@java.lang.SuppressWarnings("all")
private String strategy;
@java.lang.SuppressWarnings("all")
private Integer virtualPerPhysical;
@java.lang.SuppressWarnings("all")
ShardingConfigBuilder() {
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder actualCount(final Integer actualCount) {
this.actualCount = actualCount;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder actualVirtualCount(final Integer actualVirtualCount) {
this.actualVirtualCount = actualVirtualCount;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder desiredCount(final Integer desiredCount) {
this.desiredCount = desiredCount;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder desiredVirtualCount(final Integer desiredVirtualCount) {
this.desiredVirtualCount = desiredVirtualCount;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder function(final String function) {
this.function = function;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder key(final String key) {
this.key = key;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder strategy(final String strategy) {
this.strategy = strategy;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig.ShardingConfigBuilder virtualPerPhysical(final Integer virtualPerPhysical) {
this.virtualPerPhysical = virtualPerPhysical;
return this;
}
@java.lang.SuppressWarnings("all")
public ShardingConfig build() {
return new ShardingConfig(this.actualCount, this.actualVirtualCount, this.desiredCount, this.desiredVirtualCount, this.function, this.key, this.strategy, this.virtualPerPhysical);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "ShardingConfig.ShardingConfigBuilder(actualCount=" + this.actualCount + ", actualVirtualCount=" + this.actualVirtualCount + ", desiredCount=" + this.desiredCount + ", desiredVirtualCount=" + this.desiredVirtualCount + ", function=" + this.function + ", key=" + this.key + ", strategy=" + this.strategy + ", virtualPerPhysical=" + this.virtualPerPhysical + ")";
}
}
@java.lang.SuppressWarnings("all")
public static ShardingConfig.ShardingConfigBuilder builder() {
return new ShardingConfig.ShardingConfigBuilder();
}
@java.lang.SuppressWarnings("all")
public Integer getActualCount() {
return this.actualCount;
}
@java.lang.SuppressWarnings("all")
public Integer getActualVirtualCount() {
return this.actualVirtualCount;
}
@java.lang.SuppressWarnings("all")
public Integer getDesiredCount() {
return this.desiredCount;
}
@java.lang.SuppressWarnings("all")
public Integer getDesiredVirtualCount() {
return this.desiredVirtualCount;
}
@java.lang.SuppressWarnings("all")
public String getFunction() {
return this.function;
}
@java.lang.SuppressWarnings("all")
public String getKey() {
return this.key;
}
@java.lang.SuppressWarnings("all")
public String getStrategy() {
return this.strategy;
}
@java.lang.SuppressWarnings("all")
public Integer getVirtualPerPhysical() {
return this.virtualPerPhysical;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "ShardingConfig(actualCount=" + this.getActualCount() + ", actualVirtualCount=" + this.getActualVirtualCount() + ", desiredCount=" + this.getDesiredCount() + ", desiredVirtualCount=" + this.getDesiredVirtualCount() + ", function=" + this.getFunction() + ", key=" + this.getKey() + ", strategy=" + this.getStrategy() + ", virtualPerPhysical=" + this.getVirtualPerPhysical() + ")";
}
}