Explorar o código

HADOOP-12242. Add in-page TOC to filesystem specification pages. (iwasakims)

(cherry picked from commit 5c07c573db06481c89f1c9ad062e2d2aa19feaa0)
Masatake Iwasaki %!s(int64=9) %!d(string=hai) anos
pai
achega
b7b5807d2c

+ 2 - 0
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/extending.md

@@ -14,6 +14,8 @@
 
 
 # Extending the File System specification and its tests
 # Extending the File System specification and its tests
 
 
+<!-- MACRO{toc|fromDepth=1|toDepth=2} -->
+
 The FileSystem specification is incomplete. It doesn't cover all operations or
 The FileSystem specification is incomplete. It doesn't cover all operations or
 even interfaces and classes in the FileSystem APIs. There may
 even interfaces and classes in the FileSystem APIs. There may
 be some minor issues with those that it does cover, such
 be some minor issues with those that it does cover, such

+ 1 - 3
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/filesystem.md

@@ -19,9 +19,7 @@
 
 
 # class `org.apache.hadoop.fs.FileSystem`
 # class `org.apache.hadoop.fs.FileSystem`
 
 
-* [Invariants](#Invariants)
-* [Predicates and other state access operations](#Predicates_and_other_state_access_operations)
-* [State Changing Operations](#State_Changing_Operations)
+<!-- MACRO{toc|fromDepth=1|toDepth=2} -->
 
 
 The abstract `FileSystem` class is the original class to access Hadoop filesystems;
 The abstract `FileSystem` class is the original class to access Hadoop filesystems;
 non-abstract subclasses exist for all Hadoop-supported filesystems.
 non-abstract subclasses exist for all Hadoop-supported filesystems.

+ 6 - 3
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/fsdatainputstream.md

@@ -16,8 +16,11 @@
 <!--  CLASS: FSDataInputStream -->
 <!--  CLASS: FSDataInputStream -->
 <!--  ============================================================= -->
 <!--  ============================================================= -->
 
 
+# class `org.apache.hadoop.fs.FSDataInputStream`
 
 
-# Class `FSDataInputStream extends DataInputStream`
+<!-- MACRO{toc|fromDepth=1|toDepth=2} -->
+
+## Class `FSDataInputStream extends DataInputStream`
 
 
 The core behavior of `FSDataInputStream` is defined by `java.io.DataInputStream`,
 The core behavior of `FSDataInputStream` is defined by `java.io.DataInputStream`,
 with extensions that add key assumptions to the system.
 with extensions that add key assumptions to the system.
@@ -303,7 +306,7 @@ on the underlying stream:
 Note that implementations are not required to be atomic; the intermediate state
 Note that implementations are not required to be atomic; the intermediate state
 of the operation (the change in the value of `getPos()`) may be visible.
 of the operation (the change in the value of `getPos()`) may be visible.
 
 
-#### Implementation preconditions
+### Implementation preconditions
 
 
 Not all `FSDataInputStream` implementations support these operations. Those that do
 Not all `FSDataInputStream` implementations support these operations. Those that do
 not implement `Seekable.seek()` do not implement the `PositionedReadable`
 not implement `Seekable.seek()` do not implement the `PositionedReadable`
@@ -322,7 +325,7 @@ of `pos` is unchanged at the end of the operation
     pos(FSDIS') == pos(FSDIS)
     pos(FSDIS') == pos(FSDIS)
 
 
 
 
-#### Failure states
+### Failure states
 
 
 For any operations that fail, the contents of the destination
 For any operations that fail, the contents of the destination
 `buffer` are undefined. Implementations may overwrite part
 `buffer` are undefined. Implementations may overwrite part

+ 3 - 1
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/introduction.md

@@ -14,6 +14,8 @@
 
 
 # Introduction
 # Introduction
 
 
+<!-- MACRO{toc|fromDepth=1|toDepth=2} -->
+
 This document defines the required behaviors of a Hadoop-compatible filesystem
 This document defines the required behaviors of a Hadoop-compatible filesystem
 for implementors and maintainers of the Hadoop filesystem, and for users of
 for implementors and maintainers of the Hadoop filesystem, and for users of
 the Hadoop FileSystem APIs
 the Hadoop FileSystem APIs
@@ -57,7 +59,7 @@ By making each aspect of the contract tests configurable, it is possible to
 declare how a filesystem diverges from parts of the standard contract.
 declare how a filesystem diverges from parts of the standard contract.
 This is information which can be conveyed to users of the filesystem.
 This is information which can be conveyed to users of the filesystem.
 
 
-### Naming
+## Naming
 
 
 This document follows RFC 2119 rules regarding the use of MUST, MUST NOT, MAY,
 This document follows RFC 2119 rules regarding the use of MUST, MUST NOT, MAY,
 and SHALL. MUST NOT is treated as normative.
 and SHALL. MUST NOT is treated as normative.

+ 1 - 13
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/model.md

@@ -14,19 +14,7 @@
 
 
 # A Model of a Hadoop Filesystem
 # A Model of a Hadoop Filesystem
 
 
-* [Paths and Path Elements](#Paths_and_Path_Elements)
-    * [Predicates and Functions](#Predicates_and_Functions)
-    * [Notes for relative paths](#Notes_for_relative_paths)
-* [Defining the Filesystem](#Defining_the_Filesystem)
-    * [Directory references](#Directory_references)
-    * [File references](#File_references)
-    * [Symbolic references](#Symbolic_references)
-    * [File Length](#File_Length)
-    * [User home](#User_home)
-    * [Exclusivity](#Exclusivity)
-    * [Encryption Zone](#Encryption_Zone)
-* [Notes](#Notes)
-
+<!-- MACRO{toc|fromDepth=1|toDepth=3} -->
 
 
 ## Paths and Path Elements
 ## Paths and Path Elements
 
 

+ 2 - 0
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/notation.md

@@ -15,6 +15,8 @@
 
 
 # Notation
 # Notation
 
 
+<!-- MACRO{toc|fromDepth=1|toDepth=3} -->
+
 A formal notation such as [The Z Notation](http://www.open-std.org/jtc1/sc22/open/n3187.pdf)
 A formal notation such as [The Z Notation](http://www.open-std.org/jtc1/sc22/open/n3187.pdf)
 would be the strictest way to define Hadoop FileSystem behavior, and could even
 would be the strictest way to define Hadoop FileSystem behavior, and could even
 be used to prove some axioms.
 be used to prove some axioms.

+ 2 - 0
hadoop-common-project/hadoop-common/src/site/markdown/filesystem/testing.md

@@ -14,6 +14,8 @@
 
 
 # Testing the Filesystem Contract
 # Testing the Filesystem Contract
 
 
+<!-- MACRO{toc|fromDepth=1|toDepth=3} -->
+
 ## Running the tests
 ## Running the tests
 
 
 A normal Hadoop test run will test those FileSystems that can be tested locally
 A normal Hadoop test run will test those FileSystems that can be tested locally