| 480 | typedef std::map<int64_t, HdfsPartitionDescriptor*> PartitionIdToDescriptorMap; |
| 481 | |
| 482 | HdfsPartitionDescriptor* GetPartition(int64_t partition_id) const { |
| 483 | PartitionIdToDescriptorMap::const_iterator it = |
| 484 | partition_descriptors_.find(partition_id); |
| 485 | if (it == partition_descriptors_.end()) return NULL; |
| 486 | return it->second; |
| 487 | } |
| 488 | |
| 489 | /// Release resources by closing partition descriptors. |
| 490 | void ReleaseResources(); |
no test coverage detected