Partager via


DataType Class

public final class DataType
extends ExpandableStringEnum<DataType>

The datatype for which the indexing behavior is applied to.

Field Summary

Modifier and Type Field and Description
static final DataType LINE_STRING

Static value LineString for DataType.

static final DataType MULTI_POLYGON

Static value MultiPolygon for DataType.

static final DataType NUMBER

Static value Number for DataType.

static final DataType POINT

Static value Point for DataType.

static final DataType POLYGON

Static value Polygon for DataType.

static final DataType STRING

Static value String for DataType.

Constructor Summary

Constructor Description
DataType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DataType value.

Method Summary

Modifier and Type Method and Description
static DataType fromString(String name)

Creates or finds a DataType from its string representation.

static Collection<DataType> values()

Gets known DataType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LINE_STRING

public static final DataType LINE_STRING

Static value LineString for DataType.

MULTI_POLYGON

public static final DataType MULTI_POLYGON

Static value MultiPolygon for DataType.

NUMBER

public static final DataType NUMBER

Static value Number for DataType.

POINT

public static final DataType POINT

Static value Point for DataType.

POLYGON

public static final DataType POLYGON

Static value Polygon for DataType.

STRING

public static final DataType STRING

Static value String for DataType.

Constructor Details

DataType

@Deprecated
public DataType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DataType value.

Method Details

fromString

public static DataType fromString(String name)

Creates or finds a DataType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DataType.

values

public static Collection values()

Gets known DataType values.

Returns:

known DataType values.

Applies to