Package org.apache.solr.common.util
Common utility classes reused on both clients & server.
-
Interface Summary Interface Description Cache<K,V> CommonTestInjection.Breakpoint Compressor ContentStream Deprecated. UseRequestWriter.ContentWriter
instead.DataEntry This represents a data entry in the payload/stream.DataEntry.EntryListener DataEntry.FastDecoder ExecutorUtil.InheritableThreadLocalProvider Any class which wants to carry forward the threadlocal values to the threads run by threadpools must implement this interface and the implementation should be registered hereJavaBinCodec.ObjectResolver Allows extension ofJavaBinCodec
to support serialization of arbitrary data types.JavaBinCodec.WritableDocFields JsonRecordReader.Handler Implement this interface to stream records as and when one is found.JsonTextWriter ReflectMapWriter RetryUtil.BooleanRetryCmd RetryUtil.RetryCmd TextWriter Utf8CharSequence A byte[] backed StringUtils.InputStreamConsumer<T> ValidatingJsonMap.PredicateWithErrMsg<T> XML.Writable -
Class Summary Class Description ByteArrayUtf8CharSequence A mutable byte[] backed Utf8CharSequence.BytesBlock BytesOutputStream BytesOutputStream.Bytes ByteUtils CollectionUtil Methods for creating collections with exact sizes, and other convenience methodsCommandOperation CommonTestInjection Allows random faults to be injected in running code during test runs across all solr packages.CommonTestInjection.BreakpointSetter Breakpoints should be set via thisCommonTestInjection.BreakpointSetter
within the test case and close should be invoked as cleanup.ContentStreamBase Three concrete implementations for ContentStream - one for File/URL/StringContentStreamBase.ByteArrayStream Construct aContentStream
from aFile
ContentStreamBase.FileStream Construct aContentStream
from aFile
ContentStreamBase.StringStream Construct aContentStream
from aString
ContentStreamBase.URLStream Construct aContentStream
from aURL
This uses aURLConnection
to get the content streamDataInputInputStream An abstract DataInput that extends InputStreamDOMUtil EnvUtils This class is a unified provider of environment variables and system properties.ExecutorUtil ExecutorUtil.MDCAwareThreadPoolExecutor FastInputStream Single threaded buffered InputStream Internal Solr use only, subject to change.FastJavaBinDecoder FastOutputStream Single threaded buffered OutputStream Internal Solr use only, subject to change.FastWriter Single threaded BufferedWriter Internal Solr use only, subject to change.GlobPatternUtil Provides methods for matching glob patterns against input strings.Hash Fast, well distributed, cross-platform hash functions.Hash.LongPair 128 bits of stateIOUtils JavaBinCodec Defines a space-efficient serialization/deserialization format for transferring data.JavaBinCodec.StringCache JsonRecordReader A Streaming parser for json to emit one record at a time.JsonSchemaCreator Creates a json schema from an annotated Java Object.JsonSchemaValidator A very basic and lightweight json schema parsing and data validation tool.MapBackedCache<K,V> MurmurHash2 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.NamedList.NamedListEntry<T> Helper class implementing Map.Entry<String, T> to store the key-value relationship in NamedList (the keys of which are String-s)ObjectCache Simple object cache with a type-safe accessor.ObjectReleaseTracker Pair<T1,T2> PathTrie<T> A utility class to efficiently parse/store/lookup hierarchical paths which are templatized like /collections/{collection}/shards/{shard}/{replica}PropertiesUtil Breaking out some utility methods into a separate class as part of SOLR-4196.RetryUtil SimpleOrderedMap<T> SimpleOrderedMap
is aNamedList
where access by key is more important than maintaining order when it comes to representing the held data in other forms, as ResponseWriters normally do.SolrJSONWriter Use this to serialize an object into Json.SolrNamedThreadFactory AThreadFactory
that names threads with the given prefix.StringBytes StrUtils Template TimeSource Source of time.TimeSource.CurrentTimeSource Implementation that usesSystem.currentTimeMillis()
.TimeSource.NanoTimeSource Implementation that usesSystem.nanoTime()
.TimeSource.SimTimeSource Implementation that usesTimeSource.NANO_TIME
accelerated by a double multiplier.URLUtil Utils Utils.BAOS Utils.DelegateReflectWriter ValidatingJsonMap WrappedSimpleMap<T> XML XMLErrorLogger ZLibCompressor -
Enum Summary Enum Description DataEntry.Type The types are a superset of jsonFastJavaBinDecoder.Tag -
Annotation Types Summary Annotation Type Description SuppressForbidden Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.