org.gcube.indexmanagement.featureindexlibrary.commons
Class FileHelper

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.FileHelper

public class FileHelper
extends Object

Helper class

Author:
UoA

Constructor Summary
FileHelper()
           
 
Method Summary
static boolean existsFullScanBufferFile(String storage, String indexID)
          Checks if the full scan buffer file exists
static boolean existsFullScanFile(String storage, String indexID)
          Checks if the full scan file exists
static boolean existsVAFApproxFile(String storage, String indexID)
          Checks if the VA approximations file exists
static boolean existsVAFBufferFile(String storage, String indexID)
          Checks if the VA buffer file exists
static boolean existsVAFVectorFile(String storage, String indexID)
          Checks if the VA vector file exists
static String getFullScanBufferFile(String storage, String indexID)
          Retrieves the full scan buffer file
static String getFullScanFile(String storage, String indexID)
          Retrieves the full scan file
static String getVAFApproxFile(String storage, String indexID)
          Retrieves the VA approximation file
static String getVAFBufferFile(String storage, String indexID)
          Retrieves the VA buffer file
static String getVAFVectorFile(String storage, String indexID)
          Retrieves the VA vector file
static boolean removeFullScanBufferFile(String storage, String indexID)
          removes the full scan file
static boolean removeVAFBufferFile(String storage, String indexID)
          Removes the VA buffer file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHelper

public FileHelper()
Method Detail

existsFullScanFile

public static boolean existsFullScanFile(String storage,
                                         String indexID)
Checks if the full scan file exists

Parameters:
storage - The storage location
indexID - The index id
Returns:
true if it exists, false otherwise

existsFullScanBufferFile

public static boolean existsFullScanBufferFile(String storage,
                                               String indexID)
Checks if the full scan buffer file exists

Parameters:
storage - The storage location
indexID - The index id
Returns:
true if it exists, false otherwise

getFullScanFile

public static String getFullScanFile(String storage,
                                     String indexID)
Retrieves the full scan file

Parameters:
storage - The storage location
indexID - The index id
Returns:
the file path

getFullScanBufferFile

public static String getFullScanBufferFile(String storage,
                                           String indexID)
Retrieves the full scan buffer file

Parameters:
storage - The storage location
indexID - The index id
Returns:
the file path

removeFullScanBufferFile

public static boolean removeFullScanBufferFile(String storage,
                                               String indexID)
removes the full scan file

Parameters:
storage - The storage location
indexID - The index id
Returns:
wheter or not the file was deleted

existsVAFBufferFile

public static boolean existsVAFBufferFile(String storage,
                                          String indexID)
Checks if the VA buffer file exists

Parameters:
storage - The storage location
indexID - The index id
Returns:
true if it exists, false otherwise

existsVAFVectorFile

public static boolean existsVAFVectorFile(String storage,
                                          String indexID)
Checks if the VA vector file exists

Parameters:
storage - The storage location
indexID - The index id
Returns:
true if it exists, false otherwise

existsVAFApproxFile

public static boolean existsVAFApproxFile(String storage,
                                          String indexID)
Checks if the VA approximations file exists

Parameters:
storage - The storage location
indexID - The index id
Returns:
true if it exists, false otherwise

getVAFBufferFile

public static String getVAFBufferFile(String storage,
                                      String indexID)
Retrieves the VA buffer file

Parameters:
storage - The storage location
indexID - The index id
Returns:
the file path

getVAFVectorFile

public static String getVAFVectorFile(String storage,
                                      String indexID)
Retrieves the VA vector file

Parameters:
storage - The storage location
indexID - The index id
Returns:
the file path

getVAFApproxFile

public static String getVAFApproxFile(String storage,
                                      String indexID)
Retrieves the VA approximation file

Parameters:
storage - The storage location
indexID - The index id
Returns:
the file path

removeVAFBufferFile

public static boolean removeVAFBufferFile(String storage,
                                          String indexID)
Removes the VA buffer file

Parameters:
storage - The storage location
indexID - The index id
Returns:
wheter or not the file was deleted


Copyright © 2013. All Rights Reserved.