java.lang.Object
org.elasticsearch.nativeaccess.MadviseAdvice
Constants for use with
MappedSegment.madvise(long, long, int).
Values correspond to the POSIX posix_madvise advice constants.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intData will not be needed soon; pages may be freed.static final intDefault access pattern; the OS applies its normal read-ahead and caching policy.static final intRandom access pattern; disables read-ahead.static final intSequential access pattern; aggressive read-ahead.static final intData will be needed soon; bring pages into memory. -
Method Summary
-
Field Details
-
NORMAL
public static final int NORMALDefault access pattern; the OS applies its normal read-ahead and caching policy.- See Also:
-
RANDOM
public static final int RANDOMRandom access pattern; disables read-ahead.- See Also:
-
SEQUENTIAL
public static final int SEQUENTIALSequential access pattern; aggressive read-ahead.- See Also:
-
WILLNEED
public static final int WILLNEEDData will be needed soon; bring pages into memory.- See Also:
-
DONTNEED
public static final int DONTNEEDData will not be needed soon; pages may be freed.- See Also:
-