public class FloatMetaData extends BaseColumnMetaData
name| Constructor and Description |
|---|
FloatMetaData(String name) |
FloatMetaData(String name,
Float minAllowedValue,
Float maxAllowedValue) |
FloatMetaData(String name,
Float min,
Float maxAllowedValue,
boolean allowNaN,
boolean allowInfinite) |
| Modifier and Type | Method and Description |
|---|---|
FloatMetaData |
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 FloatMetaData(String name)
public FloatMetaData(String name, Float minAllowedValue, Float 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 FloatMetaData(String name, Float min, Float 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 FloatMetaData clone()
clone in interface ColumnMetaDataclone in class BaseColumnMetaDataCopyright © 2020. All rights reserved.