public static enum SchemaField.Type extends Enum<SchemaField.Type>
Enum Constant and Description |
---|
BOOLEAN
The Boolean type
|
DATE
The Date type.
|
DECIMAL
Decimal Type
|
DOUBLE
The Double type
|
FLOAT
The Float type
|
INTEGER
The Integer type
|
LONG
The Long type
|
MONEY
Money Type
|
POINT
The Point type
|
REFERENCE
Deprecated.
will be removed in a future release.
|
SHAPE
The Shape type
|
STRING
The String type
|
TEXT
The Text type
|
Modifier and Type | Method and Description |
---|---|
static SchemaField.Type |
fromExternal(String s)
Converts an external value to a type value
|
boolean |
isDate()
true if the type is a date type. |
protected boolean |
isFacet()
true if this type supports faceting. |
boolean |
isNumeric()
true if the type is a numeric type. |
boolean |
isTokenized()
true if this field type can be tokenized. |
String |
toExternal()
Converts the type to its external form
|
static SchemaField.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaField.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaField.Type STRING
public static final SchemaField.Type TEXT
public static final SchemaField.Type DATE
public static final SchemaField.Type INTEGER
public static final SchemaField.Type FLOAT
public static final SchemaField.Type LONG
public static final SchemaField.Type DOUBLE
public static final SchemaField.Type BOOLEAN
public static final SchemaField.Type POINT
public static final SchemaField.Type SHAPE
public static final SchemaField.Type REFERENCE
public static final SchemaField.Type MONEY
public static final SchemaField.Type DECIMAL
public static SchemaField.Type[] values()
for (SchemaField.Type c : SchemaField.Type.values()) System.out.println(c);
public static SchemaField.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected boolean isFacet()
true
if this type supports faceting.public boolean isNumeric()
true
if the type is a numeric type.public boolean isDate()
true
if the type is a date type.public boolean isTokenized()
true
if this field type can be tokenized.public String toExternal()
public static SchemaField.Type fromExternal(String s)
s
- the external value, if null or empty returns Type.StringCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.