public enum StorableTypes extends Enum<StorableTypes> implements LuceneTranslator.Coder
String values with the intention to be used for Lucene.
Numbers are padded with zeros so that textual representation of a lower number would be alphanumerically lower then textual representation of a higher number:
STRING.encode(10).compareTo(STRING.encode(2)) < 0
// which translates to...
"00000000000000000010".compareTo("00000000000000000002") < 0
TODO: Floating point types are not correctly represented
| Enum Constant and Description |
|---|
BOOL |
DOUBLE |
FLOAT |
INTEGER |
LONG |
STRING |
TIMESTAMP |
| Modifier and Type | Method and Description |
|---|---|
static StorableTypes |
getForAttribute(EOAttribute att) |
static StorableTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StorableTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfdecode, encodepublic static final StorableTypes STRING
public static final StorableTypes INTEGER
public static final StorableTypes LONG
public static final StorableTypes FLOAT
public static final StorableTypes DOUBLE
public static final StorableTypes BOOL
public static final StorableTypes TIMESTAMP
public static StorableTypes[] values()
for (StorableTypes c : StorableTypes.values()) System.out.println(c);
public static StorableTypes 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 StorableTypes getForAttribute(EOAttribute att)
Copyright © 2002 – 2025 Project Wonder.