Class ValidationUtil
- java.lang.Object
-
- org.apache.accumulo.core.metadata.ValidationUtil
-
public class ValidationUtil extends Object
Utility class for validation of tablet file paths.
-
-
Constructor Summary
Constructors Constructor Description ValidationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
validate(String path)
Validate if string is a valid path.static ReferenceFile
validate(ReferenceFile reference)
static org.apache.hadoop.fs.Path
validate(org.apache.hadoop.fs.Path path)
static void
validateFileName(String fileName)
static void
validateRFileName(String fileName)
-
-
-
Method Detail
-
validate
public static String validate(String path)
Validate if string is a valid path. Return normalized string or throw exception if not valid. This was added to facilitate more use of TabletFile over String but this puts the validation in one location in the case where TabletFile can't be used. The Garbage Collector is optimized to store a directory for Tablet File so a String is used.
-
validate
public static ReferenceFile validate(ReferenceFile reference)
-
validate
public static org.apache.hadoop.fs.Path validate(org.apache.hadoop.fs.Path path)
-
validateRFileName
public static void validateRFileName(String fileName)
-
validateFileName
public static void validateFileName(String fileName)
-
-