Class LayoutFlags

java.lang.Object
org.apache.hadoop.hdfs.protocol.LayoutFlags

@Private public class LayoutFlags extends Object
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 Details

    • read

      public static void read(DataInputStream in) throws IOException
      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

      public static void write(DataOutputStream out) throws IOException
      Throws:
      IOException