| @@ 101-104 (lines=4) @@ | ||
| 98 | $flags = 0; |
|
| 99 | $optional = ''; |
|
| 100 | ||
| 101 | if (isset($options['serial_consistency'])) { |
|
| 102 | $flags |= Query::FLAG_WITH_SERIAL_CONSISTENCY; |
|
| 103 | $optional .= pack('n', $options['serial_consistency']); |
|
| 104 | } |
|
| 105 | ||
| 106 | if (isset($options['default_timestamp'])) { |
|
| 107 | $flags |= Query::FLAG_WITH_DEFAULT_TIMESTAMP; |
|
| @@ 184-187 (lines=4) @@ | ||
| 181 | if (!empty($options['skip_metadata'])) |
|
| 182 | $flags |= Query::FLAG_SKIP_METADATA; |
|
| 183 | ||
| 184 | if (isset($options['page_size'])) { |
|
| 185 | $flags |= Query::FLAG_PAGE_SIZE; |
|
| 186 | $optional .= pack('N', $options['page_size']); |
|
| 187 | } |
|
| 188 | ||
| 189 | if (isset($options['paging_state'])) { |
|
| 190 | $flags |= Query::FLAG_WITH_PAGING_STATE; |
|
| @@ 194-197 (lines=4) @@ | ||
| 191 | $optional .= pack('N', strlen($options['paging_state'])) . $options['paging_state']; |
|
| 192 | } |
|
| 193 | ||
| 194 | if (isset($options['serial_consistency'])) { |
|
| 195 | $flags |= Query::FLAG_WITH_SERIAL_CONSISTENCY; |
|
| 196 | $optional .= pack('n', $options['serial_consistency']); |
|
| 197 | } |
|
| 198 | ||
| 199 | if (isset($options['default_timestamp'])) { |
|
| 200 | $flags |= Query::FLAG_WITH_DEFAULT_TIMESTAMP; |
|