Module org.elasticsearch.server
Package org.elasticsearch.index.engine
Interface LiveVersionMapArchive
public interface LiveVersionMapArchive
Keeps track of the old map of a LiveVersionMap that gets evacuated on a refresh
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Archive the old map evacuated due to a refreshget
(org.apache.lucene.util.BytesRef uid) Look up the given uid in the archivelong
Returns the min delete timestamp across all archived maps.default long
Returns the total memory usage if the Archive.default long
Returns how much memory could be freed up by creating a new commit and issuing a new unpromotable refresh.default long
Returns how much memory will be freed once the current ongoing unpromotable refresh is finished.default boolean
isUnsafe()
Returns whether the archive has seen an unsafe old map (passed viaafterRefresh(org.elasticsearch.index.engine.LiveVersionMap.VersionLookup)
) which has not yet been refreshed on the unpromotable shards.
-
Field Details
-
NOOP_ARCHIVE
-
-
Method Details
-
afterRefresh
Archive the old map evacuated due to a refresh- Parameters:
old
- is the old map that is evacuated on a refresh
-
get
Look up the given uid in the archive -
getMinDeleteTimestamp
long getMinDeleteTimestamp()Returns the min delete timestamp across all archived maps. -
isUnsafe
default boolean isUnsafe()Returns whether the archive has seen an unsafe old map (passed viaafterRefresh(org.elasticsearch.index.engine.LiveVersionMap.VersionLookup)
) which has not yet been refreshed on the unpromotable shards. -
getRamBytesUsed
default long getRamBytesUsed()Returns the total memory usage if the Archive. -
getReclaimableRamBytes
default long getReclaimableRamBytes()Returns how much memory could be freed up by creating a new commit and issuing a new unpromotable refresh. -
getRefreshingRamBytes
default long getRefreshingRamBytes()Returns how much memory will be freed once the current ongoing unpromotable refresh is finished.
-