Module org.elasticsearch.server
Package org.elasticsearch.index.query
Class TermsQueryBuilder.BinaryValues
java.lang.Object
java.util.AbstractCollection
org.elasticsearch.index.query.TermsQueryBuilder.BinaryValues
- All Implemented Interfaces:
Iterable,Collection,Writeable
- Enclosing class:
TermsQueryBuilder
public static final class TermsQueryBuilder.BinaryValues
extends AbstractCollection
implements Writeable
Store terms as a
BytesReference.
When users send a query contain a lot of terms, A BytesReference can help
gc and reduce the cost of TermsQueryBuilder.doWriteTo(org.elasticsearch.common.io.stream.StreamOutput), which can be slow for lots of terms.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAll(Collection c) voidclear()booleanbooleaninthashCode()Iterator<?> iterator()booleanbooleanbooleanintsize()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.util.AbstractCollection
add, contains, isEmpty, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Method Details
-
remove
- Specified by:
removein interfaceCollection- Overrides:
removein classAbstractCollection
-
containsAll
- Specified by:
containsAllin interfaceCollection- Overrides:
containsAllin classAbstractCollection
-
addAll
- Specified by:
addAllin interfaceCollection- Overrides:
addAllin classAbstractCollection
-
removeAll
- Specified by:
removeAllin interfaceCollection- Overrides:
removeAllin classAbstractCollection
-
retainAll
- Specified by:
retainAllin interfaceCollection- Overrides:
retainAllin classAbstractCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Overrides:
clearin classAbstractCollection
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein classAbstractCollection
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin classAbstractCollection
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
- Specified by:
equalsin interfaceCollection- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection- Overrides:
hashCodein classObject
-