org.nustaq.kontraktor.services.rlclient.DataCfg Maven / Gradle / Ivy
package org.nustaq.kontraktor.services.rlclient;
import org.nustaq.reallive.api.TableDescription;
import java.io.Serializable;
/**
* Created by ruedi on 15.08.2015.
*/
public class DataCfg implements Serializable {
String dataDir[] = {
"/tmp/reallife", // can be same as table files will contain shardno also
};
TableDescription schema[] = { new TableDescription("dummy") };
int shardQSize = 64_000;
public int getNumberOfShards() {
return dataDir.length;
}
public int getShardQSize() {
return shardQSize;
}
public String[] getDataDir() {
return dataDir;
}
public DataCfg shardQSize(final int shardQSize) {
this.shardQSize = shardQSize;
return this;
}
public DataCfg dataDir(final String[] dataDir) {
this.dataDir = dataDir;
return this;
}
public TableDescription[] getSchema() {
return schema;
}
public DataCfg schema(final TableDescription[] schema) {
this.schema = schema;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy