Class SegmentsApi.GetSegmentData
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<GetSegmentDataResponse>
org.apache.solr.client.solrj.request.SegmentsApi.GetSegmentData
- All Implemented Interfaces:
Serializable
- Enclosing class:
SegmentsApi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GetSegmentDataResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.Indicates which API version this request will makeThe parameters for this request; never null.Parameter keys that are sent via the query stringvoidsetCoreInfo(Boolean coreInfo) voidsetFieldInfo(Boolean fieldInfo) voidsetRawSize(Boolean rawSize) voidsetRawSizeDetails(Boolean rawSizeDetails) voidsetRawSizeSamplingPercent(Float rawSizeSamplingPercent) voidsetRawSizeSummary(Boolean rawSizeSummary) voidsetSizeInfo(Boolean sizeInfo) Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getPreferredNodes, getRequestType, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, requiresCollection, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
GetSegmentData
Create a GetSegmentData request object.- Parameters:
coreName- Path param -
-
-
Method Details
-
setCoreInfo
- Parameters:
coreInfo- Boolean flag to include metadata (e.g. index an data directories, IndexWriter configuration, etc.) about each shard leader's core
-
setFieldInfo
- Parameters:
fieldInfo- Boolean flag to include statistics about the indexed fields present on each shard leader.
-
setRawSize
- Parameters:
rawSize- Boolean flag to include simple estimates of the disk size taken up by each field (e.g. \"id\", \"_version_\") and by each index data structure (e.g. 'storedFields', 'docValues_numeric').
-
setRawSizeSummary
- Parameters:
rawSizeSummary- Boolean flag to include more involved estimates of the disk size taken up by index data structures, on a per-field basis (e.g. how much data does the \"id\" field contribute to 'storedField' index files). More detail than 'rawSize', less detail than 'rawSizeDetails'.
-
setRawSizeDetails
- Parameters:
rawSizeDetails- Boolean flag to include detailed statistics about the disk size taken up by various fields and data structures. More detail than 'rawSize' and 'rawSizeSummary'.
-
setRawSizeSamplingPercent
- Parameters:
rawSizeSamplingPercent- Percentage (between 0 and 100) of data to read when estimating index size and statistics. Defaults to 5.0 (i.e. 5%).
-
setSizeInfo
- Parameters:
sizeInfo- Boolean flag to include information about the largest index files for each Lucene segment.
-
getApiVersion
Description copied from class:SolrRequestIndicates which API version this request will makeDefaults implementation returns 'V1'.
- Overrides:
getApiVersionin classSolrRequest<GetSegmentDataResponse>
-
getParams
Description copied from class:SolrRequestThe parameters for this request; never null. The runtime type may be mutable but modifications may not affect thisSolrRequestinstance, as it may return a new instance here every time. If the subclass specifies the response type asModifiableSolrParams, then one can expect it to change this request. If the subclass has a setter then one can expect this method to return the value set.- Specified by:
getParamsin classSolrRequest<GetSegmentDataResponse>
-
getQueryParams
Description copied from class:SolrRequestParameter keys that are sent via the query string- Overrides:
getQueryParamsin classSolrRequest<GetSegmentDataResponse>
-
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<GetSegmentDataResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
getResponseParser
- Overrides:
getResponseParserin classSolrRequest<GetSegmentDataResponse>- Returns:
- The
ResponseParser
-