Interface ColumnMetaData
-
- All Superinterfaces:
Cloneable
,Serializable
- All Known Implementing Classes:
BaseColumnMetaData
,BinaryMetaData
,BooleanMetaData
,CategoricalMetaData
,DoubleMetaData
,FloatMetaData
,IntegerMetaData
,LongMetaData
,NDArrayMetaData
,StringMetaData
,TimeMetaData
public interface ColumnMetaData extends Serializable, Cloneable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ColumnMetaData
clone()
ColumnType
getColumnType()
Get the type of columnString
getName()
Get the name of the specified columnboolean
isValid(Object input)
Is the given object valid for this column, given the column type and any restrictions given by the ColumnMetaData object?boolean
isValid(Writable writable)
Is the given Writable valid for this column, given the column type and any restrictions given by the ColumnMetaData object?void
setName(String name)
Setter for the name
-
-
-
Method Detail
-
getName
String getName()
Get the name of the specified column- Returns:
- Name of the column
-
setName
void setName(String name)
Setter for the name- Parameters:
name
-
-
getColumnType
ColumnType getColumnType()
Get the type of column
-
isValid
boolean isValid(Writable writable)
Is the given Writable valid for this column, given the column type and any restrictions given by the ColumnMetaData object?- Parameters:
writable
- Writable to check- Returns:
- true if value, false if invalid
-
isValid
boolean isValid(Object input)
Is the given object valid for this column, given the column type and any restrictions given by the ColumnMetaData object?- Parameters:
input
- object to check- Returns:
- true if value, false if invalid
-
clone
ColumnMetaData clone()
- Returns:
-
-