- Cache<K,V extends Cache.Value> - Class in org.apache.jackrabbit.oak.commons.cache
-
- Cache.Backend<K,V> - Interface in org.apache.jackrabbit.oak.commons.cache
-
A cache backend that can load objects from persistent storage.
- Cache.Value - Interface in org.apache.jackrabbit.oak.commons.cache
-
A cacheable object.
- calculateExpirationTime(long) - Static method in class org.apache.jackrabbit.oak.commons.LongUtils
-
Calculate an expiration time based on new Date().getTime() and
the specified expiration in number of milliseconds.
- clear() - Method in class org.apache.jackrabbit.oak.commons.cache.Cache
-
- close() - Method in class org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser
-
- close() - Method in class org.apache.jackrabbit.oak.commons.FileIOUtils.BurnOnCloseFileIterator
-
- close() - Method in class org.apache.jackrabbit.oak.commons.FileIOUtils.FileLineDifferenceIterator
-
- close() - Method in class org.apache.jackrabbit.oak.commons.io.LazyInputStream
-
- close() - Method in class org.apache.jackrabbit.oak.commons.sort.StringSort
-
- closeQuietly(Closeable) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Unconditionally close a Closeable.
- closeQuietly(Socket) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Unconditionally close a Socket.
- COMMENT - Static variable in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
The token type of a comment, if supported by the reader.
- compare(String, String) - Method in class org.apache.jackrabbit.oak.commons.FileIOUtils.TransformingComparator
-
- completed() - Static method in class org.apache.jackrabbit.oak.commons.concurrent.NotifyingFutureTask
-
- computeNext() - Method in class org.apache.jackrabbit.oak.commons.FileIOUtils.BurnOnCloseFileIterator
-
- computeNext() - Method in class org.apache.jackrabbit.oak.commons.FileIOUtils.FileLineDifferenceIterator
-
- concat(String, String...) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Concatenate path elements.
- concat(String, String) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Concatenate path elements.
- concatRelativePaths(String...) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Relative path concatenation.
- convertBytesToHex(byte[]) - Static method in class org.apache.jackrabbit.oak.commons.StringUtils
-
Convert a byte array to a hex encoded string.
- convertHexToBytes(String) - Static method in class org.apache.jackrabbit.oak.commons.StringUtils
-
Convert a hex encoded string to a byte array.
- copy(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.FileIOUtils
-
Copies an input stream to a file.
- copy(InputStream, OutputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Copy bytes from an InputStream to an
OutputStream.
- copyInputStreamToFile(InputStream, File) - Static method in class org.apache.jackrabbit.oak.commons.FileIOUtils
-
Copy the input stream to the given file.
- create(JsopTokenizer) - Static method in class org.apache.jackrabbit.oak.commons.json.JsonObject
-
Reads a JSON object from the given tokenizer.
- elements(String) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Returns an Iterable for the path elements.
- encode(String) - Static method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Convert a string to a quoted Json literal using the correct escape
sequences.
- encodedValue(String) - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Append an already encoded value.
- encodedValue(String) - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- encodedValue(String) - Method in interface org.apache.jackrabbit.oak.commons.json.JsopWriter
-
Append an already encoded value.
- END - Static variable in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
The token type that signals the end of the stream.
- endArray() - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Append ']'.
- endArray() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- endArray() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopWriter
-
Append ']'.
- endObject() - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Append '}'.
- endObject() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- endObject() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopWriter
-
Append '}'.
- ERROR - Static variable in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
The token type of a parse error.
- escape(String, StringBuilder) - Static method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Escape a string into the target buffer.
- escapeForQuery(String) - Static method in class org.apache.jackrabbit.oak.commons.QueryUtils
-
- escapeLineBreak(String) - Static method in class org.apache.jackrabbit.oak.commons.sort.EscapeUtils
-
- escapeNodeName(String) - Static method in class org.apache.jackrabbit.oak.commons.QueryUtils
-
Escape string for matching in jcr escaped node names
- EscapeUtils - Class in org.apache.jackrabbit.oak.commons.sort
-
Utility class to escape '\n', '\r', '\' char
while being written to file and unescape then upon getting
read from file.
- EscapeUtils() - Constructor for class org.apache.jackrabbit.oak.commons.sort.EscapeUtils
-
- estimateBestSizeOfBlocks(File, int, long) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
- estimatedSizeOf(String) - Static method in class org.apache.jackrabbit.oak.commons.sort.StringSizeEstimator
-
Estimates the size of a
String object in bytes.
- estimateMemoryUsage(String) - Static method in class org.apache.jackrabbit.oak.commons.StringUtils
-
Estimates the memory usage of the given string.
- ExecutorCloser - Class in org.apache.jackrabbit.oak.commons.concurrent
-
Utility class to properly close any ExecutorService.
- ExecutorCloser(ExecutorService) - Constructor for class org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser
-
will attempt a graceful close in 5 seconds
- ExecutorCloser(ExecutorService, int, TimeUnit) - Constructor for class org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser
-
will attempt a graceful close by the provided time.
- ExternalSort - Class in org.apache.jackrabbit.oak.commons.sort
-
Source copied from a publicly available library.
- ExternalSort() - Constructor for class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
- read() - Method in class org.apache.jackrabbit.oak.commons.io.LazyInputStream
-
- read(byte[]) - Method in class org.apache.jackrabbit.oak.commons.io.LazyInputStream
-
- read(byte[], int, int) - Method in class org.apache.jackrabbit.oak.commons.io.LazyInputStream
-
- read(int) - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Read a token which must match a given token type.
- read() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Read a token and return the token type.
- read(int) - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- read() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- read(int) - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Read a token which must match a given token type.
- read() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Read a token and return the token type.
- readBytes(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Read a byte array.
- readFully(InputStream, byte[], int, int) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Try to read the given number of bytes to the buffer.
- readInt(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Read an integer (4 bytes).
- readLong(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Read a long (8 bytes).
- readRawValue() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Return the row (escaped) token.
- readRawValue() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- readRawValue() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Read a value and return the raw Json representation.
- readString(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Read a String.
- readString() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Read a string.
- readString() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- readString() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Read a string.
- readStringsAsSet(InputStream, boolean) - Static method in class org.apache.jackrabbit.oak.commons.FileIOUtils
-
Reads strings from the given stream into a set and optionally unescaping for line breaks.
- readVarInt(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Read a variable size integer.
- readVarLong(InputStream) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Read a variable size long.
- relativize(String, String) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Relativize a path wrt.
- replace(K, V) - Method in class org.apache.jackrabbit.oak.commons.cache.Cache
-
Get the element in the cache if one exists, or add it to the cache if not.
- reset() - Method in class org.apache.jackrabbit.oak.commons.io.LazyInputStream
-
- resetReader() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Reset the position to 0, so that to restart reading.
- resetReader() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- resetReader() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
- resetWriter() - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Resets this instance.
- resetWriter() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- resetWriter() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopWriter
-
Resets this instance, so that all data is discarded.
- result(DescriptiveStatistics) - Method in class org.apache.jackrabbit.oak.commons.benchmark.MicroBenchmark.Benchmark
-
The benchmark runner calls this method exactly once and only if the benchmark
did not result in an error.
- ROOT_NAME - Static variable in class org.apache.jackrabbit.oak.commons.PathUtils
-
- ROOT_PATH - Static variable in class org.apache.jackrabbit.oak.commons.PathUtils
-
- run() - Method in class org.apache.jackrabbit.oak.commons.benchmark.MicroBenchmark.Benchmark
-
The benchmark runner calls this method a number of times to measure its
runtime performance.
- run(MicroBenchmark.Benchmark) - Static method in class org.apache.jackrabbit.oak.commons.benchmark.MicroBenchmark
-
Run a benchmark
- safeAdd(long, long) - Static method in class org.apache.jackrabbit.oak.commons.LongUtils
-
Sums
a and
b and verifies that it doesn't overflow in
signed long arithmetic, in which case
Long.MAX_VALUE will be
returned instead of the result.
- setLineLength(int) - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
- setLineLength(int) - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- setLineLength(int) - Method in interface org.apache.jackrabbit.oak.commons.json.JsopWriter
-
Set the line length, after which a newline is added (to improve
readability).
- setPos(int) - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
- setup() - Method in class org.apache.jackrabbit.oak.commons.benchmark.MicroBenchmark.Benchmark
-
The benchmark runner calls this method first and exactly once by for setting up
the test fixture.
- size() - Method in class org.apache.jackrabbit.oak.commons.cache.Cache
-
- skip(long) - Method in class org.apache.jackrabbit.oak.commons.io.LazyInputStream
-
- skipFully(InputStream, long) - Static method in class org.apache.jackrabbit.oak.commons.IOUtils
-
Skip a number of bytes in an input stream.
- sort(File) - Static method in class org.apache.jackrabbit.oak.commons.FileIOUtils
-
- sort(File, Comparator<String>) - Static method in class org.apache.jackrabbit.oak.commons.FileIOUtils
-
Sorts the given file externally with the given comparator and removes duplicates.
- sort(File, File) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
- sort() - Method in class org.apache.jackrabbit.oak.commons.sort.StringSort
-
- sortAndSave(List<String>, Comparator<String>, Charset, File, boolean, boolean) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
Sort a list and save it to a temporary file
- sortAndSave(List<String>, Comparator<String>, Charset, File) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
Sort a list and save it to a temporary file
- sortInBatch(File) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
This will simply load the file by blocks of lines, then sort them in-memory, and write the
result to temporary files that have to be merged later.
- sortInBatch(File, Comparator<String>) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
This will simply load the file by blocks of lines, then sort them in-memory, and write the
result to temporary files that have to be merged later.
- sortInBatch(File, Comparator<String>, boolean) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
This will simply load the file by blocks of lines, then sort them in-memory, and write the
result to temporary files that have to be merged later.
- sortInBatch(File, Comparator<String>, int, long, Charset, File, boolean, int, boolean) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
This will simply load the file by blocks of lines, then sort them in-memory, and write the
result to temporary files that have to be merged later.
- sortInBatch(File, Comparator<String>, int, long, Charset, File, boolean) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
This will simply load the file by blocks of lines, then sort them in-memory, and write the
result to temporary files that have to be merged later.
- STRING - Static variable in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
The token type of a string value.
- StringSizeEstimator - Class in org.apache.jackrabbit.oak.commons.sort
-
Source copied from a publicly available library.
- StringSort - Class in org.apache.jackrabbit.oak.commons.sort
-
Utility class to store a list of string and perform sort on that.
- StringSort(int, Comparator<String>) - Constructor for class org.apache.jackrabbit.oak.commons.sort.StringSort
-
- StringUtils - Class in org.apache.jackrabbit.oak.commons
-
Some string utility methods.
- StringUtils() - Constructor for class org.apache.jackrabbit.oak.commons.StringUtils
-
- tag(char) - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Append a Jsop tag character.
- tag(char) - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- tag(char) - Method in interface org.apache.jackrabbit.oak.commons.json.JsopWriter
-
Append a Jsop tag character.
- tearDown() - Method in class org.apache.jackrabbit.oak.commons.benchmark.MicroBenchmark.Benchmark
-
The benchmark runner calls this method last and exactly once for tearing down
the test fixture.
- toBoolean(Object, boolean) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the boolean value of the parameter or the
defaultValue if the parameter is null.
- toDouble(Object, double) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as a double or the
defaultValue if the parameter is null or if
the parameter is not a Double and cannot be converted to
a Double from the parameter's string value.
- toInteger(Object, int) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as an integer or the
defaultValue if the parameter is null or if
the parameter is not an Integer and cannot be converted to
an Integer from the parameter's string value.
- toJson(JsopBuilder) - Method in class org.apache.jackrabbit.oak.commons.json.JsonObject
-
- toLong(Object, long) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as a long or the
defaultValue if the parameter is null or if
the parameter is not a Long and cannot be converted to
a Long from the parameter's string value.
- toObject(Object) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as a single value.
- toString() - Method in class org.apache.jackrabbit.oak.commons.json.JsopBuilder
-
Get the generated string.
- toString() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- toString() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
- toString(Object, String) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as a string or the
defaultValue if the parameter is null.
- toStringArray(Object) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as an array of Strings.
- toStringArray(Object, String[]) - Static method in class org.apache.jackrabbit.oak.commons.PropertiesUtil
-
Returns the parameter as an array of Strings.
- TRUE - Static variable in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
The token type of the value "true".