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 SummaryAll 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.EntryWriterputIfNotNull(CharSequence k, Supplier<Object> v)default MapWriter.EntryWriterputNoEx(CharSequence k, Object v)
 
- 
- 
- 
Method Detail- 
putMapWriter.EntryWriter put(CharSequence k, Object v) throws IOException Writes a key value into the map- Parameters:
- k- The key
- v- The value can be any supported object
- Throws:
- IOException
 
 - 
putNoExdefault MapWriter.EntryWriter putNoEx(CharSequence k, Object v) 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, Object v, BiPredicate<CharSequence,Object> p) throws IOException - Throws:
- IOException
 
 - 
putIfNotNulldefault MapWriter.EntryWriter putIfNotNull(CharSequence k, Object v) throws IOException - Throws:
- IOException
 
 - 
putIfNotNulldefault MapWriter.EntryWriter putIfNotNull(CharSequence k, Supplier<Object> v) throws IOException - Throws:
- IOException
 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, int v) throws IOException - Throws:
- IOException
 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, long v) throws IOException - Throws:
- IOException
 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, float v) throws IOException - Throws:
- IOException
 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, double v) throws IOException - Throws:
- IOException
 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, boolean v) throws IOException - Throws:
- IOException
 
 - 
putdefault MapWriter.EntryWriter put(CharSequence k, CharSequence v) throws IOException This is an optimization to avoid the instanceof checks.- Throws:
- IOException
 
 - 
getBiConsumerdefault BiConsumer<CharSequence,Object> getBiConsumer() 
 
- 
 
-