|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SolrSchemaField>
gov.nasa.pds.search.core.registry.SolrSchemaField
public enum SolrSchemaField
Enum to map the data types in the Search Core configurations to the Solr Schema, and provide the suffix to be appended.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SolrSchemaField REQUIRED
DataType
REQUIRED data type
public static final SolrSchemaField STRING
DataType.STRING
data type
public static final SolrSchemaField DATE
DataType.DATE
data type
public static final SolrSchemaField INTEGER
DataType.INTEGER
data type
public static final SolrSchemaField FLOAT
DataType
FLOAT data type
Method Detail |
---|
public 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 name
NullPointerException
- if the argument is nullpublic static String getSuffix(DataType type)
DataType
type
- data type specified in the search core config
Field
name for the Search Service schemaDataType
public static SolrSchemaField get(DataType type)
SolrSchemaField
based on given DataType
type
-
public DataType getType()
DataType
public String getSuffix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |