public class BinaryAttribute extends Attribute
| Modifier and Type | Method and Description |
|---|---|
AttributeType |
attrType()
Attribute type.
|
static BinaryAttribute |
defaultAttr()
The default binary attribute.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
scala.Option<java.lang.Object> |
index()
Index of the attribute.
|
boolean |
isNominal()
Tests whether this attribute is nominal, true for
NominalAttribute and BinaryAttribute. |
boolean |
isNumeric()
Tests whether this attribute is numeric, true for
NumericAttribute and BinaryAttribute. |
scala.Option<java.lang.String> |
name()
Name of the attribute.
|
scala.Option<java.lang.String[]> |
values() |
BinaryAttribute |
withIndex(int index)
Copy with a new index.
|
BinaryAttribute |
withName(java.lang.String name)
Copy with a new name.
|
BinaryAttribute |
withoutIndex()
Copy without the index.
|
BinaryAttribute |
withoutName()
Copy without the name.
|
BinaryAttribute |
withoutValues()
Copy without the values.
|
BinaryAttribute |
withValues(java.lang.String negative,
java.lang.String positive)
Copy with new values.
|
toMetadata, toMetadata, toString, toStructField, toStructFieldpublic static final BinaryAttribute defaultAttr()
public scala.Option<java.lang.String> name()
Attributepublic scala.Option<java.lang.Object> index()
Attributepublic scala.Option<java.lang.String[]> values()
public AttributeType attrType()
Attributepublic boolean isNumeric()
AttributeNumericAttribute and BinaryAttribute.public boolean isNominal()
AttributeNominalAttribute and BinaryAttribute.public BinaryAttribute withName(java.lang.String name)
Attributepublic BinaryAttribute withoutName()
AttributewithoutName in class Attributepublic BinaryAttribute withIndex(int index)
Attributepublic BinaryAttribute withoutIndex()
AttributewithoutIndex in class Attributepublic BinaryAttribute withValues(java.lang.String negative, java.lang.String positive)
negative - name for negativepositive - name for positivepublic BinaryAttribute withoutValues()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object