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 abstract class FieldDef<I,T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldDef.FillArgs
Arguments needed to fill in missing data in the input object.
|
static class |
FieldDef.Repeatable<I,T>
Definition of a repeatable field.
|
static class |
FieldDef.Single<I,T>
Definition of a single (non-repeatable) field.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
get(I input,
FieldDef.FillArgs args)
Get the field contents from the input object.
|
String |
getName() |
FieldType<?> |
getType() |
abstract boolean |
isRepeatable() |
boolean |
isStored() |
public final String getName()
public final FieldType<?> getType()
public final boolean isStored()
public abstract 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 abstract boolean isRepeatable()