当前位置: 首页>>代码示例>>Java>>正文


Java Relationship类代码示例

本文整理汇总了Java中org.apache.nifi.processor.Relationship的典型用法代码示例。如果您正苦于以下问题:Java Relationship类的具体用法?Java Relationship怎么用?Java Relationship使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Relationship类属于org.apache.nifi.processor包,在下文中一共展示了Relationship类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    final List<PropertyDescriptor> properties = new ArrayList<>();
    properties.add(DIRECTORY);
    properties.add(FILE_FILTER);
    properties.add(PATH_FILTER);
    properties.add(BATCH_SIZE);
    properties.add(KEEP_SOURCE_FILE);
    properties.add(RECURSE);
    properties.add(POLLING_INTERVAL);
    properties.add(IGNORE_HIDDEN_FILES);
    properties.add(MIN_AGE);
    properties.add(MAX_AGE);
    properties.add(MIN_SIZE);
    properties.add(MAX_SIZE);
    properties.add(EXPERIMENT_LOG_FILE);
    this.properties = Collections.unmodifiableList(properties);

    final Set<Relationship> relationships = new HashSet<>();
    relationships.add(REL_SUCCESS);
    this.relationships = Collections.unmodifiableSet(relationships);

}
 
开发者ID:dream-lab,项目名称:echo,代码行数:24,代码来源:ETLGetFile.java

示例2: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    final List<PropertyDescriptor> properties = new ArrayList<PropertyDescriptor>();
    properties.add(DIRECTORY);
    properties.add(FILE_FILTER);
    properties.add(PATH_FILTER);
    properties.add(BATCH_SIZE);
    properties.add(KEEP_SOURCE_FILE);
    properties.add(RECURSE);
    properties.add(POLLING_INTERVAL);
    properties.add(IGNORE_HIDDEN_FILES);
    properties.add(MIN_AGE);
    properties.add(MAX_AGE);
    properties.add(MIN_SIZE);
    properties.add(MAX_SIZE);
    this.properties = Collections.unmodifiableList(properties);

    final Set<Relationship> relationships = new HashSet<Relationship>();
    relationships.add(REL_SUCCESS);
    this.relationships = Collections.unmodifiableSet(relationships);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:22,代码来源:GetFileBatch.java

示例3: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
    protected void init(final ProcessorInitializationContext context) {
        final List<PropertyDescriptor> properties = new ArrayList<PropertyDescriptor>();
//        properties.add(DIRECTORY);
        properties.add(FILE_FILTER);
        properties.add(PATH_FILTER);
        properties.add(BATCH_SIZE);
        properties.add(KEEP_SOURCE_FILE);
        properties.add(RECURSE);
        properties.add(POLLING_INTERVAL);
        properties.add(IGNORE_HIDDEN_FILES);
        properties.add(MIN_AGE);
        properties.add(MAX_AGE);
        properties.add(MIN_SIZE);
        properties.add(MAX_SIZE);
        this.properties = Collections.unmodifiableList(properties);

        final Set<Relationship> relationships = new HashSet<Relationship>();
        relationships.add(REL_SUCCESS);
        this.relationships = Collections.unmodifiableSet(relationships);
    }
 
开发者ID:dream-lab,项目名称:echo,代码行数:22,代码来源:GetFileFromAttribute.java

示例4: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    final List<PropertyDescriptor> properties = new ArrayList<PropertyDescriptor>();
    properties.add(DIRECTORY);
    properties.add(FILE_FILTER);
    properties.add(BATCH_SIZE);
    properties.add(KEEP_SOURCE_FILE);
    properties.add(POLLING_INTERVAL);
    this.properties = Collections.unmodifiableList(properties);

    final Set<Relationship> relationships = new HashSet<Relationship>();
    relationships.add(REL_SUCCESS);
    this.relationships = Collections.unmodifiableSet(relationships);
    String user = "ubuntu";
    String pass ="ubuntu";
    auth = new NtlmPasswordAuthentication("",user, pass);
 
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:19,代码来源:GetSmbFiles.java

示例5: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    // relationships
    final Set<Relationship> procRels = new HashSet<Relationship>();
    procRels.add(REL_SUCCESS);
    procRels.add(REL_FAILURE);
    relationships = Collections.unmodifiableSet(procRels);

    // descriptors
    final List<PropertyDescriptor> supDescriptors = new ArrayList<PropertyDescriptor>();
    supDescriptors.add(DIRECTORY);
    supDescriptors.add(CONFLICT_RESOLUTION);
    supDescriptors.add(CREATE_DIRS);
    supDescriptors.add(MAX_DESTINATION_FILES);
    supDescriptors.add(CHANGE_LAST_MODIFIED_TIME);
    supDescriptors.add(CHANGE_PERMISSIONS);
    supDescriptors.add(CHANGE_OWNER);
    supDescriptors.add(CHANGE_GROUP);
    properties = Collections.unmodifiableList(supDescriptors);
    String user = "ubuntu";
    String pass ="ubuntu";
    auth = new NtlmPasswordAuthentication("",user, pass);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:24,代码来源:PutSmbFiles.java

