|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.falcon.entity.CatalogStorage
public class CatalogStorage
A catalog registry 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 |
CATALOG_URL
|
static String |
INPUT_PATH_SEPARATOR
|
static String |
OUTPUT_PATH_SEPARATOR
|
static String |
PARTITION_KEYVAL_SEPARATOR
|
static String |
PARTITION_SEPARATOR
|
static String |
PARTITION_VALUE_QUOTE
|
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 |
CatalogStorage(org.apache.falcon.entity.v0.cluster.Cluster cluster,
org.apache.falcon.entity.v0.feed.CatalogTable table)
|
protected |
CatalogStorage(org.apache.falcon.entity.v0.feed.Feed feed)
|
protected |
CatalogStorage(String uriTemplate)
Create an instance from the URI Template that was generated using the getUriTemplate() method. |
protected |
CatalogStorage(String catalogUrl,
org.apache.falcon.entity.v0.feed.CatalogTable table)
|
protected |
CatalogStorage(String catalogUrl,
String tableUri)
|
Method Summary | |
---|---|
boolean |
exists()
Check if the storage, filesystem location or catalog table exists. |
String |
getCatalogUrl()
|
String |
getDatabase()
|
String |
getDatedPartitionKey()
|
Map<String,String> |
getPartitions()
|
String |
getPartitionValue(String key)
|
String |
getTable()
|
Storage.TYPE |
getType()
Return the type of storage. |
String |
getUriTemplate()
LocationType does NOT matter here. |
String |
getUriTemplate(org.apache.falcon.entity.v0.feed.LocationType locationType)
LocationType does NOT matter here. |
boolean |
hasPartition(String key)
|
boolean |
isIdentical(Storage toCompareAgainst)
Check for equality of this instance against the one in question. |
String |
toPartitionAsPath()
Convert the partition map to path string. |
String |
toPartitionFilter()
Convert the partition map to filter string. |
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 PARTITION_SEPARATOR
public static final String PARTITION_KEYVAL_SEPARATOR
public static final String INPUT_PATH_SEPARATOR
public static final String OUTPUT_PATH_SEPARATOR
public static final String PARTITION_VALUE_QUOTE
public static final String CATALOG_URL
Constructor Detail |
---|
protected CatalogStorage(org.apache.falcon.entity.v0.feed.Feed feed) throws URISyntaxException
URISyntaxException
protected CatalogStorage(org.apache.falcon.entity.v0.cluster.Cluster cluster, org.apache.falcon.entity.v0.feed.CatalogTable table) throws URISyntaxException
URISyntaxException
protected CatalogStorage(String catalogUrl, org.apache.falcon.entity.v0.feed.CatalogTable table) throws URISyntaxException
URISyntaxException
protected CatalogStorage(String catalogUrl, String tableUri) throws URISyntaxException
URISyntaxException
protected CatalogStorage(String uriTemplate) throws URISyntaxException
uriTemplate
- the uri template from org.apache.falcon.entity.CatalogStorage#getUriTemplate
URISyntaxException
Method Detail |
---|
public String getCatalogUrl()
public String getDatabase()
public String getTable()
public Map<String,String> getPartitions()
public String getPartitionValue(String key)
key
- partition key
public boolean hasPartition(String key)
key
- partition key
public String getDatedPartitionKey()
public String toPartitionFilter()
public String toPartitionAsPath()
public Storage.TYPE getType()
Storage
getType
in interface Storage
public String getUriTemplate()
getUriTemplate
in interface Storage
public String getUriTemplate(org.apache.falcon.entity.v0.feed.LocationType locationType)
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 |