|  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 
|  | <html xmlns="http://www.w3.org/1999/xhtml"> | 
|  | <head> | 
|  | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | 
|  | <meta http-equiv="X-UA-Compatible" content="IE=9"/> | 
|  | <meta name="generator" content="Doxygen 1.8.6"/> | 
|  | <title>Impala: impala::TmpFileMgr::File Class Reference</title> | 
|  | <link href="tabs.css" rel="stylesheet" type="text/css"/> | 
|  | <script type="text/javascript" src="jquery.js"></script> | 
|  | <script type="text/javascript" src="dynsections.js"></script> | 
|  | <link href="navtree.css" rel="stylesheet" type="text/css"/> | 
|  | <script type="text/javascript" src="resize.js"></script> | 
|  | <script type="text/javascript" src="navtree.js"></script> | 
|  | <script type="text/javascript"> | 
|  | $(document).ready(initResizable); | 
|  | $(window).load(resizeHeight); | 
|  | </script> | 
|  | <link href="search/search.css" rel="stylesheet" type="text/css"/> | 
|  | <script type="text/javascript" src="search/search.js"></script> | 
|  | <script type="text/javascript"> | 
|  | $(document).ready(function() { searchBox.OnSelectItem(0); }); | 
|  | </script> | 
|  | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | 
|  | </head> | 
|  | <body> | 
|  | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> | 
|  | <div id="titlearea"> | 
|  | <table cellspacing="0" cellpadding="0"> | 
|  | <tbody> | 
|  | <tr style="height: 56px;"> | 
|  | <td style="padding-left: 0.5em;"> | 
|  | <div id="projectname">Impala | 
|  | </div> | 
|  | <div id="projectbrief">Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.</div> | 
|  | </td> | 
|  | </tr> | 
|  | </tbody> | 
|  | </table> | 
|  | </div> | 
|  | <!-- end header part --> | 
|  | <!-- Generated by Doxygen 1.8.6 --> | 
|  | <script type="text/javascript"> | 
|  | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | 
|  | </script> | 
|  | <div id="navrow1" class="tabs"> | 
|  | <ul class="tablist"> | 
|  | <li><a href="index.html"><span>Main Page</span></a></li> | 
|  | <li><a href="namespaces.html"><span>Namespaces</span></a></li> | 
|  | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> | 
|  | <li><a href="files.html"><span>Files</span></a></li> | 
|  | <li> | 
|  | <div id="MSearchBox" class="MSearchBoxInactive"> | 
|  | <span class="left"> | 
|  | <img id="MSearchSelect" src="search/mag_sel.png" | 
|  | onmouseover="return searchBox.OnSearchSelectShow()" | 
|  | onmouseout="return searchBox.OnSearchSelectHide()" | 
|  | alt=""/> | 
|  | <input type="text" id="MSearchField" value="Search" accesskey="S" | 
|  | onfocus="searchBox.OnSearchFieldFocus(true)" | 
|  | onblur="searchBox.OnSearchFieldFocus(false)" | 
|  | onkeyup="searchBox.OnSearchFieldChange(event)"/> | 
|  | </span><span class="right"> | 
|  | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | 
|  | </span> | 
|  | </div> | 
|  | </li> | 
|  | </ul> | 
|  | </div> | 
|  | <div id="navrow2" class="tabs2"> | 
|  | <ul class="tablist"> | 
|  | <li><a href="annotated.html"><span>Class List</span></a></li> | 
|  | <li><a href="classes.html"><span>Class Index</span></a></li> | 
|  | <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> | 
|  | <li><a href="functions.html"><span>Class Members</span></a></li> | 
|  | </ul> | 
|  | </div> | 
|  | </div><!-- top --> | 
|  | <div id="side-nav" class="ui-resizable side-nav-resizable"> | 
|  | <div id="nav-tree"> | 
|  | <div id="nav-tree-contents"> | 
|  | <div id="nav-sync" class="sync"></div> | 
|  | </div> | 
|  | </div> | 
|  | <div id="splitbar" style="-moz-user-select:none;" | 
|  | class="ui-resizable-handle"> | 
|  | </div> | 
|  | </div> | 
|  | <script type="text/javascript"> | 
|  | $(document).ready(function(){initNavTree('classimpala_1_1TmpFileMgr_1_1File.html','');}); | 
|  | </script> | 
|  | <div id="doc-content"> | 
|  | <!-- window showing the filter options --> | 
|  | <div id="MSearchSelectWindow" | 
|  | onmouseover="return searchBox.OnSearchSelectShow()" | 
|  | onmouseout="return searchBox.OnSearchSelectHide()" | 
|  | onkeydown="return searchBox.OnSearchSelectKey(event)"> | 
|  | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a></div> | 
|  |  | 
|  | <!-- iframe showing the search results (closed by default) --> | 
|  | <div id="MSearchResultsWindow"> | 
|  | <iframe src="javascript:void(0)" frameborder="0" | 
|  | name="MSearchResults" id="MSearchResults"> | 
|  | </iframe> | 
|  | </div> | 
|  |  | 
|  | <div class="header"> | 
|  | <div class="summary"> | 
|  | <a href="#pub-methods">Public Member Functions</a> | | 
|  | <a href="#pri-methods">Private Member Functions</a> | | 
|  | <a href="#pri-attribs">Private Attributes</a> | | 
|  | <a href="#pri-static-attribs">Static Private Attributes</a> | | 
|  | <a href="#friends">Friends</a> | | 
|  | <a href="classimpala_1_1TmpFileMgr_1_1File-members.html">List of all members</a>  </div> | 
|  | <div class="headertitle"> | 
|  | <div class="title">impala::TmpFileMgr::File Class Reference</div>  </div> | 
|  | </div><!--header--> | 
|  | <div class="contents"> | 
|  |  | 
|  | <p><code>#include <<a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>></code></p> | 
|  | <div class="dynheader"> | 
|  | Collaboration diagram for impala::TmpFileMgr::File:</div> | 
|  | <div class="dyncontent"> | 
|  | <div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classimpala_1_1TmpFileMgr_1_1File__coll__graph.svg" width="100%" height="538"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div> | 
|  | </div> | 
|  | <table class="memberdecls"> | 
|  | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> | 
|  | Public Member Functions</h2></td></tr> | 
|  | <tr class="memitem:a70109884e9be629a6d1cb3ac77a376a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classimpala_1_1Status.html">Status</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a70109884e9be629a6d1cb3ac77a376a2">AllocateSpace</a> (int64_t write_size, int64_t *<a class="el" href="partitioning-throughput-test_8cc.html#ad172ecfd5c31c5df6282c2b4bc322bf7">offset</a>)</td></tr> | 
|  | <tr class="separator:a70109884e9be629a6d1cb3ac77a376a2"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:aef55149f106b1e9d2554ee9b7bf8bb34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classimpala_1_1Status.html">Status</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#aef55149f106b1e9d2554ee9b7bf8bb34">Remove</a> ()</td></tr> | 
|  | <tr class="separator:aef55149f106b1e9d2554ee9b7bf8bb34"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:a3caf7de1638b43ba3cb07f438f7ee860"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a3caf7de1638b43ba3cb07f438f7ee860">path</a> () const </td></tr> | 
|  | <tr class="separator:a3caf7de1638b43ba3cb07f438f7ee860"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:a8ecdc716ded7275d8633c98c96de4348"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a8ecdc716ded7275d8633c98c96de4348">disk_id</a> () const </td></tr> | 
|  | <tr class="separator:a8ecdc716ded7275d8633c98c96de4348"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | </table><table class="memberdecls"> | 
|  | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a> | 
|  | Private Member Functions</h2></td></tr> | 
|  | <tr class="memitem:ac52127c2d67e10623e45004d9b298ba4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#ac52127c2d67e10623e45004d9b298ba4">File</a> (const std::string &<a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a3caf7de1638b43ba3cb07f438f7ee860">path</a>)</td></tr> | 
|  | <tr class="separator:ac52127c2d67e10623e45004d9b298ba4"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | </table><table class="memberdecls"> | 
|  | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a> | 
|  | Private Attributes</h2></td></tr> | 
|  | <tr class="memitem:a375ba4b952f6bc6ac9a8838bcbe131da"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a375ba4b952f6bc6ac9a8838bcbe131da">path_</a></td></tr> | 
|  | <tr class="memdesc:a375ba4b952f6bc6ac9a8838bcbe131da"><td class="mdescLeft"> </td><td class="mdescRight">Path of the physical file in the filesystem.  <a href="#a375ba4b952f6bc6ac9a8838bcbe131da">More...</a><br/></td></tr> | 
|  | <tr class="separator:a375ba4b952f6bc6ac9a8838bcbe131da"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:aa9af4bd7ae6b0168b8acded95b77222a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#aa9af4bd7ae6b0168b8acded95b77222a">disk_id_</a></td></tr> | 
|  | <tr class="memdesc:aa9af4bd7ae6b0168b8acded95b77222a"><td class="mdescLeft"> </td><td class="mdescRight">The id of the disk on which the physical file lies.  <a href="#aa9af4bd7ae6b0168b8acded95b77222a">More...</a><br/></td></tr> | 
|  | <tr class="separator:aa9af4bd7ae6b0168b8acded95b77222a"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:aabd03dccd1277ee433e257518d5228a2"><td class="memItemLeft" align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#aabd03dccd1277ee433e257518d5228a2">current_offset_</a></td></tr> | 
|  | <tr class="memdesc:aabd03dccd1277ee433e257518d5228a2"><td class="mdescLeft"> </td><td class="mdescRight">Offset to which the next block will be written.  <a href="#aabd03dccd1277ee433e257518d5228a2">More...</a><br/></td></tr> | 
|  | <tr class="separator:aabd03dccd1277ee433e257518d5228a2"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:ad6511d2d7629fe7d69b1d7d3386d059e"><td class="memItemLeft" align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#ad6511d2d7629fe7d69b1d7d3386d059e">current_size_</a></td></tr> | 
|  | <tr class="separator:ad6511d2d7629fe7d69b1d7d3386d059e"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | </table><table class="memberdecls"> | 
|  | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a> | 
|  | Static Private Attributes</h2></td></tr> | 
|  | <tr class="memitem:abe7bfce5d01a1a1084357d9aa9184560"><td class="memItemLeft" align="right" valign="top">static const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#abe7bfce5d01a1a1084357d9aa9184560">TMP_SUB_DIR_NAME</a></td></tr> | 
|  | <tr class="separator:abe7bfce5d01a1a1084357d9aa9184560"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | <tr class="memitem:a357cafa3ff215357a8a679919c4a22a9"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classuint64__t.html">uint64_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a357cafa3ff215357a8a679919c4a22a9">AVAILABLE_SPACE_THRESHOLD_MB</a></td></tr> | 
|  | <tr class="separator:a357cafa3ff215357a8a679919c4a22a9"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | </table><table class="memberdecls"> | 
|  | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a> | 
|  | Friends</h2></td></tr> | 
|  | <tr class="memitem:add4b305ac76fae112c5f1fe9bcb36e1e"><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#add4b305ac76fae112c5f1fe9bcb36e1e">TmpFileMgr</a></td></tr> | 
|  | <tr class="separator:add4b305ac76fae112c5f1fe9bcb36e1e"><td class="memSeparator" colspan="2"> </td></tr> | 
|  | </table> | 
|  | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> | 
|  | <div class="textblock"><p><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html">TmpFileMgr::File</a> is a handle to a physical file in a temporary directory. Clients can allocate file space and remove files using <a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a70109884e9be629a6d1cb3ac77a376a2">AllocateSpace()</a> and <a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#aef55149f106b1e9d2554ee9b7bf8bb34">Remove()</a>. Creation of the file is deferred until the first call to <a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a70109884e9be629a6d1cb3ac77a376a2">AllocateSpace()</a>. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00033">33</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> | 
|  | <a class="anchor" id="ac52127c2d67e10623e45004d9b298ba4"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">impala::TmpFileMgr::File::File </td> | 
|  | <td>(</td> | 
|  | <td class="paramtype">const std::string & </td> | 
|  | <td class="paramname"><em>path</em></td><td>)</td> | 
|  | <td></td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8cc_source.html#l00104">104</a> of file <a class="el" href="tmp-file-mgr_8cc_source.html">tmp-file-mgr.cc</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <h2 class="groupheader">Member Function Documentation</h2> | 
|  | <a class="anchor" id="a70109884e9be629a6d1cb3ac77a376a2"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname"><a class="el" href="classimpala_1_1Status.html">Status</a> impala::TmpFileMgr::File::AllocateSpace </td> | 
|  | <td>(</td> | 
|  | <td class="paramtype">int64_t </td> | 
|  | <td class="paramname"><em>write_size</em>, </td> | 
|  | </tr> | 
|  | <tr> | 
|  | <td class="paramkey"></td> | 
|  | <td></td> | 
|  | <td class="paramtype">int64_t * </td> | 
|  | <td class="paramname"><em>offset</em> </td> | 
|  | </tr> | 
|  | <tr> | 
|  | <td></td> | 
|  | <td>)</td> | 
|  | <td></td><td></td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  | <p>Allocates 'write_size' bytes in this file for a new block of data. The file size is increased by a call to truncate() if necessary. The physical file is created on the first call to <a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a70109884e9be629a6d1cb3ac77a376a2">AllocateSpace()</a>. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8cc_source.html#l00110">110</a> of file <a class="el" href="tmp-file-mgr_8cc_source.html">tmp-file-mgr.cc</a>.</p> | 
|  |  | 
|  | <p>References <a class="el" href="filesystem-util_8cc_source.html#l00066">impala::FileSystemUtil::CreateFile()</a>, <a class="el" href="disk-info_8cc_source.html#l00119">impala::DiskInfo::disk_id()</a>, <a class="el" href="status_8h_source.html#l00087">impala::Status::OK</a>, <a class="el" href="filesystem-util_8cc_source.html#l00085">impala::FileSystemUtil::ResizeFile()</a>, and <a class="el" href="status_8h_source.html#l00242">RETURN_IF_ERROR</a>.</p> | 
|  |  | 
|  | <p>Referenced by <a class="el" href="buffered-block-mgr_8cc_source.html#l00659">impala::BufferedBlockMgr::WriteUnpinnedBlock()</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="a8ecdc716ded7275d8633c98c96de4348"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">int impala::TmpFileMgr::File::disk_id </td> | 
|  | <td>(</td> | 
|  | <td class="paramname"></td><td>)</td> | 
|  | <td> const</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">inline</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00045">45</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | <p>References <a class="el" href="tmp-file-mgr_8h_source.html#l00064">disk_id_</a>.</p> | 
|  |  | 
|  | <p>Referenced by <a class="el" href="buffered-block-mgr_8cc_source.html#l00659">impala::BufferedBlockMgr::WriteUnpinnedBlock()</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="a3caf7de1638b43ba3cb07f438f7ee860"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">const std::string& impala::TmpFileMgr::File::path </td> | 
|  | <td>(</td> | 
|  | <td class="paramname"></td><td>)</td> | 
|  | <td> const</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">inline</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00044">44</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | <p>References <a class="el" href="tmp-file-mgr_8h_source.html#l00061">path_</a>.</p> | 
|  |  | 
|  | <p>Referenced by <a class="el" href="buffered-block-mgr_8cc_source.html#l00659">impala::BufferedBlockMgr::WriteUnpinnedBlock()</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="aef55149f106b1e9d2554ee9b7bf8bb34"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname"><a class="el" href="classimpala_1_1Status.html">Status</a> impala::TmpFileMgr::File::Remove </td> | 
|  | <td>(</td> | 
|  | <td class="paramname"></td><td>)</td> | 
|  | <td></td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  | <p>Delete the physical file on disk, if one was created. It is not valid to read or write to a file after calling <a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#aef55149f106b1e9d2554ee9b7bf8bb34">Remove()</a>. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8cc_source.html#l00132">132</a> of file <a class="el" href="tmp-file-mgr_8cc_source.html">tmp-file-mgr.cc</a>.</p> | 
|  |  | 
|  | <p>References <a class="el" href="status_8h_source.html#l00087">impala::Status::OK</a>, and <a class="el" href="filesystem-util_8cc_source.html#l00053">impala::FileSystemUtil::RemovePaths()</a>.</p> | 
|  |  | 
|  | <p>Referenced by <a class="el" href="buffered-block-mgr_8cc_source.html#l00481">impala::BufferedBlockMgr::~BufferedBlockMgr()</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <h2 class="groupheader">Friends And Related Function Documentation</h2> | 
|  | <a class="anchor" id="add4b305ac76fae112c5f1fe9bcb36e1e"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">friend class <a class="el" href="classimpala_1_1TmpFileMgr.html">TmpFileMgr</a></td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">friend</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00048">48</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <h2 class="groupheader">Member Data Documentation</h2> | 
|  | <a class="anchor" id="a357cafa3ff215357a8a679919c4a22a9"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">const <a class="el" href="classuint64__t.html">uint64_t</a> impala::TmpFileMgr::File::AVAILABLE_SPACE_THRESHOLD_MB</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  | <p>Space (in MB) that must ideally be available for writing on a scratch directory. A warning is issued if available space is less than this threshold. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00056">56</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="aabd03dccd1277ee433e257518d5228a2"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">int64_t impala::TmpFileMgr::File::current_offset_</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>Offset to which the next block will be written. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00067">67</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="ad6511d2d7629fe7d69b1d7d3386d059e"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">int64_t impala::TmpFileMgr::File::current_size_</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  | <p>Current file size. Modified by <a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html#a70109884e9be629a6d1cb3ac77a376a2">AllocateSpace()</a>. Is always >= current offset. Size is 0 before the file is created. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00071">71</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="aa9af4bd7ae6b0168b8acded95b77222a"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">int impala::TmpFileMgr::File::disk_id_</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>The id of the disk on which the physical file lies. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00064">64</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | <p>Referenced by <a class="el" href="tmp-file-mgr_8h_source.html#l00045">disk_id()</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="a375ba4b952f6bc6ac9a8838bcbe131da"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">std::string impala::TmpFileMgr::File::path_</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  |  | 
|  | <p>Path of the physical file in the filesystem. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00061">61</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | <p>Referenced by <a class="el" href="tmp-file-mgr_8h_source.html#l00044">path()</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <a class="anchor" id="abe7bfce5d01a1a1084357d9aa9184560"></a> | 
|  | <div class="memitem"> | 
|  | <div class="memproto"> | 
|  | <table class="mlabels"> | 
|  | <tr> | 
|  | <td class="mlabels-left"> | 
|  | <table class="memname"> | 
|  | <tr> | 
|  | <td class="memname">const std::string impala::TmpFileMgr::File::TMP_SUB_DIR_NAME</td> | 
|  | </tr> | 
|  | </table> | 
|  | </td> | 
|  | <td class="mlabels-right"> | 
|  | <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td> | 
|  | </tr> | 
|  | </table> | 
|  | </div><div class="memdoc"> | 
|  | <p>The name of the sub-directory that Impala created within each configured scratch directory. </p> | 
|  |  | 
|  | <p>Definition at line <a class="el" href="tmp-file-mgr_8h_source.html#l00052">52</a> of file <a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a>.</p> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | <hr/>The documentation for this class was generated from the following files:<ul> | 
|  | <li>be/src/runtime/<a class="el" href="tmp-file-mgr_8h_source.html">tmp-file-mgr.h</a></li> | 
|  | <li>be/src/runtime/<a class="el" href="tmp-file-mgr_8cc_source.html">tmp-file-mgr.cc</a></li> | 
|  | </ul> | 
|  | </div><!-- contents --> | 
|  | </div><!-- doc-content --> | 
|  | <!-- start footer part --> | 
|  | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> | 
|  | <ul> | 
|  | <li class="navelem"><a class="el" href="namespaceimpala.html">impala</a></li><li class="navelem"><a class="el" href="classimpala_1_1TmpFileMgr.html">TmpFileMgr</a></li><li class="navelem"><a class="el" href="classimpala_1_1TmpFileMgr_1_1File.html">File</a></li> | 
|  | <li class="footer">Generated on Thu May 7 2015 16:10:49 for Impala by | 
|  | <a href="http://www.doxygen.org/index.html"> | 
|  | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li> | 
|  | </ul> | 
|  | </div> | 
|  | </body> | 
|  | </html> |