Class SizingFactory
- java.lang.Object
-
- org.apache.cassandra.spark.common.SizingFactory
-
public class SizingFactory extends java.lang.ObjectA factory class that createsSizingbased on the client-supplied configuration
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.cassandra.spark.data.Sizingcreate(org.apache.cassandra.spark.data.ReplicationFactor replicationFactor, ClientConfig options, org.apache.cassandra.spark.data.partitioner.ConsistencyLevel consistencyLevel, java.lang.String keyspace, java.lang.String table, java.lang.String datacenter, o.a.c.sidecar.client.shaded.client.SidecarClient sidecarClient, int sidecarPort, java.util.concurrent.CompletableFuture<o.a.c.sidecar.client.shaded.common.response.RingResponse> ringFuture)Returns theSizingobject based on thesizingoption provided by the user, orDefaultSizingas the default sizingprotected static org.apache.cassandra.spark.data.TableSizeProvidergetTableSizeProvider(o.a.c.sidecar.client.shaded.client.SidecarClient sidecarClient, int sidecarPort, java.util.concurrent.CompletableFuture<o.a.c.sidecar.client.shaded.common.response.RingResponse> ringFuture)
-
-
-
Method Detail
-
create
public static org.apache.cassandra.spark.data.Sizing create(org.apache.cassandra.spark.data.ReplicationFactor replicationFactor, ClientConfig options, org.apache.cassandra.spark.data.partitioner.ConsistencyLevel consistencyLevel, java.lang.String keyspace, java.lang.String table, java.lang.String datacenter, o.a.c.sidecar.client.shaded.client.SidecarClient sidecarClient, int sidecarPort, java.util.concurrent.CompletableFuture<o.a.c.sidecar.client.shaded.common.response.RingResponse> ringFuture)Returns theSizingobject based on thesizingoption provided by the user, orDefaultSizingas the default sizing- Parameters:
replicationFactor- the replication factoroptions- theClientConfigoptionsconsistencyLevel- the ConsistencyLevel to usekeyspace- the keyspacetable- the tabledatacenter- the DataCenter to usesidecarClient- the sidecar client instance to usesidecarPort- the port for the sidecar serviceringFuture- a future representing the result of getting the current ring from the sidecar- Returns:
- the
Sizingobject based on thesizingoption provided by the user
-
getTableSizeProvider
protected static org.apache.cassandra.spark.data.TableSizeProvider getTableSizeProvider(o.a.c.sidecar.client.shaded.client.SidecarClient sidecarClient, int sidecarPort, java.util.concurrent.CompletableFuture<o.a.c.sidecar.client.shaded.common.response.RingResponse> ringFuture)
-
-