Class SizingFactory


  • public class SizingFactory
    extends java.lang.Object
    A factory class that creates Sizing based on the client-supplied configuration
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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 the Sizing object based on the sizing option provided by the user, or DefaultSizing as the default sizing
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the Sizing object based on the sizing option provided by the user, or DefaultSizing as the default sizing
        Parameters:
        replicationFactor - the replication factor
        options - the ClientConfig options
        consistencyLevel - the ConsistencyLevel to use
        keyspace - the keyspace
        table - the table
        datacenter - the DataCenter to use
        sidecarClient - the sidecar client instance to use
        sidecarPort - the port for the sidecar service
        ringFuture - a future representing the result of getting the current ring from the sidecar
        Returns:
        the Sizing object based on the sizing option 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)