示例6: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    // relationships
    batchCounterMap = new HashMap<>();
    final Set<Relationship> procRels = new HashSet<Relationship>();
    procRels.add(REL_SUCCESS);
    procRels.add(REL_FAILURE);
    relationships = Collections.unmodifiableSet(procRels);

    // descriptors
    final List<PropertyDescriptor> supDescriptors = new ArrayList<PropertyDescriptor>();
    supDescriptors.add(DIRECTORY);
    supDescriptors.add(CONFLICT_RESOLUTION);
    supDescriptors.add(CREATE_DIRS);
    supDescriptors.add(MAX_DESTINATION_FILES);
    supDescriptors.add(CHANGE_LAST_MODIFIED_TIME);
    supDescriptors.add(CHANGE_PERMISSIONS);
    supDescriptors.add(CHANGE_OWNER);
    supDescriptors.add(CHANGE_GROUP);
    supDescriptors.add(BATCH_SIZE);
    properties = Collections.unmodifiableList(supDescriptors);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:23,代码来源:PutFileBatch.java

示例7: PutScp

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
public PutScp() {
    final List<PropertyDescriptor> properties = new ArrayList<>();
    properties.add(HOSTNAME);
    properties.add(PORT);
    properties.add(USERNAME);
    properties.add(PASSWORD);
    properties.add(PRIVATE_KEY_PATH);
    properties.add(PRIVATE_KEY_PASSPHRASE);
    properties.add(REMOTE_PATH);
    properties.add(BATCH_SIZE);
    properties.add(CONNECTION_TIMEOUT);
    properties.add(DATA_TIMEOUT);
    properties.add(REJECT_ZERO_BYTE);
    properties.add(HOST_KEY_FILE);
    properties.add(STRICT_HOST_KEY_CHECKING);
    properties.add(USE_KEEPALIVE_ON_TIMEOUT);
    properties.add(USE_COMPRESSION);
    properties.add(PERMISSIONS);
    this.properties = Collections.unmodifiableList(properties);

    final Set<Relationship> relationships = new HashSet<>();
    relationships.add(REL_SUCCESS);
    relationships.add(REL_FAILURE);
    relationships.add(REL_REJECT);
    this.relationships = Collections.unmodifiableSet(relationships);
}
 
开发者ID:Asymmetrik,项目名称:nifi-nars,代码行数:27,代码来源:PutScp.java

示例8: getRelationships

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public Set<Relationship> getRelationships() {
	final Set<Relationship> rels = new HashSet<>();
	rels.add(REL_SUCCESS);
	rels.add(REL_FAILURE);
	return rels;
}
 
开发者ID:saniam,项目名称:nifi,代码行数:8,代码来源:Avro2CsvProcessor.java

示例9: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
	final Set<Relationship> relationships = new HashSet<Relationship>();
       relationships.add(REL_SUCCESS);
        this.relationships = Collections.unmodifiableSet(relationships);

        final List<PropertyDescriptor> properties = new ArrayList<>();
        properties.add(META_FILEPATH);
        properties.add(EXPERIMENT_LOG_FILE);
        this.properties = Collections.unmodifiableList(properties);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:AnnotateETL.java

示例10: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
	final Set<Relationship> relationships = new HashSet<Relationship>();
       relationships.add(REL_SUCCESS);
       this.relationships = Collections.unmodifiableSet(relationships);
       
       final List<PropertyDescriptor> properties = new ArrayList<>();
       properties.add(BLOOMFILTER_FILEPATH);
	properties.add(EXPERIMENT_LOG_FILE);
       this.properties = Collections.unmodifiableList(properties);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:EdgentFilter_RBI.java

示例11: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
       final Set<Relationship> relationships = new HashSet<Relationship>();
	relationships.add(REL_SUCCESS);
       this.relationships = Collections.unmodifiableSet(relationships);
       final List<PropertyDescriptor> properties = new ArrayList<>();
       properties.add(SCHEMA_FILEPATH);
       properties.add(EXPERIMENT_LOG_FILE);
       this.properties = Collections.unmodifiableList(properties);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:11,代码来源:CSVSenMLParser.java

示例12: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
	final Set<Relationship> relationships = new HashSet<Relationship>();
       relationships.add(REL_SUCCESS);
        this.relationships = Collections.unmodifiableSet(relationships);

        final List<PropertyDescriptor> properties = new ArrayList<>();
        properties.add(SCHEMA_FILEPATH);
        properties.add(EXPERIMENT_LOG_FILE);
        this.properties = Collections.unmodifiableList(properties);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:JoinETL.java

示例13: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
	final Set<Relationship> relationships = new HashSet<Relationship>();
       relationships.add(REL_SUCCESS);
    this.relationships = Collections.unmodifiableSet(relationships);
    final List<PropertyDescriptor> properties = new ArrayList<>();
    properties.add(AZURE_STORAGE_CONN_STR);
    properties.add(AZURE_TABLE_TABLE_NAME);
    properties.add(EXPERIMENT_LOG_FILE);
    this.properties = Collections.unmodifiableList(properties);
    
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:13,代码来源:InsertAzure.java

示例14: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
	final Set<Relationship> relationships = new HashSet<Relationship>();
       relationships.add(REL_SUCCESS);
       this.relationships = Collections.unmodifiableSet(relationships);

       final List<PropertyDescriptor> properties = new ArrayList<>();
       properties.add(EXPERIMENT_LOG_FILE);
       this.properties = Collections.unmodifiableList(properties);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:11,代码来源:SenMLParser.java

示例15: init

import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public void init(final ProcessorInitializationContext context){
	final Set<Relationship> relationships = new HashSet<Relationship>();
       relationships.add(REL_SUCCESS);
       this.relationships = Collections.unmodifiableSet(relationships);
       
       final List<PropertyDescriptor> properties = new ArrayList<>();
       properties.add(OBJECT_CLASS);
       this.properties = Collections.unmodifiableList(properties);
       batchMap = new HashMap<String,Integer>();
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:FilterImagesEdgent.java


注:本文中的org.apache.nifi.processor.Relationship类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。