public static SimpleNameMatcher constructCaseInsensitive(List<String> names) { return new SimpleNameMatcher(SimpleNameMatcher.construct(names), SimpleNameMatcher.construct(_lc(names))); }
public static SimpleNameMatcher constructCaseInsensitive(List<Named> fields, boolean alreadyInterned) { return constructCaseInsensitive(stringsFromNames(fields, alreadyInterned)); }
/** * Factory method for constructing case-sensitive {@link FieldNameMatcher} * for given names. It will call {@link String#intern} on names unless specified * that this has already been done by caller. * * @param matches Names to match, including both primary names and possible aliases */ public FieldNameMatcher constructFieldNameMatcher(List<Named> matches, boolean alreadyInterned) { // 15-Nov-2017, tatu: Base implementation that is likely to work fine for // most if not all implementations as it is more difficult to optimize return SimpleNameMatcher.constructFrom(matches, alreadyInterned); }
/** * Factory method for constructing case-sensitive matcher that only supports * matching from `String`. */ public static SimpleNameMatcher constructFrom(List<Named> fields, boolean alreadyInterned) { return construct(stringsFromNames(fields, alreadyInterned)); }
public static SimpleNameMatcher construct(List<String> fieldNames) final int hashSize = _findSize(fieldCount); final int allocSize = hashSize + (hashSize>>1); continue; int ix = _hash(name.hashCode(), mask); if (names[ix] == null) { names[ix] = name; ++spillPtr; return new SimpleNameMatcher(names, offsets, mask);
/** * Factory method for constructing case-insensitive {@link FieldNameMatcher} * for given names. It will call {@link String#intern} on names unless specified * that this has already been done by caller. * * @param matches Names to match, including both primary names and possible aliases */ public FieldNameMatcher constructCIFieldNameMatcher(List<Named> matches, boolean alreadyInterned) { return SimpleNameMatcher.constructCaseInsensitive(matches, alreadyInterned); }
public static BinaryNameMatcher construct(List<String> symbols) { // Two-step process: since we need backup string-based lookup (when matching // current name, buffered etc etc), start with that return _construct(symbols, SimpleNameMatcher.construct(symbols)); }
public static BinaryNameMatcher constructCaseInsensitive(List<Named> fields, boolean alreadyInterned) { final List<String> names = FieldNameMatcher.stringsFromNames(fields, alreadyInterned); return _construct(names, SimpleNameMatcher.constructCaseInsensitive(names)); }