Package org.apache.solr.common
Interface MapWriter
-
- All Superinterfaces:
MapSerializable
,NavigableObject
- All Known Subinterfaces:
ReflectMapWriter
,SimpleMap<T>
- All Known Implementing Classes:
AddReplicaPayload
,AddReplicaPropertyPayload
,AnalysisResponseBase
,AppendedSolrParams
,BackupCollectionPayload
,BalanceShardUniquePayload
,BiJoinStream
,CalculatorStream
,CartesianProductStream
,CellStream
,CloudSolrClient.RouteResponse
,CloudSolrStream
,ClusterPropPayload
,ClusterPropPayload.Cluster
,ClusterPropPayload.CollectionDefaults
,ClusterPropPayload.Defaults
,CollectionAdminRequest
,CollectionAdminRequest.AddReplica
,CollectionAdminRequest.AddReplicaProp
,CollectionAdminRequest.AddRole
,CollectionAdminRequest.AsyncCollectionAdminRequest
,CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
,CollectionAdminRequest.AsyncShardSpecificAdminRequest
,CollectionAdminRequest.Backup
,CollectionAdminRequest.BalanceShardUnique
,CollectionAdminRequest.ClusterProp
,CollectionAdminRequest.ClusterStatus
,CollectionAdminRequest.CollectionAdminRoleRequest
,CollectionAdminRequest.CollectionProp
,CollectionAdminRequest.ColStatus
,CollectionAdminRequest.Create
,CollectionAdminRequest.CreateAlias
,CollectionAdminRequest.CreateCategoryRoutedAlias
,CollectionAdminRequest.CreateShard
,CollectionAdminRequest.CreateSnapshot
,CollectionAdminRequest.CreateTimeRoutedAlias
,CollectionAdminRequest.Delete
,CollectionAdminRequest.DeleteAlias
,CollectionAdminRequest.DeleteBackup
,CollectionAdminRequest.DeleteNode
,CollectionAdminRequest.DeleteReplica
,CollectionAdminRequest.DeleteReplicaProp
,CollectionAdminRequest.DeleteShard
,CollectionAdminRequest.DeleteSnapshot
,CollectionAdminRequest.DeleteStatus
,CollectionAdminRequest.DimensionalRoutedAlias
,CollectionAdminRequest.ForceLeader
,CollectionAdminRequest.List
,CollectionAdminRequest.ListAliases
,CollectionAdminRequest.ListBackup
,CollectionAdminRequest.ListSnapshots
,CollectionAdminRequest.Migrate
,CollectionAdminRequest.MockCollTask
,CollectionAdminRequest.Modify
,CollectionAdminRequest.MoveReplica
,CollectionAdminRequest.OverseerStatus
,CollectionAdminRequest.RebalanceLeaders
,CollectionAdminRequest.ReindexCollection
,CollectionAdminRequest.Reload
,CollectionAdminRequest.RemoveRole
,CollectionAdminRequest.Rename
,CollectionAdminRequest.ReplaceNode
,CollectionAdminRequest.RequestApiDistributedProcessing
,CollectionAdminRequest.RequestApiDistributedProcessingResponse
,CollectionAdminRequest.RequestStatus
,CollectionAdminRequest.RequestStatusResponse
,CollectionAdminRequest.Restore
,CollectionAdminRequest.SetAliasProperty
,CollectionAdminRequest.ShardSpecificAdminRequest
,CollectionAdminRequest.SplitShard
,CollectionAdminResponse
,CommitStream
,ComplementStream
,ConditionalKeyMapWriter
,ConditionalMapWriter
,ConfigSetAdminResponse
,ConfigSetAdminResponse.List
,CoreAdminResponse
,CreateAliasPayload
,CreateAliasPayload.AliasRouter
,CreateConfigPayload
,CreateCorePayload
,CreatePayload
,CreateShardPayload
,CsvStream
,DaemonStream
,DbscanEvaluator.ClusterTuple
,DeepRandomStream
,DefaultSolrParams
,DelegationTokenResponse
,DelegationTokenResponse.Cancel
,DelegationTokenResponse.Get
,DelegationTokenResponse.Renew
,DeleteAliasPayload
,DeleteBackupPayload
,DeleteReplicaPropertyPayload
,DeleteStream
,DocumentAnalysisResponse
,DrillStream
,EchoStream
,EvalStream
,ExceptionStream
,ExecutorStream
,Facet2DStream
,FacetStream
,FeaturesSelectionStream
,FetchStream
,FieldAnalysisResponse
,ForceLeaderPayload
,GatherNodesStream
,GetStream
,HashJoinStream
,HashRollupStream
,HavingStream
,HealthCheckResponse
,InnerJoinStream
,IntersectStream
,InvokeClassPayload
,JDBCStream
,JoinStream
,KmeansEvaluator.ClusterTuple
,KnnRegressionEvaluator.KnnRegressionTuple
,KnnStream
,Lang.LocalInputStream
,LeftOuterJoinStream
,LetStream
,LinkedHashMapWriter
,ListBackupPayload
,ListStream
,LoessEvaluator.LoessRegressionTuple
,LukeResponse
,MapSolrParams
,MapWriterMap
,MergeStream
,MigrateDocsPayload
,ModelStream
,ModifiableSolrParams
,ModifyCollectionPayload
,MoveReplicaPayload
,MultiMapSolrParams
,NamedList
,NoOpStream
,NullStream
,OLSRegressionEvaluator.MultipleRegressionTuple
,OuterHashJoinStream
,OverseerOperationPayload
,Package.AddVersion
,Package.DelVersion
,Pair
,ParallelListStream
,ParallelStream
,PerReplicaStates
,PerReplicaStates.State
,PlotStream
,PluginMeta
,PriorityStream
,PushBackStream
,QueryResponse
,RandomFacadeStream
,RandomStream
,RankStream
,RateLimiterPayload
,RebalanceLeadersPayload
,ReducerStream
,RegressionEvaluator.RegressionTuple
,RejoinLeaderElectionPayload
,ReloadCollectionPayload
,Replica
,RequiredSolrParams
,RestoreCollectionPayload
,RollupStream
,SchemaResponse
,SchemaResponse.CopyFieldsResponse
,SchemaResponse.DynamicFieldResponse
,SchemaResponse.DynamicFieldsResponse
,SchemaResponse.FieldResponse
,SchemaResponse.FieldsResponse
,SchemaResponse.FieldTypeResponse
,SchemaResponse.FieldTypesResponse
,SchemaResponse.GlobalSimilarityResponse
,SchemaResponse.SchemaNameResponse
,SchemaResponse.SchemaVersionResponse
,SchemaResponse.UniqueKeyResponse
,SchemaResponse.UpdateResponse
,ScoreNodesStream
,SearchFacadeStream
,SearchStream
,SelectStream
,SetAliasPropertyPayload
,SetCollectionPropertyPayload
,ShardTerms
,ShortestPathStream
,ShuffleStream
,SignificantTermsStream
,SimpleOrderedMap
,SimpleSolrResponse
,SimpleZkMap
,SolrClientNodeStateProvider
,SolrDocument
,SolrDocumentBase
,SolrInputDocument
,SolrParams
,SolrPingResponse
,SolrQuery
,SolrResponse
,SolrResponseBase
,SolrStream
,SortStream
,SplitShardPayload
,SqlStream
,StatsStream
,SyncShardPayload
,TextLogitStream
,TextLogitStream.TermsStream
,TimeSeriesStream
,TopicStream
,TsvStream
,Tuple
,TupleStream
,TupStream
,UniqueStream
,UpdateResponse
,UpdateStream
,V2Request
,V2Response
,VersionedData
,WrappedSimpleMap
,ZplotStream
public interface MapWriter extends MapSerializable, NavigableObject
Use this class to push all entries of a Map into an output. This avoids creating map instances and is supposed to be memory efficient. If the entries are primitives, unnecessary boxing is also avoided.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MapWriter.EntryWriter
An interface to push one entry at a time to the output.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
jsonStr()
default Map<String,Object>
toMap(Map<String,Object> map)
Use the passed map to minimize object creation.void
writeMap(MapWriter.EntryWriter ew)
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
-
-
-
Method Detail
-
jsonStr
default String jsonStr()
-
toMap
default Map<String,Object> toMap(Map<String,Object> map)
Description copied from interface:MapSerializable
Use the passed map to minimize object creation. Do not keep a reference to the passed map and reuse it. it may be reused by the framework- Specified by:
toMap
in interfaceMapSerializable
-
writeMap
void writeMap(MapWriter.EntryWriter ew) throws IOException
- Throws:
IOException
-
-