org.apache.solr.util |
|
Java Source File Name | Type | Comment |
AbstractSolrTestCase.java | Class | An Abstract base class that makes writing Solr JUnit tests "easier"
Test classes that subclass this need only specify the path to the
schema.xml file (:TODO: the solrconfig.xml as well) and write some
testMethods. |
BCDUtils.java | Class | |
BitSetIterator.java | Class | An iterator to iterate over set bits in an OpenBitSet. |
BitSetPerf.java | Class | Performance tester for OpenBitSet.
Use -Xbatch for more predictable results, and run tests such that the duration
is at least 10 seconds for better accuracy. |
BitUtil.java | Class | A variety of high efficiencly bit twiddling routines. |
BoundedTreeSet.java | Class | A TreeSet that ensures it never grows beyond a max size. |
CommonParams.java | Class | A collection on common params, both for Plugin initialization and
for Requests. |
ContentStream.java | Interface | |
ContentStreamBase.java | Class | |
ContentStreamTest.java | Class | |
DateMathParser.java | Class | A Simple Utility class for parsing "math" like strings relating to Dates.
The basic syntax support addition, subtraction and rounding at various
levels of granularity (or "units"). |
DateMathParserTest.java | Class | |
DisMaxParams.java | Class | A collection of params used in DisMaxRequestHandler,
both for Plugin initialization and for Requests. |
DOMUtil.java | Class | |
HighlightingUtils.java | Class | Collection of Utility and Factory methods for Highlighting. |
IteratorChain.java | Class | Chain several Iterators, so that this iterates
over all of them in sequence. |
IteratorChainTest.java | Class | |
NamedList.java | Class | A simple container class for modeling an ordered list of name/value pairs.
Unlike Maps:
- Names may be repeated
- Order of elements is maintained
- Elements may be accessed by numeric index
- Names and Values can both be null
A NamedList provides fast access by element number, but not by name.
When a NamedList is serialized, order is considered more important than access
by key, so ResponseWriters that output to a format such as JSON will normally
choose a data structure that allows order to be easily preserved in various
clients (i.e. |
NumberUtils.java | Class | |
OpenBitSet.java | Class | An "open" BitSet implementation that allows direct access to the array of words
storing the bits.
Unlike java.util.bitet, the fact that bits are packed into an array of longs
is part of the interface. |
RefCounted.java | Class | Keep track of a reference count on a resource and close it when
the count hits zero.
By itself, this class could have some race conditions
since there is no synchronization between the refcount
check and the close. |
SimpleOrderedMap.java | Class | SimpleOrderedMap is a
NamedList 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.
It's normally not a good idea to repeat keys or use null keys, but this
is not enforced. |
SimplePostTool.java | Class | 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. |
SolrParamTest.java | Class | |
SolrPluginUtils.java | Class | Utilities that may be of use to RequestHandlers.
Many of these functions have code that was stolen/mutated from
StandardRequestHandler.
:TODO: refactor StandardRequestHandler to use these utilities
:TODO: Many "standard" functionality methods are not cognisant of
default parameter settings. |
SolrPluginUtilsTest.java | Class | Tests that the functions in SolrPluginUtils work as advertised. |
StrUtils.java | Class | |
TestHarness.java | Class | This class provides a simple harness that may be useful when
writing testcases. |
TestOpenBitSet.java | Class | |
TestUtils.java | Class | |
TestXMLEscaping.java | Class | |
UpdateParams.java | Interface | |
XML.java | Class | |