Ydb.Table.ExplicitPartitions
*/
class ExplicitPartitions extends \Google\Protobuf\Internal\Message
{
/**
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Generated from protobuf field repeated .Ydb.TypedValue split_points = 1;
*/
private $split_points;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $split_points
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbTable::initOnce();
parent::__construct($data);
}
/**
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Generated from protobuf field repeated .Ydb.TypedValue split_points = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getSplitPoints()
{
return $this->split_points;
}
/**
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Generated from protobuf field repeated .Ydb.TypedValue split_points = 1;
* @param array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setSplitPoints($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
$this->split_points = $arr;
return $this;
}
}