public class FieldMappersLookup extends com.google.common.collect.ForwardingSet<FieldMapper<?>>
| Constructor and Description |
|---|
FieldMappersLookup()
Create a new empty instance.
|
| Modifier and Type | Method and Description |
|---|---|
FieldMappersLookup |
copyAndAddAll(Collection<? extends FieldMapper<?>> newMappers)
Return a new instance that contains the union of this instance and the provided mappers.
|
FieldMappersLookup |
copyAndRemoveAll(Collection<?> mappersToRemove)
Return a new instance that contains this instance minus the provided mappers.
|
protected Set<FieldMapper<?>> |
delegate() |
FieldMappers |
fullName(String fullName)
Returns the field mappers based on the mapper full name.
|
FieldMappers |
indexName(String indexName)
Returns the field mappers based on the mapper index name.
|
FieldMappers |
name(String name)
Returns the field mappers based on the mapper name.
|
List<String> |
simpleMatchToFullName(String pattern)
Returns a list of the full names of a simple match regex like pattern against full name, name and index name.
|
List<String> |
simpleMatchToIndexNames(String pattern)
Returns a list of the index names of a simple match regex like pattern against full name, name and index name.
|
FieldMappers |
smartName(String name)
|
FieldMapper<?> |
smartNameFieldMapper(String name)
Tries to find first based on
fullName(String), then by indexName(String), and last
by name(String) and return the first mapper for it (see FieldMappers.mapper()). |
equals, hashCode, standardEquals, standardHashCode, standardRemoveAlladd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic FieldMappersLookup copyAndAddAll(Collection<? extends FieldMapper<?>> newMappers)
public FieldMappersLookup copyAndRemoveAll(Collection<?> mappersToRemove)
public FieldMappers name(String name)
public FieldMappers indexName(String indexName)
public FieldMappers fullName(String fullName)
public List<String> simpleMatchToIndexNames(String pattern)
public List<String> simpleMatchToFullName(String pattern)
@Nullable public FieldMappers smartName(String name)
@Nullable public FieldMapper<?> smartNameFieldMapper(String name)
fullName(String), then by indexName(String), and last
by name(String) and return the first mapper for it (see FieldMappers.mapper()).protected Set<FieldMapper<?>> delegate()
delegate in class com.google.common.collect.ForwardingSet<FieldMapper<?>>Copyright © 2009–2016. All rights reserved.