Package org.apache.solr.common
Interface MapWriter.EntryWriter
- All Known Implementing Classes:
ConditionalKeyMapWriter.EntryWriterWrapper,ConditionalMapWriter.EntryWriterWrapper,JavaBinCodec.BinEntryWriter
- Enclosing interface:
MapWriter
public static interface MapWriter.EntryWriter
An interface to push one entry at a time to the output. The order of the keys is not defined,
but we assume they are distinct -- don't call
put more than once for the same key.-
Method Summary
Modifier and TypeMethodDescriptiondefault BiConsumer<CharSequence, Object> default MapWriter.EntryWriterput(CharSequence k, boolean v) default MapWriter.EntryWriterput(CharSequence k, double v) default MapWriter.EntryWriterput(CharSequence k, float v) default MapWriter.EntryWriterput(CharSequence k, int v) default MapWriter.EntryWriterput(CharSequence k, long v) default MapWriter.EntryWriterput(CharSequence k, CharSequence v) This is an optimization to avoid the instanceof checks.put(CharSequence k, Object v) Writes a key value into the mapdefault MapWriter.EntryWriterput(CharSequence k, Object v, BiPredicate<CharSequence, Object> p) default MapWriter.EntryWriterputIfNotNull(CharSequence k, Object v) default MapWriter.EntryWriterputIfNotNull(CharSequence k, Supplier<Object> v) default MapWriter.EntryWriterputNoEx(CharSequence k, Object v)
-
Method Details
-
put
Writes a key value into the map- Parameters:
k- The keyv- The value can be any supported object- Throws:
IOException
-
putNoEx
-
put
default MapWriter.EntryWriter put(CharSequence k, Object v, BiPredicate<CharSequence, Object> p) throws IOException- Throws:
IOException
-
putIfNotNull
- Throws:
IOException
-
putIfNotNull
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
put
This is an optimization to avoid the instanceof checks.- Throws:
IOException
-
getBiConsumer
-