Package org.apache.solr.common.util
package org.apache.solr.common.util
Common utility classes reused on both clients & server.
-
ClassDescriptionA mutable byte[] backed Utf8CharSequence.Cache<K,
V> Methods for creating collections with exact sizes, and other convenience methodsAllows random faults to be injected in running code during test runs across all solr packages.Breakpoints should be set via thisCommonTestInjection.BreakpointSetterwithin the test case and close should be invoked as cleanup.Deprecated.Three concrete implementations for ContentStream - one for File/URL/StringConstruct aContentStreamfrom aFileConstruct aContentStreamfrom aFileConstruct aContentStreamfrom aStringConstruct aContentStreamfrom aURLThis uses aURLConnectionto get the content streamThis represents a data entry in the payload/stream.The types are a superset of jsonAn abstract DataInput that extends InputStreamXML DOM utilitiesProvides convenient access to System Properties for Solr.Any class which wants to carry forward the thread local values to the threads run by thread pools must implement this interface and the implementation should be registered hereSingle threaded buffered InputStream Internal Solr use only, subject to change.Single threaded buffered OutputStream Internal Solr use only, subject to change.Single threaded BufferedWriter Internal Solr use only, subject to change.Provides methods for matching glob patterns against input strings.Fast, well distributed, cross-platform hash functions.128 bits of stateDefines a space-efficient serialization/deserialization format for transferring data.Allows extension ofJavaBinCodecto support serialization of arbitrary data types.A Streaming parser for json to emit one record at a time.Implement this interface to stream records as and when one is found.Creates a json schema from an annotated Java Object.A very basic and lightweight json schema parsing and data validation tool.MapBackedCache<K,V> This is a very fast, non-cryptographic hash suitable for general hash-based lookup.NamedList<T>A simple container class for modeling an ordered list of name/value pairs.Deprecated.Simple object cache with a type-safe accessor.Pair<T1,T2> PathTrie<T>A utility class to efficiently parse/store/lookup hierarchical paths which are templatized like /collections/{collection}/shards/{shard}/{replica}Breaking out some utility methods into a separate class as part of SOLR-4196.AnInputStreamthat can be resumed when the connection that is driving the input is interrupted.Utility class for retrying operations with various strategies.Interface for commands that return a boolean result indicating success or failure.Interface for commands that can be retried and may throw exceptions.SimpleOrderedMapis aNamedListwhere access by key is more important than maintaining order when it comes to representing the held data in other forms, as ResponseWriters normally do.AThreadFactorythat names threads with the given prefix.Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.Base interface for all text based writersSource of time.Implementation that usesSystem.currentTimeMillis().Implementation that usesSystem.nanoTime().Implementation that usesTimeSource.NANO_TIMEaccelerated by a double multiplier.A byte[] backed String
RequestWriter.ContentWriterinstead.