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


Java TitanHadoopSetup类代码示例

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


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

示例1: setConf

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
@Override
public void setConf(Configuration conf) {
    ((Configurable)inputFormat).setConf(conf);
    refCounter = new RefCountedCloseable<>(() -> {
        final String titanVersion = "current";
        String className = SETUP_PACKAGE_PREFIX + titanVersion + SETUP_CLASS_NAME;
        TitanHadoopSetup ts = ConfigurationUtil.instantiate(className, new Object[]{conf}, new Class[]{Configuration.class});
        return new TitanVertexDeserializer(ts);
    });
}
 
开发者ID:graben1437,项目名称:titan1.0.1.kafka,代码行数:11,代码来源:GiraphInputFormat.java

示例2: TitanVertexDeserializer

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanVertexDeserializer(final TitanHadoopSetup setup) {
    this.setup = setup;
    this.typeManager = setup.getTypeInspector();
    this.systemTypes = setup.getSystemTypeInspector();
    this.idManager = setup.getIDManager();
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:7,代码来源:TitanVertexDeserializer.java

示例3: TitanHBaseHadoopGraph

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanHBaseHadoopGraph(TitanHadoopSetup setup) {
    super(setup);
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:4,代码来源:TitanHBaseHadoopGraph.java

示例4: TitanCassandraHadoopGraph

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanCassandraHadoopGraph(TitanHadoopSetup setup) {
    super(setup);
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:4,代码来源:TitanCassandraHadoopGraph.java

示例5: TitanHadoopGraph

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanHadoopGraph(final TitanHadoopSetup setup) {
    this.setup = setup;
    this.typeManager = setup.getTypeInspector();
    this.systemTypes = setup.getSystemTypeInspector();
    this.vertexReader = setup.getVertexReader();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:7,代码来源:TitanHadoopGraph.java

示例6: getGraphSetup

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanHadoopSetup getGraphSetup() {
    return ConfigurationUtil.instantiate(className, new Object[]{ apacheConf }, new Class[]{ Configuration.class });
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:4,代码来源:TitanInputFormat.java

示例7: setConf

import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public void setConf(Configuration conf, Boolean reset) {
    ((Configurable)inputFormat).setConf(conf);

    if(refCounter != null && !reset) return;

    refCounter = new RefCountedCloseable<>(() -> {
        final String titanVersion = "current";

        String className = SETUP_PACKAGE_PREFIX + titanVersion + SETUP_CLASS_NAME;

        TitanHadoopSetup ts = ConfigurationUtil.instantiate(className, new Object[]{conf}, new Class[]{Configuration.class});

        return new TitanVertexDeserializer(ts);
    });
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:16,代码来源:GiraphInputFormat.java


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