|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.falcon.entity.FileSystemStorage
public class FileSystemStorage
A file system implementation of a feed storage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.falcon.entity.Storage |
---|
Storage.TYPE |
Field Summary | |
---|---|
static String |
FEED_PATH_SEP
|
static String |
FILE_SYSTEM_URL
|
static String |
LOCATION_TYPE_SEP
|
Fields inherited from interface org.apache.falcon.entity.Storage |
---|
DOLLAR_EXPR_START_NORMALIZED, DOLLAR_EXPR_START_REGEX, EXPR_CLOSE_NORMALIZED, EXPR_CLOSE_REGEX, QUESTION_EXPR_START_REGEX |
Constructor Summary | |
---|---|
protected |
FileSystemStorage(org.apache.falcon.entity.v0.feed.Feed feed)
|
protected |
FileSystemStorage(String uriTemplate)
Create an instance from the URI Template that was generated using the getUriTemplate() method. |
protected |
FileSystemStorage(String storageUrl,
List<org.apache.falcon.entity.v0.feed.Location> locations)
|
protected |
FileSystemStorage(String storageUrl,
org.apache.falcon.entity.v0.feed.Locations locations)
|
Method Summary | |
---|---|
boolean |
exists()
Check if the storage, filesystem location or catalog table exists. |
List<org.apache.falcon.entity.v0.feed.Location> |
getLocations()
|
String |
getStorageUrl()
|
Storage.TYPE |
getType()
Return the type of storage. |
String |
getUriTemplate()
Return the uri template. |
String |
getUriTemplate(org.apache.falcon.entity.v0.feed.LocationType locationType)
Return the uri template for a given location type. |
boolean |
isIdentical(Storage toCompareAgainst)
Check for equality of this instance against the one in question. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FEED_PATH_SEP
public static final String LOCATION_TYPE_SEP
public static final String FILE_SYSTEM_URL
Constructor Detail |
---|
protected FileSystemStorage(org.apache.falcon.entity.v0.feed.Feed feed)
protected FileSystemStorage(String storageUrl, org.apache.falcon.entity.v0.feed.Locations locations)
protected FileSystemStorage(String storageUrl, List<org.apache.falcon.entity.v0.feed.Location> locations)
protected FileSystemStorage(String uriTemplate) throws URISyntaxException
uriTemplate
- the uri template from org.apache.falcon.entity.FileSystemStorage#getUriTemplate
URISyntaxException
Method Detail |
---|
public Storage.TYPE getType()
Storage
getType
in interface Storage
public String getStorageUrl()
public List<org.apache.falcon.entity.v0.feed.Location> getLocations()
public String getUriTemplate()
Storage
getUriTemplate
in interface Storage
public String getUriTemplate(org.apache.falcon.entity.v0.feed.LocationType locationType)
Storage
getUriTemplate
in interface Storage
locationType
- type of location, applies only to filesystem type
public boolean exists() throws FalconException
Storage
exists
in interface Storage
FalconException
- an exceptionpublic boolean isIdentical(Storage toCompareAgainst) throws FalconException
Storage
isIdentical
in interface Storage
toCompareAgainst
- instance to compare
FalconException
- an exceptionpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |