public class DoubleMetaData extends Object implements ColumnMetaData
Constructor and Description |
---|
DoubleMetaData() |
DoubleMetaData(Double min,
Double max) |
DoubleMetaData(Double min,
Double max,
boolean allowNaN,
boolean allowInfinite) |
Modifier and Type | Method and Description |
---|---|
DoubleMetaData |
clone() |
ColumnType |
getColumnType()
Get the type of column
|
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() |
public DoubleMetaData()
public DoubleMetaData(Double min, Double 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 DoubleMetaData(Double min, Double max, boolean allowNaN, boolean allowInfinite)
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 columnallowNaN
- Are NaN values ok?allowInfinite
- Are +/- infinite values ok?public ColumnType getColumnType()
ColumnMetaData
getColumnType
in interface ColumnMetaData
public boolean isValid(Writable writable)
ColumnMetaData
isValid
in interface ColumnMetaData
writable
- Writable to checkpublic DoubleMetaData clone()
clone
in interface ColumnMetaData
clone
in class Object
Copyright © 2016. All rights reserved.