public class StructuredDirectory extends Object
| Constructor and Description |
|---|
StructuredDirectory() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decodeFileName(File inputFile) |
static int |
decodeFileName(String inputFile) |
static String |
getFilePath(int docId,
String extention) |
static int[] |
getSplit(int docId) |
static File |
storeFile(File outDir,
File inputFile) |
public static int[] getSplit(int docId)
docId - public static File storeFile(File outDir, File inputFile) throws IOException
inputFile - will be copied to an organized directory-structure, e.g
2345678.txt to {outdir}/2/345/678.txtoutDir - IOExceptionpublic static int decodeFileName(File inputFile) throws IOException
IOExceptionpublic static int decodeFileName(String inputFile) throws IOException
IOExceptionCopyright © 2015 Bluebrain Project. All rights reserved.