public final class NASADatasetUtil
extends java.lang.Object
Constructor and Description |
---|
NASADatasetUtil() |
Modifier and Type | Method and Description |
---|---|
static Path[] |
convertFromListToArray(java.util.ArrayList<Path> pathsList) |
static java.lang.String |
extractDateStringFromFileStatus(FileStatus fileStatus) |
static java.lang.String |
extractDateStringFromPath(Path filePath) |
static int |
extractDayFromDate(java.lang.String dateString) |
static int |
extractMonthFromDate(java.lang.String dateString) |
static int |
extractYearFromDate(java.lang.String dateString) |
static java.lang.String |
getDayFormat(java.lang.String dateString) |
static Path[] |
getFilesListInPath(Path path) |
static java.lang.String |
getHDFfilePattern(java.lang.String pathString) |
static int |
getMatchingFilesCountInPath(Path path,
java.lang.String inputDateString) |
static Path[] |
getMatchingFilesInPath(Path path,
java.lang.String inputDateString) |
static java.lang.String |
getMonthFormat(java.lang.String dateString) |
static java.util.ArrayList<Path[]> |
getSortedTuplesInPath(Path parentHomePath,
java.lang.String dateString) |
static java.lang.String |
getYearFormat(java.lang.String dateString) |
public static java.lang.String extractDateStringFromFileStatus(FileStatus fileStatus)
public static java.lang.String extractDateStringFromPath(Path filePath)
public static java.lang.String getYearFormat(java.lang.String dateString)
public static java.lang.String getMonthFormat(java.lang.String dateString)
public static java.lang.String getDayFormat(java.lang.String dateString)
public static int extractDayFromDate(java.lang.String dateString)
public static int extractMonthFromDate(java.lang.String dateString)
public static int extractYearFromDate(java.lang.String dateString)
public static int getMatchingFilesCountInPath(Path path, java.lang.String inputDateString) throws java.io.IOException
java.io.IOException
public static Path[] getMatchingFilesInPath(Path path, java.lang.String inputDateString) throws java.io.IOException
java.io.IOException
public static Path[] convertFromListToArray(java.util.ArrayList<Path> pathsList)
public static Path[] getFilesListInPath(Path path) throws java.io.IOException
java.io.IOException
public static java.util.ArrayList<Path[]> getSortedTuplesInPath(Path parentHomePath, java.lang.String dateString) throws java.io.IOException
java.io.IOException
public static java.lang.String getHDFfilePattern(java.lang.String pathString)