boolean isBlocked(int edgeId) { return blockedEdges.contains(edgeId); }
boolean filterType(DependencyType type) { if (pendingTypes != null && pendingTypes.contains(type.index)) { return false; } if (filter == null) { return true; } return filter.match(type); }
@Override public final boolean accept(EdgeIteratorState iter) { boolean blocked = blockedEdges.contains(iter.getEdge()); return fwd && iter.isForward(encoder) && !blocked || bwd && iter.isBackward(encoder) && !blocked; }
} else { activeLandmarkIndices[i] = list.get(i).getValue(); if (set.contains(activeLandmarkIndices[i])) existingLandmarkCounter++;
private void propagateAlongCasts() { for (ValueCast cast : casts) { int fromNode = nodeMapping[packNodeAndDegree(cast.fromVariable, 0)]; if (!formerNodeChanged[fromNode] && !nodeChanged[fromNode]) { continue; } int toNode = nodeMapping[packNodeAndDegree(cast.toVariable, 0)]; IntHashSet targetTypes = getNodeTypes(toNode); for (IntCursor cursor : types[fromNode]) { if (targetTypes.contains(cursor.value)) { continue; } String className = typeList.get(cursor.value); ValueType type; if (className.startsWith("[")) { type = ValueType.parseIfPossible(className); if (type == null) { type = ValueType.arrayOf(ValueType.object("java.lang.Object")); } } else { type = ValueType.object(className); } if (hierarchy.isSuperType(cast.targetType, type, false)) { changed = true; nodeChanged[toNode] = true; targetTypes.add(cursor.value); } } } }
@Override public int bulkContains(int[] keys) { int v = 0; for (int key : keys) { if (delegate.contains(key)) { v++; } } return v; }
/** * Return true if all keys of some other container exist in this container. */ private boolean sameKeys(IntSet other) { if (other.size() != size()) { return false; } for (IntCursor c : other) { if (!contains( c.value)) { return false; } } return true; }
public int isContained(int isSet, int value) { if(isSet == 0) { return 0; } return intSet.contains(value) ? 1 : 0; } }
@Override public boolean contains(long term) { return this.set.contains((int) term); }
/** * Return true if all keys of some other container exist in this container. */ private boolean sameKeys(IntSet other) { if (other.size() != size()) { return false; } for (IntCursor c : other) { if (!contains( c.value)) { return false; } } return true; }
@Override public final boolean accept(EdgeIteratorState iter) { boolean blocked = blockedEdges.contains(iter.getEdge()); return fwd && iter.isForward(encoder) && !blocked || bwd && iter.isBackward(encoder) && !blocked; }
@Override public final boolean accept(EdgeIteratorState iter) { boolean blocked = blockedEdges.contains(iter.getEdge()); return fwd && iter.isForward(encoder) && !blocked || bwd && iter.isBackward(encoder) && !blocked; }
} else { activeLandmarkIndices[i] = list.get(i).getValue(); if (set.contains(activeLandmarkIndices[i])) existingLandmarkCounter++;
} else { activeLandmarkIndices[i] = list.get(i).getValue(); if (set.contains(activeLandmarkIndices[i])) existingLandmarkCounter++;
public static EvalMode getEvalMode(VectorAccessible incoming, LogicalExpression expr, IntHashSet transferFieldIds){ // add value vector to transfer if direct reference and this is allowed, otherwise, add to evaluation stack. final boolean canDirectTransfer = // the expression is a direct read. expr instanceof ValueVectorReadExpression // we aren't dealing with a selection vector. && incoming.getSchema().getSelectionVectorMode() == SelectionVectorMode.NONE // the field doesn't have a red path (e.g. a single value out of a list) && !((ValueVectorReadExpression) expr).hasReadPath() // We aren't already transferring the field. && !transferFieldIds.contains(((ValueVectorReadExpression) expr).getFieldId().getFieldIds()[0]); if(canDirectTransfer){ return EvalMode.DIRECT; } final boolean isComplex = expr instanceof FunctionHolderExpr && ((FunctionHolderExpr) expr).isComplexWriterFuncHolder(); if(isComplex){ return EvalMode.COMPLEX; } return EvalMode.EVAL; }
if (ignoreExploration.contains(traversalId)) continue;
&& !((ValueVectorReadExpression) expr).hasReadPath() && !isAnyWildcard && !transferFieldIds.contains(((ValueVectorReadExpression) expr).getFieldId().getFieldIds()[0])) {