Package org.apache.solr.common.util
Enum DataEntry.Type
- java.lang.Object
-
- java.lang.Enum<DataEntry.Type>
-
- org.apache.solr.common.util.DataEntry.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<DataEntry.Type>
- Enclosing interface:
- DataEntry
public static enum DataEntry.Type extends Enum<DataEntry.Type>
The types are a superset of json
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isContainer
boolean
isPrimitive
A primitive type which usually maps to a java primitive
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataEntry.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataEntry.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final DataEntry.Type NULL
-
LONG
public static final DataEntry.Type LONG
-
INT
public static final DataEntry.Type INT
-
BOOL
public static final DataEntry.Type BOOL
-
FLOAT
public static final DataEntry.Type FLOAT
-
DOUBLE
public static final DataEntry.Type DOUBLE
-
DATE
public static final DataEntry.Type DATE
-
KEYVAL_ITER
public static final DataEntry.Type KEYVAL_ITER
A map like json object
-
ENTRY_ITER
public static final DataEntry.Type ENTRY_ITER
An array like json object
-
STR
public static final DataEntry.Type STR
-
BYTEARR
public static final DataEntry.Type BYTEARR
-
JAVA_OBJ
public static final DataEntry.Type JAVA_OBJ
don't know how to stream it. read as an object using {DataEntry.val()
} method
-
-
Method Detail
-
values
public static DataEntry.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataEntry.Type c : DataEntry.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataEntry.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-