Package org.apache.solr.common
Interface MapWriter
-
- All Superinterfaces:
MapSerializable
,NavigableObject
- All Known Subinterfaces:
ReflectMapWriter
,SimpleMap<T>
- All Known Implementing Classes:
AddReplicaPayload
,AnalysisResponseBase
,AppendedSolrParams
,BackupCollectionPayload
,BalanceShardUniquePayload
,CloudSolrClient.RouteResponse
,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
,ConditionalKeyMapWriter
,ConditionalMapWriter
,ConfigSetAdminResponse
,ConfigSetAdminResponse.List
,CoreAdminResponse
,CreateAliasPayload
,CreateAliasPayload.AliasRouter
,CreateConfigPayload
,CreateCorePayload
,CreatePayload
,CreateShardPayload
,DefaultSolrParams
,DelegationTokenResponse
,DelegationTokenResponse.Cancel
,DelegationTokenResponse.Get
,DelegationTokenResponse.Renew
,DeleteAliasPayload
,DeleteBackupPayload
,DeleteBasicAuthUserPayload
,DocCollection
,DocumentAnalysisResponse
,FieldAnalysisResponse
,ForceLeaderPayload
,HealthCheckResponse
,LinkedHashMapWriter
,ListBackupPayload
,LukeResponse
,MapSolrParams
,MapWriterMap
,MigrateDocsPayload
,ModifiableSolrParams
,ModifyCollectionPayload
,MoveReplicaPayload
,MultiMapSolrParams
,NamedList
,OverseerOperationPayload
,PackagePayload.AddVersion
,PackagePayload.DelVersion
,Pair
,PerReplicaStates
,PerReplicaStates.State
,PluginMeta
,PrepareCoreRecoveryPayload
,QueryResponse
,RateLimiterPayload
,RebalanceLeadersPayload
,RejoinLeaderElectionPayload
,ReloadCollectionPayload
,RenameCollectionPayload
,Replica
,RequestApplyCoreUpdatesPayload
,RequestBufferUpdatesPayload
,RequestCoreRecoveryPayload
,RequestSyncShardPayload
,RequiredSolrParams
,RestoreCollectionPayload
,RoutingRule
,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
,SetAliasPropertyPayload
,SetCollectionPropertyPayload
,SetRuleBasedAuthPermissionPayload
,ShardTerms
,SimpleOrderedMap
,SimpleSolrResponse
,Slice
,SolrDocument
,SolrDocumentBase
,SolrInputDocument
,SolrParams
,SolrPingResponse
,SolrQuery
,SolrResponse
,SolrResponseBase
,SplitShardPayload
,SyncShardPayload
,UpdateResponse
,UpdateRuleBasedAuthPermissionPayload
,V2Request
,V2Response
,WrappedSimpleMap
,ZkNodeProps
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 MapWriter
append(MapWriter another)
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
-
-
-
-
Field Detail
-
EMPTY
static final MapWriter EMPTY
-
-
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
-
-