4
* Copyright 2017 DataStax, Inc.
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
10
* http://www.apache.org/licenses/LICENSE-2.0
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
22
* A PHP representation of a table
24
final class DefaultTable implements Table {
29
* @return string Name of the table
31
public function name() { }
36
* @param string $name {@inheritDoc}
38
* @return Value Value of an option by name
40
public function option($name) { }
45
* @return array A dictionary of `string` and `Value` pairs of the
47
public function options() { }
52
* @return string Table description or null
54
public function comment() { }
59
* @return float Read repair chance
61
public function readRepairChance() { }
66
* @return float Local read repair chance
68
public function localReadRepairChance() { }
73
* @return int GC grace seconds
75
public function gcGraceSeconds() { }
80
* @return string Caching options
82
public function caching() { }
87
* @return float Bloom filter FP chance
89
public function bloomFilterFPChance() { }
94
* @return int Memtable flush period in milliseconds
96
public function memtableFlushPeriodMs() { }
101
* @return int Default TTL.
103
public function defaultTTL() { }
108
* @return string Speculative retry.
110
public function speculativeRetry() { }
115
* @return int Index interval
117
public function indexInterval() { }
122
* @return string Compaction strategy class name
124
public function compactionStrategyClassName() { }
129
* @return Map Compaction strategy options
131
public function compactionStrategyOptions() { }
136
* @return Map Compression parameters
138
public function compressionParameters() { }
143
* @return bool Value of `populate_io_cache_on_flush` or null
145
public function populateIOCacheOnFlush() { }
150
* @return bool Value of `replicate_on_write` or null
152
public function replicateOnWrite() { }
157
* @return int Value of `max_index_interval` or null
159
public function maxIndexInterval() { }
164
* @return int Value of `min_index_interval` or null
166
public function minIndexInterval() { }
171
* @param string $name Name of the column
173
* @return Column Column instance
175
public function column($name) { }
180
* @return array A list of `Column` instances
182
public function columns() { }
187
* @return array A list of of `Column` instance
189
public function partitionKey() { }
194
* @return array A list of of `Column` instance
196
public function primaryKey() { }
201
* @return array A list of of `Column` instances
203
public function clusteringKey() { }
208
* @return array A list of cluster column orders ('asc' and 'desc')
210
public function clusteringOrder() { }
213
* Get an index by name
215
* @param string $name Index name
217
* @return Index|null An index or null
219
public function index($name) { }
224
* @return array An array of indexes
226
public function indexes() { }
229
* Get materialized view by name
231
* @param string $name Materialized view name
233
* @return MaterizedView|null A materialized view or null
235
public function materializedView($name) { }
238
* Gets all materialized views
240
* @return array An array of materialized views
242
public function materializedViews() { }