final NodeState state = this._resolver.resolveState(this); if (state != null) { state.each(new NodeStateCallback() { @Override public void on(int attributeKey, byte elemType, Object elem) {
final NodeState state = this._resolver.resolveState(this); if (state != null) { state.each(new NodeStateCallback() { @Override public void on(long attributeKey, byte elemType, Object elem) {
@Override public void eval(TaskContext ctx) { final TaskResult previous = ctx.result(); final TaskResult result = ctx.newResult(); for (int i = 0; i < previous.size(); i++) { if (previous.get(i) instanceof BaseNode) { final Node n = (Node) previous.get(i); final NodeState nState = ctx.graph().resolver().resolveState(n); nState.each(new NodeStateCallback() { @Override public void on(int attributeKey, byte elemType, Object elem) { if (_filter == -1 || elemType == _filter) { String retrieved = ctx.graph().resolver().hashToString(attributeKey); if (retrieved != null) { result.add(retrieved); } else { result.add(attributeKey); } } } }); n.free(); } } previous.clear(); ctx.continueWith(result); }