Package io.trino.plugin.hive.rubix
Class RubixConfig
- java.lang.Object
-
- io.trino.plugin.hive.rubix.RubixConfig
-
public class RubixConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRubixConfig.ReadMode
-
Constructor Summary
Constructors Constructor Description RubixConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBookKeeperServerPort()@NotNull Optional<String>getCacheLocation()@MinDuration("0s") @NotNull io.airlift.units.DurationgetCacheTtl()intgetDataTransferServerPort()@javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) intgetDiskUsagePercentage()@NotNull RubixConfig.ReadModegetReadMode()booleanisStartServerOnCoordinator()RubixConfigsetBookKeeperServerPort(int port)RubixConfigsetCacheLocation(String location)RubixConfigsetCacheTtl(io.airlift.units.Duration cacheTtl)RubixConfigsetDataTransferServerPort(int port)RubixConfigsetDiskUsagePercentage(int diskUsagePercentage)RubixConfigsetReadMode(RubixConfig.ReadMode readMode)RubixConfigsetStartServerOnCoordinator(boolean startServerOnCoordinator)
-
-
-
Method Detail
-
getReadMode
@NotNull public @NotNull RubixConfig.ReadMode getReadMode()
-
setReadMode
@Config("hive.cache.read-mode") public RubixConfig setReadMode(RubixConfig.ReadMode readMode)
-
setCacheLocation
@Config("hive.cache.location") public RubixConfig setCacheLocation(String location)
-
getCacheTtl
@MinDuration("0s") @NotNull public @MinDuration("0s") @NotNull io.airlift.units.Duration getCacheTtl()
-
setCacheTtl
@Config("hive.cache.ttl") public RubixConfig setCacheTtl(io.airlift.units.Duration cacheTtl)
-
getDiskUsagePercentage
@Min(0L) @Max(100L) public @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) int getDiskUsagePercentage()
-
setDiskUsagePercentage
@Config("hive.cache.disk-usage-percentage") public RubixConfig setDiskUsagePercentage(int diskUsagePercentage)
-
getBookKeeperServerPort
public int getBookKeeperServerPort()
-
setBookKeeperServerPort
@Config("hive.cache.bookkeeper-port") public RubixConfig setBookKeeperServerPort(int port)
-
getDataTransferServerPort
public int getDataTransferServerPort()
-
setDataTransferServerPort
@Config("hive.cache.data-transfer-port") public RubixConfig setDataTransferServerPort(int port)
-
isStartServerOnCoordinator
public boolean isStartServerOnCoordinator()
-
setStartServerOnCoordinator
@Config("hive.cache.start-server-on-coordinator") public RubixConfig setStartServerOnCoordinator(boolean startServerOnCoordinator)
-
-