I
- input type from which documents are created and search results are returned.T
- type that should be extracted from the input object when converting to an index
document.public final class FieldDef<I,T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldDef.Builder<T> |
static class |
FieldDef.FillArgs
Arguments needed to fill in missing data in the input object.
|
static interface |
FieldDef.Getter<I,T> |
static interface |
FieldDef.GetterWithArgs<I,T> |
Modifier and Type | Method and Description |
---|---|
static FieldDef.Builder<String> |
exact(String name) |
static FieldDef.Builder<String> |
fullText(String name) |
T |
get(I input,
FieldDef.FillArgs args)
Get the field contents from the input object.
|
String |
getName() |
FieldType<?> |
getType() |
static FieldDef.Builder<Integer> |
integer(String name) |
static FieldDef.Builder<Integer> |
intRange(String name) |
boolean |
isRepeatable() |
boolean |
isStored() |
static FieldDef.Builder<String> |
prefix(String name) |
static FieldDef.Builder<byte[]> |
storedOnly(String name) |
static FieldDef.Builder<Timestamp> |
timestamp(String name) |
public static FieldDef.Builder<String> exact(String name)
public static FieldDef.Builder<String> fullText(String name)
public static FieldDef.Builder<Integer> intRange(String name)
public static FieldDef.Builder<Integer> integer(String name)
public static FieldDef.Builder<String> prefix(String name)
public static FieldDef.Builder<byte[]> storedOnly(String name)
public static FieldDef.Builder<Timestamp> timestamp(String name)
public String getName()
public FieldType<?> getType()
public boolean isStored()
public T get(I input, FieldDef.FillArgs args) throws com.google.gwtorm.server.OrmException
input
- input object.args
- arbitrary arguments needed to fill in indexable fields of the input object.com.google.gwtorm.server.OrmException
public boolean isRepeatable()