| Modifier and Type | Method and Description | 
|---|---|
void | 
copyFromLocal(String fromLocation,
             String toLocation)  | 
void | 
copyToLocal(String fromLocation,
           String toLocation)  | 
boolean | 
cp(String sourceLocation,
  String targetLocation)
Recursively copy all the data sources from the source location to the target location. 
 | 
boolean | 
exists(String location)
Determine whether the specified location has a data source. 
 | 
Iterator<Vertex> | 
head(String location,
    Class readerClass,
    int totalLines)
Get the vertices at the specified graph location. 
 | 
Iterator<String> | 
head(String location,
    int totalLines)
Get a string representation of the specified number of lines at the data source location. 
 | 
<K,V> Iterator<KeyValue<K,V>> | 
head(String location,
    String memoryKey,
    Class readerClass,
    int totalLines)
Get the  
KeyValue data at the specified memory location. | 
List<String> | 
ls()
List all the data sources in the root directory. 
 | 
List<String> | 
ls(String location)
List all the data sources at the specified location. 
 | 
void | 
mergeToLocal(String fromLocation,
            String toLocation)  | 
boolean | 
mkdir(String location)  | 
static FileSystemStorage | 
open()  | 
static FileSystemStorage | 
open(Configuration configuration)  | 
static FileSystemStorage | 
open(FileSystem fileSystem)  | 
boolean | 
rm(String location)
Recursively remove the data source at the specified location. 
 | 
String | 
toString()  | 
public static FileSystemStorage open()
public static FileSystemStorage open(Configuration configuration)
public static FileSystemStorage open(FileSystem fileSystem)
public List<String> ls()
Storagepublic List<String> ls(String location)
Storagepublic boolean mkdir(String location)
public boolean cp(String sourceLocation, String targetLocation)
Storagepublic boolean exists(String location)
Storagepublic boolean rm(String location)
Storagepublic Iterator<String> head(String location, int totalLines)
Storagepublic Iterator<Vertex> head(String location, Class readerClass, int totalLines)
Storagehead in interface Storagelocation - the location of the graph (or the root location and search will be made)readerClass - the class of the parser that understands the graph formattotalLines - the total number of lines of the graph to returnpublic <K,V> Iterator<KeyValue<K,V>> head(String location, String memoryKey, Class readerClass, int totalLines)
StorageKeyValue data at the specified memory location.Copyright © 2013–2018 Apache Software Foundation. All rights reserved.