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


Java ModifiableHadoopConfiguration.getHadoopConfiguration方法代码示例

本文整理汇总了Java中com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration.getHadoopConfiguration方法的典型用法代码示例。如果您正苦于以下问题:Java ModifiableHadoopConfiguration.getHadoopConfiguration方法的具体用法?Java ModifiableHadoopConfiguration.getHadoopConfiguration怎么用?Java ModifiableHadoopConfiguration.getHadoopConfiguration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration的用法示例。


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

示例1: createConfiguration

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
public static org.apache.hadoop.conf.Configuration createConfiguration(final Direction direction, final String label, final int step, final String mergeWeightKey) {
    ModifiableHadoopConfiguration c = ModifiableHadoopConfiguration.withoutResources();

    c.set(LINK_STEP, step);
    c.set(LINK_DIRECTION, direction);
    c.set(LINK_LABEL, label);

    if (null == mergeWeightKey) {
        c.set(LINK_MERGE_DUPLICATES, false);
        c.set(LINK_MERGE_WEIGHT_KEY, NO_WEIGHT_KEY);
    } else {
        c.set(LINK_MERGE_DUPLICATES, true);
        c.set(LINK_MERGE_WEIGHT_KEY, mergeWeightKey);
    }

    c.set(PIPELINE_TRACK_PATHS, true);

    return c.getHadoopConfiguration();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:20,代码来源:LinkMapReduce.java

示例2: createConfiguration

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
public static org.apache.hadoop.conf.Configuration createConfiguration(final Class<? extends Element> klass, final int step) {
    ModifiableHadoopConfiguration c = ModifiableHadoopConfiguration.withoutResources();
    c.set(BACK_FILTER_STEP, step);
    c.set(BACK_FILTER_CLASS, klass.getCanonicalName());
    c.set(PIPELINE_TRACK_PATHS, true);
    return c.getHadoopConfiguration();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:8,代码来源:BackFilterMapReduce.java

示例3: getCustomIncrementalCerberusLoad

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
private HadoopGraph getCustomIncrementalCerberusLoad() {
    ModifiableHadoopConfiguration faunusConf = getTitanOutputConfig();

    // Input
    faunusConf.set(INPUT_FORMAT, GraphSONInputFormat.class.getCanonicalName());
    faunusConf.set(INPUT_LOCATION, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/extra-cerberus.json");

    // Output (incremental loading)
    faunusConf.set(OUTPUT_LOADER_SCRIPT_FILE, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/incremental-custom-cerberus-load.groovy");

    return new HadoopGraph(faunusConf.getHadoopConfiguration());
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:13,代码来源:TitanOutputFormatTest.java

示例4: getNaiveIncrementalCerberusLoad

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
private HadoopGraph getNaiveIncrementalCerberusLoad() {
    ModifiableHadoopConfiguration faunusConf = getTitanOutputConfig();

    // Input
    faunusConf.set(INPUT_FORMAT, GraphSONInputFormat.class.getCanonicalName());
    faunusConf.set(INPUT_LOCATION, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/extra-cerberus.json");

    // Output (incremental loading)
    faunusConf.set(OUTPUT_LOADER_SCRIPT_FILE, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/incremental-naive-cerberus-load.groovy");

    return new HadoopGraph(faunusConf.getHadoopConfiguration());
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:13,代码来源:TitanOutputFormatTest.java

示例5: getIncrementalGraphSONToTitan

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
private HadoopGraph getIncrementalGraphSONToTitan() {
    ModifiableHadoopConfiguration faunusConf = getTitanOutputConfig();

    // Input
    faunusConf.set(INPUT_FORMAT, GraphSONInputFormat.class.getCanonicalName());
    faunusConf.set(INPUT_LOCATION, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/graph-of-the-gods.json");

    // Output (incremental loading)
    faunusConf.set(OUTPUT_LOADER_SCRIPT_FILE, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/incremental-load.groovy");

    return new HadoopGraph(faunusConf.getHadoopConfiguration());
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:13,代码来源:TitanOutputFormatTest.java

示例6: getGraphSONToTitan

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
private HadoopGraph getGraphSONToTitan() {
    ModifiableHadoopConfiguration faunusConf = getTitanOutputConfig();

    // Input
    faunusConf.set(INPUT_FORMAT, GraphSONInputFormat.class.getCanonicalName());
    faunusConf.set(INPUT_LOCATION, "target/test-classes/com/thinkaurelius/titan/hadoop/formats/graphson/graph-of-the-gods.json");

    return new HadoopGraph(faunusConf.getHadoopConfiguration());
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:10,代码来源:TitanOutputFormatTest.java

示例7: getTitanToTitan

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
private HadoopGraph getTitanToTitan() {
    ModifiableHadoopConfiguration faunusConf = getTitanOutputConfig();
    ModifiableConfiguration titanConf = getTitanConfiguration();

    // Input
    faunusConf.set(INPUT_FORMAT, getTitanInputFormatClass().getCanonicalName());
    faunusConf.setAllInput(titanConf.getAll());

    return new HadoopGraph(faunusConf.getHadoopConfiguration());
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:11,代码来源:TitanOutputFormatTest.java

示例8: createConfiguration

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
public static org.apache.hadoop.conf.Configuration createConfiguration(final Direction direction, final String... labels) {
    ModifiableHadoopConfiguration c = ModifiableHadoopConfiguration.withoutResources();
    c.set(VERTICES_EDGES_DIRECTION, direction);
    c.set(VERTICES_EDGES_LABELS, labels);
    return c.getHadoopConfiguration();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:7,代码来源:VerticesEdgesMapReduce.java

示例9: createConfiguration

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
public static org.apache.hadoop.conf.Configuration createConfiguration(final Direction direction, final String... labels) {
    ModifiableHadoopConfiguration c = ModifiableHadoopConfiguration.withoutResources();
    c.set(VERTICES_VERTICES_DIRECTION, direction);
    c.set(VERTICES_VERTICES_LABELS, labels);
    return c.getHadoopConfiguration();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:7,代码来源:VerticesVerticesMapReduce.java

示例10: createConfiguration

import com.thinkaurelius.titan.hadoop.config.ModifiableHadoopConfiguration; //导入方法依赖的package包/类
public static org.apache.hadoop.conf.Configuration createConfiguration(final Tokens.Action action) {
    ModifiableHadoopConfiguration c = ModifiableHadoopConfiguration.withoutResources();
    c.set(COMMIT_VERTICES_ACTION, action);
    return c.getHadoopConfiguration();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:6,代码来源:CommitVerticesMapReduce.java


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