Package org.apache.hadoop.hdfs.protocol
Class LayoutFlags
java.lang.Object
org.apache.hadoop.hdfs.protocol.LayoutFlags
LayoutFlags represent features which the FSImage and edit logs can either
support or not, independently of layout version.
Note: all flags starting with 'test' are reserved for unit test purposes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidread(DataInputStream in) Read next int from given input stream.static voidwrite(DataOutputStream out)
-
Method Details
-
read
Read next int from given input stream. If the value is not 0 (unsupported feature flags), throw appropriate IOException.- Parameters:
in- The stream to read from.- Throws:
IOException- If next byte read from given stream is not 0.
-
write
- Throws:
IOException
-