public final class NormalizeDescriptor extends Object implements Serializable
Constructor and Description |
---|
NormalizeDescriptor(String fieldName,
StatsFunctions.NormalizeMethod method)
Construct a normalization descriptor.
|
NormalizeDescriptor(String inputFieldName,
StatsFunctions.NormalizeMethod method,
String outputFieldName)
Construct a normalization descriptor.
|
Modifier and Type | Method and Description |
---|---|
static NormalizeDescriptor[] |
descriptors(StatsFunctions.NormalizeMethod method,
Collection<String> reservedNames,
String... fieldNames) |
static NormalizeDescriptor[] |
descriptors(StatsFunctions.NormalizeMethod method,
String... fieldNames)
Build descriptors for the given fields and method.
|
String |
getInputFieldName()
Get the input field name of the descriptor.
|
StatsFunctions.NormalizeMethod |
getMethod()
Get the normalization method of the descriptor.
|
String |
getOutputFieldName()
Get the output field name of the descriptor.
|
NormalizeDescriptor |
renameOutputField(String name)
Creates a NormalizeDescriptor that is identical to this one except that the output field has a different name.
|
public NormalizeDescriptor(String fieldName, StatsFunctions.NormalizeMethod method)
fieldName
- name of the field to normalizemethod
- type of normalization to applypublic NormalizeDescriptor(String inputFieldName, StatsFunctions.NormalizeMethod method, String outputFieldName)
inputFieldName
- name of the field to normalizemethod
- type of normalization to applyoutputFieldName
- name of the resultant fieldpublic String getInputFieldName()
public String getOutputFieldName()
public StatsFunctions.NormalizeMethod getMethod()
public static NormalizeDescriptor[] descriptors(StatsFunctions.NormalizeMethod method, String... fieldNames)
method
- the normalization method to applyfieldNames
- names of the input fieldspublic static NormalizeDescriptor[] descriptors(StatsFunctions.NormalizeMethod method, Collection<String> reservedNames, String... fieldNames)
public NormalizeDescriptor renameOutputField(String name)
name
- the name of the output field.Copyright © 2019 Actian Corporation. All rights reserved.