Package org.elasticsearch.common.util
Class StringLiteralDeduplicator
java.lang.Object
org.elasticsearch.common.util.StringLiteralDeduplicator
A cache in front of Java's string interning. This method assumes that it is only called with strings that are already part of the
JVM's string pool so that interning them does not grow the pool. Calling it with strings not in the interned string pool is not
advisable as its performance may deteriorate to slower than outright calls to
String.intern()
.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StringLiteralDeduplicator
public StringLiteralDeduplicator()
-
-
Method Details
-
deduplicate
-