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.EntryWriterAn 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 callputmore than once for the same key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BiConsumer<CharSequence,Object>getBiConsumer()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.MapWriter.EntryWriterput(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.EntryWriterputNoEx(CharSequence k, Object v)default MapWriter.EntryWriterputStringIfNotNull(CharSequence k, Object v)
-
-
-
Method Detail
-
put
MapWriter.EntryWriter put(CharSequence k, Object v) throws IOException
Writes a key value into the map- Parameters:
k- The keyv- The value can be any supported object- Throws:
IOException
-
putNoEx
default MapWriter.EntryWriter putNoEx(CharSequence k, Object v)
-
put
default MapWriter.EntryWriter put(CharSequence k, Object v, BiPredicate<CharSequence,Object> p) throws IOException
- Throws:
IOException
-
putIfNotNull
default MapWriter.EntryWriter putIfNotNull(CharSequence k, Object v) throws IOException
- Throws:
IOException
-
putStringIfNotNull
default MapWriter.EntryWriter putStringIfNotNull(CharSequence k, Object v) throws IOException
- Throws:
IOException
-
put
default MapWriter.EntryWriter put(CharSequence k, int v) throws IOException
- Throws:
IOException
-
put
default MapWriter.EntryWriter put(CharSequence k, long v) throws IOException
- Throws:
IOException
-
put
default MapWriter.EntryWriter put(CharSequence k, float v) throws IOException
- Throws:
IOException
-
put
default MapWriter.EntryWriter put(CharSequence k, double v) throws IOException
- Throws:
IOException
-
put
default MapWriter.EntryWriter put(CharSequence k, boolean v) throws IOException
- Throws:
IOException
-
put
default MapWriter.EntryWriter put(CharSequence k, CharSequence v) throws IOException
This is an optimization to avoid the instanceof checks.- Throws:
IOException
-
getBiConsumer
default BiConsumer<CharSequence,Object> getBiConsumer()
-
-