- 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.
- end(long, long, String, Object) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
- end(long, long, String, Object, Object) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
- end(long, long, String, Object...) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
- end(long, long, long, String, Object) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
- end(long, long, long, String, Object, Object) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
- end(long, long, long, String, Object...) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
- 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
-
- generateUUID() - Static method in class org.apache.jackrabbit.oak.commons.UUIDUtils
-
- generateUUID(String) - Static method in class org.apache.jackrabbit.oak.commons.UUIDUtils
-
- get(K) - Method in class org.apache.jackrabbit.oak.commons.cache.Cache
-
- getAncestorPath(String, int) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Get the nth ancestor of a path.
- getChildren() - Method in class org.apache.jackrabbit.oak.commons.json.JsonObject
-
- getDepth(String) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Calculate the number of elements in the path.
- getEscapedToken() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Get the last encoded (raw) string, including escape sequences.
- getIds() - Method in class org.apache.jackrabbit.oak.commons.sort.StringSort
-
- getInstrumentation() - Static method in class org.apache.jackrabbit.oak.commons.Profiler
-
Get the instrumentation object if started as an agent.
- getLastPos() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
- getMemory() - Method in interface org.apache.jackrabbit.oak.commons.cache.Cache.Value
-
Get the memory required in bytes.
- getMemoryMax() - Method in class org.apache.jackrabbit.oak.commons.cache.Cache
-
- getMemoryUsed() - Method in class org.apache.jackrabbit.oak.commons.cache.Cache
-
- getName(String) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Get the last element of the (absolute or relative) path.
- getNextSlash(String, int) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Get the index of the next slash.
- getParentPath(String) - Static method in class org.apache.jackrabbit.oak.commons.PathUtils
-
Get the parent of a path.
- getPos() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
- getProperties() - Method in class org.apache.jackrabbit.oak.commons.json.JsonObject
-
- getSize() - Method in class org.apache.jackrabbit.oak.commons.sort.StringSort
-
- getString() - Method in class org.apache.jackrabbit.oak.commons.DebugTimer
-
- getToken() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Get the last token value if the the token type was STRING or NUMBER.
- getToken() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- getToken() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Get the last token value if the the token type was STRING or NUMBER.
- getTokenType() - Method in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
Get the token type of the last token.
- getTokenType() - Method in class org.apache.jackrabbit.oak.commons.json.JsopStream
-
- getTokenType() - Method in class org.apache.jackrabbit.oak.commons.json.JsopTokenizer
-
Get the token type of the last token.
- getTop(int) - Method in class org.apache.jackrabbit.oak.commons.Profiler
-
Get the top stack traces.
- getVersion(String, Class) - Static method in class org.apache.jackrabbit.oak.commons.OakVersion
-
Returns the version of an Oak module.
- 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.
- 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.Profiler
-
- 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
-
- 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<T>, Comparator<T>, Charset, File, boolean, boolean, Function<T, String>) - 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<T>, int, long, Charset, File, boolean, int, boolean, Function<T, String>, Function<String, T>) - 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(BufferedReader, long, Comparator<T>, int, long, Charset, File, boolean, int, boolean, Function<T, String>, Function<String, T>) - Static method in class org.apache.jackrabbit.oak.commons.sort.ExternalSort
-
- 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.
- start() - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
Shortcut to #start(null, false)
- start(String) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
Shortcut to start(traceMsgOrNull, false)
- startCollecting() - Method in class org.apache.jackrabbit.oak.commons.Profiler
-
Start collecting profiling data.
- startForInfoLog() - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
Shortcut to start(null, true)
- startForInfoLog(String) - Method in class org.apache.jackrabbit.oak.commons.PerfLogger
-
Shortcut to start(traceMsgOrNull, true)
- stopCollecting() - Method in class org.apache.jackrabbit.oak.commons.Profiler
-
Stop collecting.
- 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.
- sumClasses - Variable in class org.apache.jackrabbit.oak.commons.Profiler
-
- sumMethods - Variable in class org.apache.jackrabbit.oak.commons.Profiler
-
- 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.
- TimeDurationFormatter - Class in org.apache.jackrabbit.oak.commons
-
Format a time duration as human-readable string, inspired by
Stopwatch.toString()
.
- TimeDurationFormatter(Locale, int, boolean) - Constructor for class org.apache.jackrabbit.oak.commons.TimeDurationFormatter
-
- 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.
- TransformingComparator(Comparator, Function<String, String>) - Constructor for class org.apache.jackrabbit.oak.commons.FileIOUtils.TransformingComparator
-
- TRUE - Static variable in interface org.apache.jackrabbit.oak.commons.json.JsopReader
-
The token type of the value "true".