| 420 | } |
| 421 | |
| 422 | string TupleCacheNode::GetDebugDumpPath(const RuntimeState* state, |
| 423 | const string& org_fragment_id, string* sub_dir_full_path) const { |
| 424 | // The name of the subdirectory is hash key. |
| 425 | // For non-reference files, the file name is the fragment instance node id. |
| 426 | // For reference files, the name includes the current fragment instance node id, the |
| 427 | // original fragment node id, and a "ref" suffix. |
| 428 | string file_name = GenerateFragmentNodeId(state, this); |
| 429 | if (!org_fragment_id.empty()) { |
| 430 | // Adds the original fragment id of the cache to the path for debugging purpose. |
| 431 | file_name = Substitute("$0_$1_ref", file_name, org_fragment_id); |
| 432 | } |
| 433 | return ExecEnv::GetInstance()->tuple_cache_mgr()->GetDebugDumpPath( |
| 434 | combined_key_, file_name, sub_dir_full_path); |
| 435 | } |
| 436 | |
| 437 | void TupleCacheNode::DebugString(int indentation_level, stringstream* out) const { |
| 438 | *out << string(indentation_level * 2, ' '); |
nothing calls this directly
no test coverage detected