@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SearchEntryParer extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
SearchEntryParer(java.util.List<java.lang.String> requestedAttributes,
Schema schema)
Creates a new search entry parer for the provided set of requested
attributes.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getRequestedAttributes()
Retrieves the set of requested attributes used to create this search entry
parer.
|
Entry |
pareEntry(Entry entry)
Retrieves a copy of the provided entry that includes only the appropriate
set of requested attributes.
|
public SearchEntryParer(@NotNull java.util.List<java.lang.String> requestedAttributes, @Nullable Schema schema)
requestedAttributes
- The list of requested attributes for use when
paring entries. It must not be null
,
but may be empty.schema
- The schema to use when paring entries. It may
be null
if no schema is available.@NotNull public java.util.List<java.lang.String> getRequestedAttributes()
@NotNull public Entry pareEntry(@NotNull Entry entry)
entry
- The entry to be pared.