Package org.apache.solr.common
Interface NavigableObject
-
- All Known Subinterfaces:
MapWriter
,ReflectMapWriter
,SimpleMap<T>
- All Known Implementing Classes:
AliasesApi.CreateAliasResponse
,AliasesApi.DeleteAliasResponse
,AliasesApi.GetAliasByNameResponse
,AliasesApi.GetAliasesResponse
,AliasPropertiesApi.CreateOrUpdateAliasPropertyResponse
,AliasPropertiesApi.DeleteAliasPropertyResponse
,AliasPropertiesApi.GetAliasPropertyResponse
,AliasPropertiesApi.GetAllAliasPropertiesResponse
,AliasPropertiesApi.UpdateAliasPropertiesResponse
,AnalysisResponseBase
,AppendedSolrParams
,BackupCollectionPayload
,CloudSolrClient.RouteResponse
,ClusterApi.BalanceReplicasResponse
,ClusterApi.MigrateReplicasResponse
,ClusterPropertiesApi.CreateOrUpdateClusterPropertyResponse
,ClusterPropertiesApi.CreateOrUpdateNestedClusterPropertyResponse
,ClusterPropertiesApi.DeleteClusterPropertyResponse
,ClusterPropertiesApi.GetClusterPropertyResponse
,ClusterPropertiesApi.ListClusterPropertiesResponse
,ClusterPropPayload
,ClusterPropPayload.Cluster
,ClusterPropPayload.CollectionDefaults
,ClusterPropPayload.Defaults
,ClusterState
,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.InstallShard
,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
,CollectionBackupsApi.CreateCollectionBackupResponse
,CollectionBackupsApi.DeleteMultipleBackupsByRecencyResponse
,CollectionBackupsApi.DeleteSingleBackupByIdResponse
,CollectionBackupsApi.GarbageCollectUnusedBackupFilesResponse
,CollectionBackupsApi.ListBackupsAtLocationResponse
,CollectionBackupsApi.RestoreCollectionResponse
,CollectionPropertiesApi.CreateOrUpdateCollectionPropertyResponse
,CollectionPropertiesApi.DeleteCollectionPropertyResponse
,CollectionsApi.BalanceShardUniqueResponse
,CollectionsApi.CreateCollectionResponse
,CollectionsApi.DeleteCollectionResponse
,CollectionsApi.GetCollectionStatusResponse
,CollectionsApi.ListCollectionsResponse
,CollectionsApi.ReloadCollectionResponse
,CollectionsApi.RenameCollectionResponse
,CollectionSnapshotsApi.CreateCollectionSnapshotResponse
,CollectionSnapshotsApi.DeleteCollectionSnapshotResponse
,CollectionSnapshotsApi.ListSnapshotsResponse
,ConditionalKeyMapWriter
,ConditionalMapWriter
,ConfigSetAdminResponse
,ConfigSetAdminResponse.List
,ConfigsetsApi.CloneExistingConfigSetResponse
,ConfigsetsApi.DeleteConfigSetResponse
,ConfigsetsApi.ListConfigSetResponse
,ConfigsetsApi.UploadConfigSetFileResponse
,ConfigsetsApi.UploadConfigSetResponse
,CoreAdminResponse
,CoreBackupsApi.CreateBackupResponse
,CoresApi.InstallCoreDataResponse
,CoresApi.MergeIndexesResponse
,CoresApi.ReloadCoreResponse
,CoresApi.RenameCoreResponse
,CoresApi.RestoreCoreResponse
,CoresApi.SwapCoresResponse
,CoresApi.UnloadCoreResponse
,CoreSnapshotsApi.CreateSnapshotResponse
,CoreSnapshotsApi.DeleteSnapshotResponse
,CoreSnapshotsApi.ListSnapshots1Response
,CreateCorePayload
,CreateShardPayload
,DefaultSolrParams
,DelegationTokenResponse
,DelegationTokenResponse.Cancel
,DelegationTokenResponse.Get
,DelegationTokenResponse.Renew
,DeleteBasicAuthUserPayload
,DocCollection
,DocumentAnalysisResponse
,FieldAnalysisResponse
,FileStoreApi.DeleteFileResponse
,FileStoreApi.FetchFileResponse
,FileStoreApi.GetFileResponse
,FileStoreApi.GetMetadataResponse
,FileStoreApi.SyncFileResponse
,FileStoreApi.UploadFileResponse
,HealthCheckResponse
,InputStreamResponse
,JacksonParsingResponse
,LinkedHashMapWriter
,LoggingApi.FetchLocalLogMessagesResponse
,LoggingApi.ListAllLoggersAndLevelsResponse
,LoggingApi.ModifyLocalLogLevelResponse
,LoggingApi.SetMessageThresholdResponse
,LukeResponse
,MapSolrParams
,MapWriterMap
,MigrateDocsPayload
,ModifiableSolrParams
,ModifyCollectionPayload
,MoveReplicaPayload
,MultiMapSolrParams
,NamedList
,NodeApi.DeleteNodeResponse
,NodeApi.GetCommandStatusResponse
,NodeApi.GetPublicKeyResponse
,NodeApi.ReplaceNodeResponse
,OverseerOperationPayload
,PackagePayload.AddVersion
,PackagePayload.DelVersion
,Pair
,PerReplicaStates
,PerReplicaStates.State
,PluginMeta
,PrepareCoreRecoveryPayload
,QueryingApi.JsonQueryResponse
,QueryingApi.QueryResponse
,QueryResponse
,RateLimiterPayload
,RebalanceLeadersPayload
,RejoinLeaderElectionPayload
,Replica
,ReplicaPropertiesApi.AddReplicaPropertyResponse
,ReplicaPropertiesApi.DeleteReplicaPropertyResponse
,ReplicasApi.CreateReplicaResponse
,ReplicasApi.DeleteReplicaByNameResponse
,ReplicasApi.DeleteReplicasByCountAllShardsResponse
,ReplicasApi.DeleteReplicasByCountResponse
,ReplicationApi.FetchFile1Response
,ReplicationApi.FetchFileListResponse
,ReplicationApi.FetchIndexVersionResponse
,ReplicationBackupsApi.CreateBackup1Response
,RequestApplyCoreUpdatesPayload
,RequestBufferUpdatesPayload
,RequestCoreRecoveryPayload
,RequestSyncShardPayload
,RequiredSolrParams
,RoutingRule
,SchemaApi.GetDynamicFieldInfoResponse
,SchemaApi.GetFieldInfoResponse
,SchemaApi.GetFieldTypeInfoResponse
,SchemaApi.GetSchemaInfoResponse
,SchemaApi.GetSchemaNameResponse
,SchemaApi.GetSchemaSimilarityResponse
,SchemaApi.GetSchemaUniqueKeyResponse
,SchemaApi.GetSchemaVersionResponse
,SchemaApi.GetSchemaZkVersionResponse
,SchemaApi.ListCopyFieldsResponse
,SchemaApi.ListDynamicFieldsResponse
,SchemaApi.ListSchemaFieldsResponse
,SchemaApi.ListSchemaFieldTypesResponse
,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
,SegmentsApi.GetSegmentDataResponse
,SetRuleBasedAuthPermissionPayload
,ShardsApi.CreateShardResponse
,ShardsApi.DeleteShardResponse
,ShardsApi.ForceShardLeaderResponse
,ShardsApi.InstallShardDataResponse
,ShardsApi.SyncShardResponse
,ShardTerms
,SimpleOrderedMap
,SimpleSolrResponse
,Slice
,SolrDocument
,SolrDocumentBase
,SolrDocumentList
,SolrInputDocument
,SolrParams
,SolrPingResponse
,SolrQuery
,SolrResponse
,SolrResponseBase
,SplitShardPayload
,UpdateResponse
,UpdateRuleBasedAuthPermissionPayload
,Utils.DelegateReflectWriter
,V2Request
,V2Response
,ValidatingJsonMap
,WrappedSimpleMap
,ZkNodeProps
,ZookeeperReadApi.ListNodesResponse
,ZookeeperReadApi.ReadNodeResponse
public interface NavigableObject
This class contains helper methods for navigating deeply nested Objects. Keep in mind that it may be expensive depending on the underlying implementation. Each level needs an extra lookup and the lookup may be as expensive as O(log(n)) to O(n) depending on the underlying impl
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
_forEachEntry(String path, BiConsumer fun)
Iterate through the entries of a navigable Object at a certain pathdefault void
_forEachEntry(BiConsumer fun)
Iterate through each entry in this objectdefault void
_forEachEntry(List<String> path, BiConsumer fun)
Iterate through the entries of a navigable Object at a certain pathdefault Object
_get(String path)
Get a child object value using json path.default Object
_get(String path, Object def)
Deprecated.default Object
_get(List<String> path, Object def)
Get a child object value using json pathdefault String
_getStr(String path)
get the value as a String.default String
_getStr(String path, String def)
Deprecated.default String
_getStr(List<String> path, String def)
default int
_size()
static NavigableObject
wrap(Object obj)
Casts or wraps the argument into a NavigableObject if possible, never returning null.
-
-
-
Method Detail
-
_get
default Object _get(String path)
Get a child object value using json path. This usually ends up in String split operations use a list of strings where performance is important- Parameters:
path
- the full path to that object such as a/b/c[4]/d etc- Returns:
- the found value or default
-
_get
@Deprecated default Object _get(String path, Object def)
Deprecated.
-
_getStr
default String _getStr(String path)
get the value as a String. useful in tests- Parameters:
path
- the full path
-
_getStr
@Deprecated default String _getStr(String path, String def)
Deprecated.
-
_forEachEntry
default void _forEachEntry(String path, BiConsumer fun)
Iterate through the entries of a navigable Object at a certain path- Parameters:
path
- the json path
-
_forEachEntry
default void _forEachEntry(List<String> path, BiConsumer fun)
Iterate through the entries of a navigable Object at a certain path- Parameters:
path
- the json path
-
_forEachEntry
default void _forEachEntry(BiConsumer fun)
Iterate through each entry in this object
-
_get
default Object _get(List<String> path, Object def)
Get a child object value using json path- Parameters:
path
- the full path to that object such as ["a","b","c[4]","d"] etcdef
- the default- Returns:
- the found value or default
-
_size
default int _size()
-
wrap
static NavigableObject wrap(Object obj)
Casts or wraps the argument into a NavigableObject if possible, never returning null.
-
-