public class BinaryAttribute extends Attribute
| Modifier and Type | Method and Description |
|---|---|
AttributeType |
attrType()
Attribute type.
|
static BinaryAttribute |
defaultAttr()
The default binary attribute.
|
boolean |
equals(Object other) |
int |
hashCode() |
scala.Option<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<String> |
name()
Name of the attribute.
|
static Metadata |
toMetadata() |
static Metadata |
toMetadata(Metadata existingMetadata) |
static String |
toString() |
static StructField |
toStructField() |
static StructField |
toStructField(Metadata existingMetadata) |
scala.Option<String[]> |
values() |
BinaryAttribute |
withIndex(int index)
Copy with a new index.
|
BinaryAttribute |
withName(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(String negative,
String positive)
Copy with new values.
|
toMetadata, toMetadata, toString, toStructField, toStructFieldpublic static final BinaryAttribute defaultAttr()
public static Metadata toMetadata()
public static StructField toStructField(Metadata existingMetadata)
public static StructField toStructField()
public static String toString()
public scala.Option<String> name()
Attributepublic scala.Option<Object> index()
Attributepublic scala.Option<String[]> values()
public AttributeType attrType()
Attributepublic boolean isNumeric()
AttributeNumericAttribute and BinaryAttribute.public boolean isNominal()
AttributeNominalAttribute and BinaryAttribute.public BinaryAttribute withName(String name)
Attributepublic BinaryAttribute withoutName()
AttributewithoutName in class Attributepublic BinaryAttribute withIndex(int index)
Attributepublic BinaryAttribute withoutIndex()
AttributewithoutIndex in class Attributepublic BinaryAttribute withValues(String negative, String positive)
negative - name for negativepositive - name for positivepublic BinaryAttribute withoutValues()
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object