Package org.apache.solr.util
Common utility classes used throughout Solr
-
Interface Summary Interface Description CLIO 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 SolrCLI.Tool Defines the interface to a Solr tool that can be run from this command-line app.TestInjection.Hook -
Class Summary Class Description AdjustableSemaphore 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 DOMExportTool ExportTool.Info FileUtils IdUtils Helper class for generating unique ID-s.IntFloatDynamicMap IntIntDynamicMap IntLongDynamicMap JmxUtil Utility methods to find a MBeanServer.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 PackageTool PayloadUtils PrimUtils Utilities for primitive Java data types.PrimUtils.IntComparator PropertiesInputStream PropertiesOutputStream RecordingJSONParser RedactionUtils 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.SimplePostTool A simple utility class for posting raw updates to a Solr server, has a main method so it can be run on the command line.SimplePostTool.BAOS SimplePostTool.PageFetcherResult Utility class to hold the result form a page fetchSolrCLI Command-line utility for working with Solr.SolrCLI.ApiTool Used to send an arbitrary HTTP request to a Solr API endpoint.SolrCLI.AssertTool Asserts various conditions and exists with error code if fails, else continues with no outputSolrCLI.AuthTool SolrCLI.ConfigSetDownloadTool SolrCLI.ConfigSetUploadTool SolrCLI.ConfigTool Sends a POST to the Config API to perform a specified action.SolrCLI.CreateCollectionTool Supports create_collection command in the bin/solr script.SolrCLI.CreateCoreTool SolrCLI.CreateTool SolrCLI.DeleteTool SolrCLI.HealthcheckTool Requests health information about a specific collection in SolrCloud.SolrCLI.RunExampleTool Supports an interactive session with the user to launch (or relaunch the -e cloud example)SolrCLI.SolrCloudTool Helps build SolrCloud aware tools by initializing a CloudSolrClient instance before running the tool.SolrCLI.StatusTool Get the status of a Solr server.SolrCLI.ToolBase SolrCLI.ZkCpTool SolrCLI.ZkLsTool SolrCLI.ZkMkrootTool SolrCLI.ZkMvTool SolrCLI.ZkRmTool SolrJacksonAnnotationInspector this class provides a mapping between Solr'sJsonProperty
annotation to a corresponding annotation in jackson see SOLR-13841 for more detailsSolrLogPostTool A command line tool for indexing Solr logs in the out-of-the-box log format.SolrLogPostTool.LogRecordReader SolrPluginUtils 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 SolrVersion Simple Solr version representation backed by a Semantic Versioning library.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 -
Exception Summary Exception Description SolrCLI.AssertionFailureException SolrVersion.InvalidSemVerExpressionException -
Error Summary Error Description TestInjection.TestShutdownFailError