Package org.apache.solr.common
Interface NavigableObject
- 
- All Known Subinterfaces:
- MapWriter,- 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,- ValidatingJsonMap,- WrappedSimpleMap,- ZkNodeProps
 
 public interface NavigableObjectThis 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 SummaryAll Methods Instance Methods Default 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, Object def)Get a child object value using json path.default Object_get(List<String> path, Object def)Get a child object value using json pathdefault String_getStr(String path, String def)get the value as a String.default String_getStr(List<String> path, String def)default int_size()
 
- 
- 
- 
Method Detail- 
_getdefault Object _get(String path, Object def) 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
- def- the default
- Returns:
- the found value or default
 
 - 
_getStrdefault String _getStr(String path, String def) get the value as a String. useful in tests- Parameters:
- path- the full path
- def- default value
 
 - 
_forEachEntrydefault void _forEachEntry(String path, BiConsumer fun) Iterate through the entries of a navigable Object at a certain path- Parameters:
- path- the json path
 
 - 
_forEachEntrydefault void _forEachEntry(List<String> path, BiConsumer fun) Iterate through the entries of a navigable Object at a certain path- Parameters:
- path- the json path
 
 - 
_forEachEntrydefault void _forEachEntry(BiConsumer fun) Iterate through each entry in this object
 - 
_getdefault 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"] etc
- def- the default
- Returns:
- the found value or default
 
 - 
_sizedefault int _size() 
 
- 
 
-