public class DoubleMetaData extends BaseColumnMetaData
name| Constructor and Description |
|---|
DoubleMetaData(String name) |
DoubleMetaData(String name,
Double minAllowedValue,
Double maxAllowedValue) |
DoubleMetaData(String name,
Double min,
Double maxAllowedValue,
boolean allowNaN,
boolean allowInfinite) |
| Modifier and Type | Method and Description |
|---|---|
DoubleMetaData |
clone() |
ColumnType |
getColumnType()
Get the type of column
|
boolean |
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() |
getName, setNamepublic DoubleMetaData(String name)
public DoubleMetaData(String name, Double minAllowedValue, Double maxAllowedValue)
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 columnpublic DoubleMetaData(String name, Double min, Double maxAllowedValue, boolean allowNaN, boolean allowInfinite)
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?public ColumnType getColumnType()
ColumnMetaDatapublic boolean isValid(Writable writable)
ColumnMetaDatawritable - Writable to checkpublic boolean isValid(Object input)
input - object to checkpublic DoubleMetaData clone()
clone in interface ColumnMetaDataclone in class BaseColumnMetaDataCopyright © 2020. All rights reserved.