CreateSuperFile.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="CreateSuperFile">
  5. <title>CreateSuperFile</title>
  6. <para><emphasis role="bold">STD.File.CreateSuperFile<indexterm>
  7. <primary>STD.File.CreateSuperFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.CreateSuperFile</primary>
  10. </indexterm><indexterm>
  11. <primary>CreateSuperFile</primary>
  12. </indexterm>(</emphasis> <emphasis> superfile </emphasis> <emphasis
  13. role="bold">[</emphasis> <emphasis>, sequentialparts </emphasis> <emphasis
  14. role="bold">] [</emphasis> <emphasis>, allow_exist </emphasis> <emphasis
  15. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  16. role="bold">)</emphasis></para>
  17. <informaltable colsep="1" frame="all" rowsep="1">
  18. <tgroup cols="2">
  19. <colspec colwidth="80.50pt" />
  20. <colspec />
  21. <tbody>
  22. <row>
  23. <entry><emphasis>superfile</emphasis></entry>
  24. <entry>A null-terminated string containing the logical name of the
  25. superfile.</entry>
  26. </row>
  27. <row>
  28. <entry><emphasis>sequentialparts</emphasis></entry>
  29. <entry>Optional. A boolean value indicating whether the sub-files
  30. must be sequentially ordered. If omitted, the default is
  31. FALSE.</entry>
  32. </row>
  33. <row>
  34. <entry><emphasis>allow_exist</emphasis></entry>
  35. <entry>Optional. A boolean value indicating whether to post an error
  36. if the <emphasis>superfile</emphasis> already exists. If TRUE, no
  37. error is posted. If omitted, the default is FALSE.</entry>
  38. </row>
  39. <row>
  40. <entry>Return:<emphasis> </emphasis></entry>
  41. <entry>Null.</entry>
  42. </row>
  43. </tbody>
  44. </tgroup>
  45. </informaltable>
  46. <para>The <emphasis role="bold">CreateSuperFile </emphasis>function creates
  47. an empty <emphasis>superfile</emphasis>. This function is not included in a
  48. superfile transaction.</para>
  49. <para>The <emphasis>sequentialparts</emphasis> parameter set to TRUE governs
  50. the unusual case where the logical numbering of sub-files must be sequential
  51. (for example, where all sub-files are already globally sorted). With
  52. <emphasis>sequentialparts</emphasis> FALSE (the default) the subfile parts
  53. are interleaved so the parts are found locally.</para>
  54. <para>For example, if on a 4-way cluster there are 3 files (A, B, and C)
  55. then the parts are as follows:</para>
  56. <para>A._1_of_4, B._1_of_4, and C_1_of_4 are on node 1</para>
  57. <para>A._2_of_4, B._2_of_4, and C_2_of_4 are on node 2</para>
  58. <para>A._3_of_4, B._3_of_4, and C_3_of_4 are on node 3</para>
  59. <para>A._4_of_4, B._4_of_4, and C_4_of_4 are on node 4</para>
  60. <para>Reading the superfile created with
  61. <emphasis>sequentialparts</emphasis> FALSE on Thor will read the parts in
  62. the order:</para>
  63. <para>[A1,B1,C1,] [A2,B2,C2,] [A3,B3,C3,] [A4,B4,C4]</para>
  64. <para>so the reads will all be local (i.e. A1,B1,C1 on node 1 etc). Setting
  65. <emphasis>sequentialparts</emphasis> to TRUE will read the parts in subfile
  66. order, like this:</para>
  67. <para>[A1,A2,A3,] [A4,B1,B2] [,B3,B4,C1,] [C2,C3,C4]</para>
  68. <para>so that the global order of A,B,C,D is maintained. However, the parts
  69. cannot all be read locally (e.g. A2 and A3 will be read on part 1). Because
  70. of this it is much less efficient to set
  71. <emphasis>sequentialparts</emphasis> true, and as it is unusual anyway to
  72. have files that are partitioned in order, it becomes a very unusual option
  73. to set.</para>
  74. <para>Example:</para>
  75. <programlisting format="linespecific">STD.File.CreateSuperFile('~CLASS::RT::IN::SF1');</programlisting>
  76. </sect1>