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


Java TitanManagement.IndexBuilder方法代码示例

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


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

示例1: indexOnly

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder indexOnly(TitanSchemaType schemaType) {
    Preconditions.checkNotNull(schemaType);
    Preconditions.checkArgument(elementCategory.isValidConstraint(schemaType), "Need to specify a valid schema type for this index definition: %s", schemaType);
    constraint = schemaType;
    return this;
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:8,代码来源:ManagementSystem.java

示例2: createVertexIndex

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public void createVertexIndex(String propertyName, String backingIndex, List<AtlasPropertyKey> propertyKeys) {

    TitanManagement.IndexBuilder indexBuilder = management.buildIndex(propertyName, Vertex.class);
    for (AtlasPropertyKey key : propertyKeys) {
        PropertyKey titanKey = TitanObjectFactory.createPropertyKey(key);
        indexBuilder.addKey(titanKey);
    }
    indexBuilder.buildMixedIndex(backingIndex);
}
 
开发者ID:apache,项目名称:incubator-atlas,代码行数:11,代码来源:Titan1GraphManagement.java

示例3: createExactMatchVertexIndex

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
public void createExactMatchVertexIndex(String propertyName, boolean enforceUniqueness,
                                  List<AtlasPropertyKey> propertyKeys) {

    TitanManagement.IndexBuilder indexBuilder = management.buildIndex(propertyName, Vertex.class);
    for (AtlasPropertyKey key : propertyKeys) {
        PropertyKey titanKey = TitanObjectFactory.createPropertyKey(key);
        indexBuilder.addKey(titanKey);
    }
    if (enforceUniqueness) {
        indexBuilder.unique();
    }
    indexBuilder.buildCompositeIndex();
}
 
开发者ID:apache,项目名称:incubator-atlas,代码行数:14,代码来源:Titan1GraphManagement.java

示例4: createExactMatchIndex

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public void createExactMatchIndex(String propertyName, boolean enforceUniqueness,
        List<AtlasPropertyKey> propertyKeys) {

    TitanManagement.IndexBuilder indexBuilder = management.buildIndex(propertyName, Vertex.class);
    for(AtlasPropertyKey key : propertyKeys) {
        PropertyKey titanKey = TitanObjectFactory.createPropertyKey(key);
        indexBuilder.addKey(titanKey);
    }
    if (enforceUniqueness) {
        indexBuilder.unique();
    }
    indexBuilder.buildCompositeIndex();
}
 
开发者ID:apache,项目名称:incubator-atlas,代码行数:15,代码来源:Titan0GraphManagement.java

示例5: createVertexIndex

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public void createVertexIndex(String propertyName, String backingIndex, List<AtlasPropertyKey> propertyKeys) {

    TitanManagement.IndexBuilder indexBuilder = management.buildIndex(propertyName, Vertex.class);
    for(AtlasPropertyKey key : propertyKeys) {
        PropertyKey titanKey = TitanObjectFactory.createPropertyKey(key);
        indexBuilder.addKey(titanKey);
    }
    indexBuilder.buildMixedIndex(backingIndex);
}
 
开发者ID:apache,项目名称:incubator-atlas,代码行数:11,代码来源:Titan0GraphManagement.java

示例6: indexOnly

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder indexOnly(TitanSchemaType schemaType) {
    Preconditions.checkNotNull(schemaType);
    Preconditions.checkArgument(elementCategory.isValidConstraint(schemaType),"Need to specify a valid schema type for this index definition: %s",schemaType);
    constraint = schemaType;
    return this;
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:8,代码来源:ManagementSystem.java

示例7: buildIndex

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder buildIndex(String indexName, Class<? extends Element> elementType) {
    return new IndexBuilder(indexName, ElementCategory.getByClazz(elementType));
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:5,代码来源:ManagementSystem.java

示例8: addKey

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder addKey(PropertyKey key) {
    Preconditions.checkArgument(key != null && (key instanceof PropertyKeyVertex), "Key must be a user defined key: %s", key);
    keys.put(key, null);
    return this;
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:7,代码来源:ManagementSystem.java

示例9: unique

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder unique() {
    unique = true;
    return this;
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:6,代码来源:ManagementSystem.java

示例10: buildIndex

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder buildIndex(String indexName, Class<? extends Element> elementType) {
    return new IndexBuilder(indexName,ElementCategory.getByClazz(elementType));
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:5,代码来源:ManagementSystem.java

示例11: addKey

import com.thinkaurelius.titan.core.schema.TitanManagement; //导入方法依赖的package包/类
@Override
public TitanManagement.IndexBuilder addKey(PropertyKey key) {
    Preconditions.checkArgument(key!=null && (key instanceof PropertyKeyVertex),"Key must be a user defined key: %s",key);
    keys.put(key,null);
    return this;
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:7,代码来源:ManagementSystem.java


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