本文整理汇总了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();
}
示例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();
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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();
}
示例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();
}
示例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();
}