Java Code Examples for org.dmg.pmml.Field#getName()

The following examples show how to use org.dmg.pmml.Field#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FieldHasher.java    From jpmml-model with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Override
public VisitorAction visit(Field<?> field){
	FieldName name = field.getName();

	if(name != null){
		this.mappings.put(name, hash(name));
	}

	return super.visit(field);
}
 
Example 2
Source File: DocumentFeature.java    From jpmml-sparkml with GNU Affero General Public License v3.0 4 votes vote down vote up
public DocumentFeature(SparkMLEncoder encoder, Field<?> field, String wordSeparatorRE){
	super(encoder, field.getName(), field.getDataType());

	setWordSeparatorRE(wordSeparatorRE);
}
 
Example 3
Source File: BaseNFeature.java    From jpmml-sklearn with GNU Affero General Public License v3.0 4 votes vote down vote up
public BaseNFeature(PMMLEncoder encoder, Field<?> field, int base, SetMultimap<Integer, ?> values){
	this(encoder, field.getName(), field.getDataType(), base, values);
}
 
Example 4
Source File: ModelField.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * <p>
 * The name of this model field in PMML space.
 * </p>
 */
public FieldName getFieldName(){
	Field<?> field = getField();

	return field.getName();
}