Package org.apache.solr.util
Common utility classes used throughout Solr
-
Interface Summary Interface Description ConcurrentLFUCache.EvictionListener<K,V> 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.FSHDFSUtils.CallerInfo 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.SolrLogLayout.TG Add this interface to a thread group and the string returned by getTag() will appear in log statements of any threads under that group.TestInjection.Hook -
Class Summary Class Description AdjustableSemaphore BoundedTreeSet<E> A TreeSet that ensures it never grows beyond a max size.ConcurrentLFUCache<K,V> A LFU cache implementation based upon ConcurrentHashMap.ConcurrentLFUCache.CacheEntry<K,V> ConcurrentLFUCache.Stats 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 to verify signaturesCryptoKeys.RSAKeyPair DateMathParser A Simple Utility class for parsing "math" like strings relating to Dates.DistanceUnits Used with a spatial field type for all distance measurements.DOMUtil ExportTool ExportTool.Info FileUtils FSHDFSUtils Borrowed from Apache HBase to recover an HDFS lease.HdfsUtil 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 *:*.NumberUtils OrderedExecutor PackageTool PayloadUtils PrimUtils Utilities for primitive Java data types.PrimUtils.IntComparator PropertiesInputStream PropertiesOutputStream PropertiesUtil Breaking out some utility methods into a separate class as part of SOLR-4196.RecordingJSONParser RedactionUtils RedactionUtils.RedactionContext A helper class to build unique mappings from original to redacted names.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.AutoscalingTool 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.UtilsTool 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 detailsSolrLogLayout SolrLogLayout.CoreInfo SolrLogLayout.Method SolrLogPostTool 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 infoSpatialUtils 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 -
Error Summary Error Description TestInjection.TestShutdownFailError