public interface Storage
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| default Iterator<String> | head(String location)Get a string representation of the specified number of lines at the data source location. | 
| default Iterator<Vertex> | head(String location,
    Class readerClass)Get the vertices at the specified graph location. | 
| 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. | 
| default <K,V> Iterator<KeyValue<K,V>> | head(String location,
    String memoryKey,
    Class readerClass)Get the  KeyValuedata at the specified memory location. | 
| <K,V> Iterator<KeyValue<K,V>> | head(String location,
    String memoryKey,
    Class readerClass,
    int totalLines)Get the  KeyValuedata 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. | 
| boolean | rm(String location)Recursively remove the data source at the specified location. | 
List<String> ls()
List<String> ls(String location)
location - a locationboolean cp(String sourceLocation, String targetLocation)
sourceLocation - the source locationtargetLocation - the target locationboolean exists(String location)
location - a location to checkboolean rm(String location)
location - the location of the data sourcedefault Iterator<String> head(String location)
location - the data source locationIterator<String> head(String location, int totalLines)
location - the data source locationtotalLines - the total number of lines to retrieveIterator<Vertex> head(String location, Class readerClass, int totalLines)
location - 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 returndefault Iterator<Vertex> head(String location, Class readerClass)
location - the location of the graph (or the root location and search will be made)readerClass - the class of the parser that understands the graph format<K,V> Iterator<KeyValue<K,V>> head(String location, String memoryKey, Class readerClass, int totalLines)
KeyValue data at the specified memory location.location - the root location of the datamemoryKey - the memory keyreaderClass - the class of the parser that understands the memory formattotalLines - the total number of key-values to returndefault <K,V> Iterator<KeyValue<K,V>> head(String location, String memoryKey, Class readerClass)
KeyValue data at the specified memory location.location - the root location of the datamemoryKey - the memory keyreaderClass - the class of the parser that understands the memory formatCopyright © 2013–2018 Apache Software Foundation. All rights reserved.