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