Package org.apache.solr.util
Common utility classes used throughout Solr
-
Interface Summary Interface Description ConcurrentLRUCache.EvictionListener<K,V> DynamicMap An efficient map for storing keys as integer in range from 0..n with n can be estimated up-front.FloatConsumer Represents an operation that accepts a singlefloat
-valued argument and returns no result.IOFunction<T,R> A Function that may throw an IOExceptionLongIterator Along
-based iterator.RTimer.TimerImpl TestInjection.Hook -
Class Summary Class Description AddressUtils Simple utilities for working Hostname/IP AddressesAdjustableSemaphore BoundedTreeSet<E> A TreeSet that ensures it never grows beyond a max size.ConcurrentLRUCache<K,V> A LRU cache implementation based upon ConcurrentHashMap and other techniques to reduce contention and synchronization overhead to utilize multiple CPU cores more effectively.ConcurrentLRUCache.CacheEntry<K,V> ConcurrentLRUCache.Stats CryptoKeys A utility class with helpers for various signature and certificate tasksCryptoKeys.RSAKeyPair DataConfigNode ConfigNode impl that copies and maintains data internally from DOMDateMathParser A Simple Utility class for parsing "math" like strings relating to Dates.DistanceUnits Used with a spatial field type for all distance measurements.DOMConfigNode Read using DOMFileTypeMagicUtil Utility class to guess the mime type of file based on its magic number.FileUtils IdUtils Helper class for generating unique ID-s.IntFloatDynamicMap IntIntDynamicMap IntLongDynamicMap JmxUtil Utility methods to find a MBeanServer.LocaleUtils LongPriorityQueue A native long priority queue.LongSet Collects long values in a hash set (closed hashing on power-of-two sized long[])MapListener<K,V> Wraps another map, keeping track of each key that was seen viaMapListener.get(Object)
orMapListener.remove(Object)
.MockSearchableSolrClient Simple mock client that collects added documents and supports simple search by id (both{!term f=id}
andid:
syntax is supported) or *:*.ModuleUtils Parses the list of modules the user has requested in solr.xml, property solr.modules or environment SOLR_MODULES.NumberUtils OrderedExecutor PayloadUtils PrimUtils Utilities for primitive Java data types.PrimUtils.IntComparator PropertiesInputStream PropertiesOutputStream RecordingJSONParser RefCounted<Type> Keep track of a reference count on a resource and close it when the count hits zero.RegexFileFilter Accepts any file whose name matches the patternRTimer A simple timer.RTimerTree A recursive timer.SafeXMLParsing Some utility methods for parsing XML in a safe way.SolrJacksonAnnotationInspector this class provides a mapping between Solr'sJsonProperty
annotation to a corresponding annotation in jackson see SOLR-13841 for more detailsSolrPluginUtils Utilities that may be of use to RequestHandlers.SolrPluginUtils.DisjunctionMaxQueryParser A subclass of SolrQueryParser that supports aliasing fields for constructing DisjunctionMaxQueries.SolrPluginUtils.DisjunctionMaxQueryParser.Alias A simple container for storing alias infoSolrResponseUtil SpatialUtils Utility methods pertaining to spatial.StartupLoggingUtils Handles programmatic modification of logging during startupSystemIdResolver This is a helper class to support resolving of XIncludes or other hrefs inside XML files on top of aResourceLoader
.TestInjection Allows random faults to be injected in running code during test runs.TimeOut TimeZoneUtils Simple utilities for working with TimeZonesVersionedFile -
Enum Summary Enum Description PivotListEntry Enum for modeling the elements of a (nested) pivot entry as expressed in a NamedList -
Error Summary Error Description TestInjection.TestShutdownFailError