@Override public void setup(final Mapper.Context context) throws IOException, InterruptedException { this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION)); }
@Override public void setup(final Mapper.Context context) throws IOException, InterruptedException { this.step = context.getConfiguration().getInt(STEP, -1); this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION)); this.label = context.getConfiguration().get(LABEL); this.mergeDuplicates = context.getConfiguration().getBoolean(MERGE_DUPLICATES, false); this.mergeWeightKey = context.getConfiguration().get(MERGE_WEIGHT_KEY, NO_WEIGHT_KEY); this.pathEnabled = context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false); if (!this.pathEnabled) throw new IllegalStateException(LinkMapReduce.class.getSimpleName() + " requires that paths be enabled"); }
@Override public void setup(final Mapper.Context context) throws IOException, InterruptedException { this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION)); this.labels = context.getConfiguration().getStrings(LABELS, new String[0]); this.pathEnabled = context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false); this.edge = new FaunusEdge(this.pathEnabled); }
@Override public void setup(final Mapper.Context context) throws IOException, InterruptedException { this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION)); this.labels = context.getConfiguration().getStrings(LABELS, new String[0]); this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false)); }
@Override public void setup(final Reducer.Context context) throws IOException, InterruptedException { this.direction = Direction.valueOf(context.getConfiguration().get(LinkMapReduce.DIRECTION)); this.direction = this.direction.opposite(); this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false)); }
@Override public void setup(final Reducer.Context context) throws IOException, InterruptedException { this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION)); this.direction = this.direction.opposite(); this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false)); }
@Override public void setup(final Reducer.Context context) throws IOException, InterruptedException { this.direction = Direction.valueOf(context.getConfiguration().get(DIRECTION)); if (!this.direction.equals(BOTH)) this.direction = this.direction.opposite(); this.labels = context.getConfiguration().getStrings(LABELS); this.vertex = new FaunusVertex(context.getConfiguration().getBoolean(FaunusCompiler.PATH_ENABLED, false)); }
if (mapParams.get(OSQLFunctionAstar.PARAM_DIRECTION) instanceof String) { ctx.paramDirection = Direction .valueOf(stringOrDefault(mapParams.get(OSQLFunctionAstar.PARAM_DIRECTION), "OUT").toUpperCase(Locale.ENGLISH)); } else { ctx.paramDirection = (Direction) mapParams.get(OSQLFunctionAstar.PARAM_DIRECTION);