public class IntegerMetaData extends BaseColumnMetaData
name
Constructor and Description |
---|
IntegerMetaData(java.lang.String name) |
IntegerMetaData(java.lang.String name,
java.lang.Integer min,
java.lang.Integer max) |
Modifier and Type | Method and Description |
---|---|
IntegerMetaData |
clone() |
ColumnType |
getColumnType()
Get the type of column
|
boolean |
isValid(java.lang.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?
|
java.lang.String |
toString() |
getName, setName
public IntegerMetaData(java.lang.String name)
public IntegerMetaData(java.lang.String name, java.lang.Integer min, java.lang.Integer max)
min
- Min allowed value. If null: no restriction on min value value in this columnmax
- Max allowed value. If null: no restiction on max value in this columnpublic ColumnType getColumnType()
ColumnMetaData
public boolean isValid(Writable writable)
ColumnMetaData
writable
- Writable to checkpublic boolean isValid(java.lang.Object input)
input
- object to checkpublic IntegerMetaData clone()
clone
in interface ColumnMetaData
clone
in class BaseColumnMetaData
public java.lang.String toString()
toString
in class java.lang.Object