/** * Constructor * * @param keyPrefix Configuration key prefix * @param klass Enum class * @param defaultValue default value * @param description description of the option */ public PerGraphTypeEnumConfOption(String keyPrefix, Class<T> klass, T defaultValue, String description) { vertexId = EnumConfOption.create(keyPrefix + ".vertex.id", klass, defaultValue, description); vertexValue = EnumConfOption.create(keyPrefix + ".vertex.value", klass, defaultValue, description); edgeValue = EnumConfOption.create(keyPrefix + ".edge.value", klass, defaultValue, description); outgoingMessage = EnumConfOption.create(keyPrefix + ".outgoing.message", klass, defaultValue, description); }
/** * Constructor * * @param graphType GraphType */ public JythonGraphTypeOptions(GraphType graphType) { this.graphType = graphType; jythonClassNameOption = new StrConfOption("giraph.jython." + graphType.dotString() + ".class.name", null, "Name of class in Jython implementing " + graphType.spaceString()); needsWrapperOption = new BooleanConfOption("giraph.jython." + graphType.dotString() + ".needs.wrapper", false, "Whether the " + graphType.spaceString() + " jython type needs a wrapper"); languageOption = EnumConfOption.create("giraph." + graphType.dotString() + ".language", Language.class, Language.JAVA, "Language " + graphType.spaceString() + " is implemented in"); }