public class CategoricalToOneHotTransform extends BaseTransform
inputSchema| Constructor and Description |
|---|
CategoricalToOneHotTransform(String columnName) |
| Modifier and Type | Method and Description |
|---|---|
String |
columnName()
Returns a singular column name
this op is meant to run on
|
String[] |
columnNames()
Returns column names
this op is meant to run on
|
boolean |
equals(Object o) |
int |
hashCode() |
List<Writable> |
map(List<Writable> writables)
Transform a writable
in to another writable
|
Object |
map(Object input)
Transform an object
in to another object
|
Object |
mapSequence(Object sequence)
Transform a sequence
|
String |
outputColumnName()
The output column name
after the operation has been applied
|
String[] |
outputColumnNames()
The output column names
This will often be the same as the input
|
void |
setInputSchema(Schema inputSchema)
Set the input schema.
|
String |
toString() |
Schema |
transform(Schema schema)
Get the output schema for this transformation, given an input schema
|
getInputSchema, mapSequencepublic CategoricalToOneHotTransform(String columnName)
public void setInputSchema(Schema inputSchema)
ColumnOpsetInputSchema in interface ColumnOpsetInputSchema in class BaseTransformpublic String toString()
toString in class BaseTransformpublic Schema transform(Schema schema)
ColumnOppublic List<Writable> map(List<Writable> writables)
Transformwritables - the record to transformpublic Object map(Object input)
input - the record to transformpublic String outputColumnName()
public String[] outputColumnNames()
public String[] columnNames()
public String columnName()
Copyright © 2019. All rights reserved.