org.apache.hadoop.hdfs.server.namenode.snapshot
Class FileWithSnapshot.Util

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshot.Util
Enclosing interface:
org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshot

public static class FileWithSnapshot.Util
extends Object

Utility methods for the classes which implement the interface.


Constructor Summary
FileWithSnapshot.Util()
           
 
Method Summary
static short getBlockReplication(org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshot file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWithSnapshot.Util

public FileWithSnapshot.Util()
Method Detail

getBlockReplication

public static short getBlockReplication(org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshot file)
Returns:
block replication, which is the max file replication among the file and the diff list.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.