Package org.apache.druid.java.util.common
package org.apache.druid.java.util.common
-
ClassDescriptionSimple wrapper class to enforce UTC Chronology in formatter.This utility class provides a thin runtime abstraction to pick between - sun.misc.Unsafe.defineClass in Java 8, - and MethodHandles.Lookup.defineClass in Java 9 and above, while still providing compile-time support for both Java 8 and Java 9+.Either<L,
R> Encapsulates either an "error" or a "value".Keeps results of a file copy, including children and total size of the resultant files.LikeByteSource, but this is an interface, which allows use of lambdas.This annotation is an extension of java validation framework to ensure the validity of value ofHumanReadableBytes.This serializer provides the basic support of JSON serialization ofHumanReadableBytesto demonstrate serialization and deserialization work GivenFacilitates using try-with-resources withMappedByteBuffer.Similar to LinkedBlockingQueue but can be bounded by the total byte size of the items present in the queue rather than number of items.NonnullPair<L,R> Pair<T1,T2> Wrapper overStopwatchto provide some utility methods such asStopwatch.millisElapsed(),Stopwatch.restart(),Stopwatch.hasElapsed(Duration).An enum that provides a way for users to specify what encoding should be used when hashing strings.JsonIncludefilter forStringEncodingthat ignores UTF16LE, which is the typical default for aggregators.As of OpenJDK / Oracle JDK 8, the JVM is optimized around String charset variable instead of Charset passing, that is exploited inStringUtils.toUtf8(String)andStringUtils.fromUtf8(byte[]).Triple<T1,T2, T3> A type that has exactly one value.This utiliy class enables runtime access to sun.misc.Unsafe using reflection, since Unsafe may not be directly accessible in newer JDK versions