本文整理汇总了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);
});
}
示例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();
}
示例3: TitanHBaseHadoopGraph
import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanHBaseHadoopGraph(TitanHadoopSetup setup) {
super(setup);
}
示例4: TitanCassandraHadoopGraph
import com.thinkaurelius.titan.hadoop.formats.util.input.TitanHadoopSetup; //导入依赖的package包/类
public TitanCassandraHadoopGraph(TitanHadoopSetup setup) {
super(setup);
}
示例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();
}
示例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 });
}
示例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);
});
}