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 callput
more 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.EntryWriter
put(CharSequence k, boolean v)
default MapWriter.EntryWriter
put(CharSequence k, double v)
default MapWriter.EntryWriter
put(CharSequence k, float v)
default MapWriter.EntryWriter
put(CharSequence k, int v)
default MapWriter.EntryWriter
put(CharSequence k, long v)
default MapWriter.EntryWriter
put(CharSequence k, CharSequence v)
This is an optimization to avoid the instanceof checks.MapWriter.EntryWriter
put(CharSequence k, Object v)
Writes a key value into the mapdefault MapWriter.EntryWriter
put(CharSequence k, Object v, BiPredicate<CharSequence,Object> p)
default MapWriter.EntryWriter
putIfNotNull(CharSequence k, Object v)
default MapWriter.EntryWriter
putIfNotNull(CharSequence k, Supplier<Object> v)
default MapWriter.EntryWriter
putNoEx(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
-
putIfNotNull
default MapWriter.EntryWriter putIfNotNull(CharSequence k, Supplier<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()
-
-