()
| 195 | } |
| 196 | |
| 197 | function loadConsistencyNames() { |
| 198 | if (consistencyNames) { |
| 199 | return; |
| 200 | } |
| 201 | consistencyNames = {}; |
| 202 | const propertyNames = Object.keys(types.consistencies); |
| 203 | for (let i = 0; i < propertyNames.length; i++) { |
| 204 | const name = propertyNames[i]; |
| 205 | consistencyNames[types.consistencies[name]] = name.toUpperCase(); |
| 206 | } |
| 207 | //Using java constants naming conventions |
| 208 | consistencyNames[types.consistencies.localQuorum] = 'LOCAL_QUORUM'; |
| 209 | consistencyNames[types.consistencies.eachQuorum] = 'EACH_QUORUM'; |
| 210 | consistencyNames[types.consistencies.localSerial] = 'LOCAL_SERIAL'; |
| 211 | consistencyNames[types.consistencies.localOne] = 'LOCAL_ONE'; |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Represents a wrapper around the options related to a graph execution. |
no test coverage detected