Read dictionary from dictionary batch
| 1127 | |
| 1128 | // Read dictionary from dictionary batch |
| 1129 | Status ReadDictionary(const Message& message) { |
| 1130 | DictionaryKind kind; |
| 1131 | IpcReadContext context(&dictionary_memo_, options_, swap_endian_); |
| 1132 | RETURN_NOT_OK(::arrow::ipc::ReadDictionary(message, context, &kind)); |
| 1133 | ++stats_.num_dictionary_batches; |
| 1134 | switch (kind) { |
| 1135 | case DictionaryKind::New: |
| 1136 | break; |
| 1137 | case DictionaryKind::Delta: |
| 1138 | ++stats_.num_dictionary_deltas; |
| 1139 | break; |
| 1140 | case DictionaryKind::Replacement: |
| 1141 | ++stats_.num_replaced_dictionaries; |
| 1142 | break; |
| 1143 | } |
| 1144 | return Status::OK(); |
| 1145 | } |
| 1146 | |
| 1147 | std::shared_ptr<Listener> listener_; |
| 1148 | const IpcReadOptions options_; |
nothing calls this directly
no test coverage detected