public enum SolrSchemaField extends Enum<SolrSchemaField>
Enum Constant and Description |
---|
DATE
Suffix affiliated with the
DataType.DATE data type |
FLOAT
Suffix affiliated with the
DataType FLOAT data type |
INTEGER
Suffix affiliated with the
DataType.INTEGER data type |
REQUIRED
Suffix affiliated with the
DataType REQUIRED data type |
STRING
Suffix affiliated with the
DataType.STRING data type |
Modifier and Type | Method and Description |
---|---|
static SolrSchemaField |
get(DataType type)
Return a
SolrSchemaField based on given DataType |
String |
getSuffix()
Return the string suffix
|
static String |
getSuffix(DataType type)
Return the suffix from a given
DataType |
DataType |
getType()
Returns the
DataType |
static SolrSchemaField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SolrSchemaField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SolrSchemaField REQUIRED
DataType
REQUIRED data typepublic static final SolrSchemaField STRING
DataType.STRING
data typepublic static final SolrSchemaField DATE
DataType.DATE
data typepublic static final SolrSchemaField INTEGER
DataType.INTEGER
data typepublic static final SolrSchemaField FLOAT
DataType
FLOAT data typepublic static SolrSchemaField[] values()
for (SolrSchemaField c : SolrSchemaField.values()) System.out.println(c);
public static SolrSchemaField 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 nullpublic static SolrSchemaField get(DataType type)
SolrSchemaField
based on given DataType
type
- public String getSuffix()
Copyright © 2010–2018 Planetary Data System. All rights reserved.