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


Java MemoryHelper类代码示例

本文整理汇总了Java中org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper的典型用法代码示例。如果您正苦于以下问题:Java MemoryHelper类的具体用法?Java MemoryHelper怎么用?Java MemoryHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MemoryHelper类属于org.apache.tinkerpop.gremlin.process.computer.util包,在下文中一共展示了MemoryHelper类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MemoryComputeKey

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
private MemoryComputeKey(final String key, final BinaryOperator<A> reducer, final boolean isBroadcast, final boolean isTransient) {
    this.key = key;
    this.reducer = reducer;
    this.isTransient = isTransient;
    this.isBroadcast = isBroadcast;
    MemoryHelper.validateKey(key);
}
 
开发者ID:PKUSilvester,项目名称:LiteGraph,代码行数:8,代码来源:MemoryComputeKey.java

示例2: FulgoraMemory

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
public FulgoraMemory(final VertexProgram<?> vertexProgram, final Set<MapReduce> mapReducers) {
    this.currentMap = new ConcurrentHashMap<>();
    this.previousMap = new ConcurrentHashMap<>();
    if (null != vertexProgram) {
        for (final String key : vertexProgram.getMemoryComputeKeys()) {
            MemoryHelper.validateKey(key);
            this.memoryKeys.add(key);
        }
    }
    for (final MapReduce mapReduce : mapReducers) {
        this.memoryKeys.add(mapReduce.getMemoryKey());
    }
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:14,代码来源:FulgoraMemory.java

示例3: checkKeyValue

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
protected void checkKeyValue(final String key, final Object value) {
    if (!this.memoryKeys.containsKey(key))
        throw GraphComputer.Exceptions.providedKeyIsNotAMemoryComputeKey(key);
    MemoryHelper.validateValue(value);
}
 
开发者ID:ShiftLeftSecurity,项目名称:tinkergraph-gremlin,代码行数:6,代码来源:TinkerMemory.java

示例4: checkKeyValue

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
private void checkKeyValue(final String key, final Object value) {
    if (!this.memoryComputeKeys.containsKey(key)) {
        throw GraphComputer.Exceptions.providedKeyIsNotAMemoryComputeKey(key);
    }
    MemoryHelper.validateValue(value);
}
 
开发者ID:graknlabs,项目名称:grakn,代码行数:7,代码来源:GraknSparkMemory.java

示例5: checkKeyValue

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
private void checkKeyValue(final String key, final Object value) {
    if (!this.memoryComputeKeys.containsKey(key))
        throw GraphComputer.Exceptions.providedKeyIsNotAMemoryComputeKey(key);
    MemoryHelper.validateValue(value);
}
 
开发者ID:PKUSilvester,项目名称:LiteGraph,代码行数:6,代码来源:GiraphMemory.java

示例6: checkKeyValue

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
private void checkKeyValue(final String key, final Object value) {
    if (!this.memoryKeys.containsKey(key))
        throw GraphComputer.Exceptions.providedKeyIsNotAMemoryComputeKey(key);
    MemoryHelper.validateValue(value);
}
 
开发者ID:PKUSilvester,项目名称:LiteGraph,代码行数:6,代码来源:TinkerMemory.java

示例7: checkKeyValue

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
private void checkKeyValue(final String key, final Object value) {
    if (!this.memoryKeys.contains(key))
        throw GraphComputer.Exceptions.providedKeyIsNotAMemoryComputeKey(key);
    MemoryHelper.validateValue(value);
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:6,代码来源:FulgoraMemory.java

示例8: checkKeyValue

import org.apache.tinkerpop.gremlin.process.computer.util.MemoryHelper; //导入依赖的package包/类
private void checkKeyValue(String key, Object value) {
if (!memoryKeys.contains(key))
    throw GraphComputer.Exceptions.providedKeyIsNotAMemoryComputeKey(key);
MemoryHelper.validateValue(value);
   }
 
开发者ID:PureSolTechnologies,项目名称:DuctileDB,代码行数:6,代码来源:DuctileMemory.java


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