A representation of a materialized view on a table
| 3096 | |
| 3097 | |
| 3098 | class MaterializedViewMetadata(object): |
| 3099 | """ |
| 3100 | A representation of a materialized view on a table |
| 3101 | """ |
| 3102 | |
| 3103 | keyspace_name = None |
| 3104 | """ A string name of the keyspace of this view.""" |
| 3105 | |
| 3106 | name = None |
| 3107 | """ A string name of the view.""" |
| 3108 | |
| 3109 | base_table_name = None |
| 3110 | """ A string name of the base table for this view.""" |
| 3111 | |
| 3112 | partition_key = None |
| 3113 | """ |
| 3114 | A list of :class:`.ColumnMetadata` instances representing the columns in |
| 3115 | the partition key for this view. This will always hold at least one |
| 3116 | column. |
| 3117 | """ |
| 3118 | |
| 3119 | clustering_key = None |
| 3120 | """ |
| 3121 | A list of :class:`.ColumnMetadata` instances representing the columns |
| 3122 | in the clustering key for this view. |
| 3123 | |
| 3124 | Note that a table may have no clustering keys, in which case this will |
| 3125 | be an empty list. |
| 3126 | """ |
| 3127 | |
| 3128 | columns = None |
| 3129 | """ |
| 3130 | A dict mapping column names to :class:`.ColumnMetadata` instances. |
| 3131 | """ |
| 3132 | |
| 3133 | include_all_columns = None |
| 3134 | """ A flag indicating whether the view was created AS SELECT * """ |
| 3135 | |
| 3136 | where_clause = None |
| 3137 | """ String WHERE clause for the view select statement. From server metadata """ |
| 3138 | |
| 3139 | options = None |
| 3140 | """ |
| 3141 | A dict mapping table option names to their specific settings for this |
| 3142 | view. |
| 3143 | """ |
| 3144 | |
| 3145 | extensions = None |
| 3146 | """ |
| 3147 | Metadata describing configuration for table extensions |
| 3148 | """ |
| 3149 | |
| 3150 | def __init__(self, keyspace_name, view_name, base_table_name, include_all_columns, where_clause, options): |
| 3151 | self.keyspace_name = keyspace_name |
| 3152 | self.name = view_name |
| 3153 | self.base_table_name = base_table_name |
| 3154 | self.partition_key = [] |
| 3155 | self.clustering_key = [] |
no outgoing calls
no test coverage detected