Interface DocumentAdapter<T>
-
- All Known Implementing Classes:
DocumentAdapter.Identity
public interface DocumentAdapter<T>
Class that takes specific values and transforms them into other values.- See Also:
Document
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DocumentAdapter.Identity
Identity implementation of DocumentAdapter.
-
Field Summary
Fields Modifier and Type Field Description static DocumentAdapter<Object>
IDENTITY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
adapt(T value)
Takes an input value and returns an output value.
-
-
-
Field Detail
-
IDENTITY
static final DocumentAdapter<Object> IDENTITY
-
-
Method Detail
-
adapt
Object adapt(T value)
Takes an input value and returns an output value. The returned value(s) are scanned for properties to index. The value itself is not indexed.- Parameters:
value
- the value to adapt- Returns:
- the values to work with later on. May be any Object, arrays and collections are dived into
-
-