cascading.pattern.datafield
Class CategoricalDataField
java.lang.Object
cascading.pattern.datafield.DataField
cascading.pattern.datafield.CategoricalDataField
- All Implemented Interfaces:
- Serializable
public class CategoricalDataField
- extends DataField
Class CategoricalDataField represent a field with a fixed set of possible values.
For example, if the field name is SIZE
, it could have three possible categories,
small
, medium
, and large
.
Order of categories is retained so that indexes into the internal list of categories can be used
to speed up some operations.
- See Also:
- Serialized Form
categories
protected List<String> categories
CategoricalDataField
public CategoricalDataField(CategoricalDataField dataField,
String... categories)
CategoricalDataField
public CategoricalDataField(Fields fields,
String... categories)
CategoricalDataField
public CategoricalDataField(Fields fields,
List<String> categories)
CategoricalDataField
public CategoricalDataField(String name,
Type type,
String... categories)
CategoricalDataField
public CategoricalDataField(String name,
Type type,
List<String> categories)
getCategories
public List<String> getCategories()
- Gets an unmodifiable list of the current categories.
- Returns:
- the categories
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.