org.apache.falcon.entity
Class FeedHelper
java.lang.Object
org.apache.falcon.entity.FeedHelper
public final class FeedHelper
- extends Object
Feed entity helper methods.
Method Summary |
static Storage |
createReadOnlyStorage(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
org.apache.falcon.entity.v0.feed.Feed feed)
Factory method to dole out a storage instance used for replication source. |
static Storage |
createStorage(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
org.apache.falcon.entity.v0.feed.Feed feed)
|
static Storage |
createStorage(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed)
|
static Storage |
createStorage(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed,
org.apache.falcon.entity.v0.cluster.Cluster clusterEntity)
|
static Storage |
createStorage(org.apache.falcon.entity.v0.feed.Feed feed)
|
static Storage |
createStorage(String clusterName,
org.apache.falcon.entity.v0.feed.Feed feed)
|
static Storage |
createStorage(String type,
String storageUriTemplate)
|
static String |
evaluateClusterExp(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
String exp)
|
static org.apache.falcon.entity.v0.feed.Cluster |
getCluster(org.apache.falcon.entity.v0.feed.Feed feed,
String clusterName)
|
protected static List<org.apache.falcon.entity.v0.feed.Location> |
getLocations(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed)
|
static String |
getStagingDir(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
org.apache.falcon.entity.v0.feed.Feed feed,
CatalogStorage storage,
Tag tag)
|
static Storage.TYPE |
getStorageType(org.apache.falcon.entity.v0.feed.Feed feed)
|
static Storage.TYPE |
getStorageType(org.apache.falcon.entity.v0.feed.Feed feed,
org.apache.falcon.entity.v0.feed.Cluster cluster)
|
static Storage.TYPE |
getStorageType(org.apache.falcon.entity.v0.feed.Feed feed,
org.apache.falcon.entity.v0.cluster.Cluster clusterEntity)
|
protected static org.apache.falcon.entity.v0.feed.CatalogTable |
getTable(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed)
|
static String |
normalizePartitionExpression(String partition)
|
static String |
normalizePartitionExpression(String part1,
String part2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCluster
public static org.apache.falcon.entity.v0.feed.Cluster getCluster(org.apache.falcon.entity.v0.feed.Feed feed,
String clusterName)
createStorage
public static Storage createStorage(org.apache.falcon.entity.v0.feed.Feed feed)
throws FalconException
- Throws:
FalconException
createStorage
public static Storage createStorage(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
org.apache.falcon.entity.v0.feed.Feed feed)
throws FalconException
- Throws:
FalconException
createStorage
public static Storage createStorage(String clusterName,
org.apache.falcon.entity.v0.feed.Feed feed)
throws FalconException
- Throws:
FalconException
createStorage
public static Storage createStorage(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed)
throws FalconException
- Throws:
FalconException
createStorage
public static Storage createStorage(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed,
org.apache.falcon.entity.v0.cluster.Cluster clusterEntity)
throws FalconException
- Throws:
FalconException
createReadOnlyStorage
public static Storage createReadOnlyStorage(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
org.apache.falcon.entity.v0.feed.Feed feed)
throws FalconException
- Factory method to dole out a storage instance used for replication source.
- Parameters:
clusterEntity
- cluster entityfeed
- feed entity
- Returns:
- an implementation of Storage
- Throws:
FalconException
createStorage
public static Storage createStorage(String type,
String storageUriTemplate)
throws URISyntaxException
- Throws:
URISyntaxException
getStorageType
public static Storage.TYPE getStorageType(org.apache.falcon.entity.v0.feed.Feed feed)
throws FalconException
- Throws:
FalconException
getStorageType
public static Storage.TYPE getStorageType(org.apache.falcon.entity.v0.feed.Feed feed,
org.apache.falcon.entity.v0.feed.Cluster cluster)
throws FalconException
- Throws:
FalconException
getStorageType
public static Storage.TYPE getStorageType(org.apache.falcon.entity.v0.feed.Feed feed,
org.apache.falcon.entity.v0.cluster.Cluster clusterEntity)
throws FalconException
- Throws:
FalconException
getLocations
protected static List<org.apache.falcon.entity.v0.feed.Location> getLocations(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed)
getTable
protected static org.apache.falcon.entity.v0.feed.CatalogTable getTable(org.apache.falcon.entity.v0.feed.Cluster cluster,
org.apache.falcon.entity.v0.feed.Feed feed)
normalizePartitionExpression
public static String normalizePartitionExpression(String part1,
String part2)
normalizePartitionExpression
public static String normalizePartitionExpression(String partition)
evaluateClusterExp
public static String evaluateClusterExp(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
String exp)
throws FalconException
- Throws:
FalconException
getStagingDir
public static String getStagingDir(org.apache.falcon.entity.v0.cluster.Cluster clusterEntity,
org.apache.falcon.entity.v0.feed.Feed feed,
CatalogStorage storage,
Tag tag)
Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.