本文整理匯總了Java中org.apache.falcon.entity.v0.process.Output類的典型用法代碼示例。如果您正苦於以下問題:Java Output類的具體用法?Java Output怎麽用?Java Output使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Output類屬於org.apache.falcon.entity.v0.process包,在下文中一共展示了Output類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createDataOut
import org.apache.falcon.entity.v0.process.Output; //導入依賴的package包/類
private DATAOUT createDataOut(Output output) {
DATAOUT dataout = new DATAOUT();
dataout.setName(output.getName());
dataout.setDataset(output.getName());
dataout.setInstance(getELExpression(output.getInstance()));
return dataout;
}
示例2: ensureValidityFor
import org.apache.falcon.entity.v0.process.Output; //導入依賴的package包/類
private void ensureValidityFor(Feed newFeed, Process process) throws FalconException {
for (org.apache.falcon.entity.v0.process.Cluster cluster : process.getClusters().getClusters()) {
String clusterName = cluster.getName();
if (process.getInputs() != null) {
for (Input input : process.getInputs().getInputs()) {
if (!input.getFeed().equals(newFeed.getName())) {
continue;
}
CrossEntityValidations.validateFeedDefinedForCluster(newFeed, clusterName);
CrossEntityValidations.validateFeedRetentionPeriod(input.getStart(), newFeed, clusterName);
CrossEntityValidations.validateInstanceRange(process, input, newFeed);
if (input.getPartition() != null) {
CrossEntityValidations.validateInputPartition(input, newFeed);
}
}
}
if (process.getOutputs() != null) {
for (Output output : process.getOutputs().getOutputs()) {
if (!output.getFeed().equals(newFeed.getName())) {
continue;
}
CrossEntityValidations.validateFeedDefinedForCluster(newFeed, clusterName);
CrossEntityValidations.validateInstance(process, output, newFeed);
}
}
LOG.debug("Verified and found " + process.getName() + " to be valid for new definition of "
+ newFeed.getName());
}
}