Class DoubleMetaData
- java.lang.Object
-
- org.datavec.api.transform.metadata.BaseColumnMetaData
-
- org.datavec.api.transform.metadata.DoubleMetaData
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ColumnMetaData
public class DoubleMetaData extends BaseColumnMetaData
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.datavec.api.transform.metadata.BaseColumnMetaData
name
-
-
Constructor Summary
Constructors Constructor Description DoubleMetaData(String name)
DoubleMetaData(String name, Double minAllowedValue, Double maxAllowedValue)
DoubleMetaData(String name, Double min, Double maxAllowedValue, boolean allowNaN, boolean allowInfinite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleMetaData
clone()
ColumnType
getColumnType()
Get the type of 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?String
toString()
-
Methods inherited from class org.datavec.api.transform.metadata.BaseColumnMetaData
getName, setName
-
-
-
-
Constructor Detail
-
DoubleMetaData
public DoubleMetaData(String name)
-
DoubleMetaData
public DoubleMetaData(String name, Double minAllowedValue, Double maxAllowedValue)
- Parameters:
minAllowedValue
- Min allowed value. If null: no restriction on minAllowedValue value in this columnmaxAllowedValue
- Max allowed value. If null: no restriction on maxAllowedValue value in this column
-
DoubleMetaData
public DoubleMetaData(String name, Double min, Double maxAllowedValue, boolean allowNaN, boolean allowInfinite)
- Parameters:
min
- Min allowed value. If null: no restriction on minAllowedValue value in this columnmaxAllowedValue
- Max allowed value. If null: no restriction on maxAllowedValue value in this columnallowNaN
- Are NaN values ok?allowInfinite
- Are +/- infinite values ok?
-
-
Method Detail
-
getColumnType
public ColumnType getColumnType()
Description copied from interface:ColumnMetaData
Get the type of column
-
isValid
public boolean isValid(Writable writable)
Description copied from interface:ColumnMetaData
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
public 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
public DoubleMetaData clone()
- Specified by:
clone
in interfaceColumnMetaData
- Specified by:
clone
in classBaseColumnMetaData
- Returns:
-
-