public class MmappedRegions extends SharedCloseableImpl
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MmappedRegions.Region | 
| static class  | MmappedRegions.Tidier | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | MAX_SEGMENT_SIZEIn a perfect world, MAX_SEGMENT_SIZE would be final, but we need to test with a smaller size | 
| Modifier and Type | Method and Description | 
|---|---|
| void | closeQuietly() | 
| static MmappedRegions | empty(ChannelProxy channel) | 
| void | extend(long length) | 
| MmappedRegions.Region | floor(long position) | 
| boolean | isEmpty() | 
| boolean | isValid(ChannelProxy channel) | 
| static MmappedRegions | map(ChannelProxy channel,
   CompressionMetadata metadata) | 
| static MmappedRegions | map(ChannelProxy channel,
   long length) | 
| MmappedRegions | sharedCopy() | 
addTo, close, close, isCleanedUppublic static int MAX_SEGMENT_SIZE
public static MmappedRegions empty(ChannelProxy channel)
public static MmappedRegions map(ChannelProxy channel, CompressionMetadata metadata)
channel - file to map. the MmappedRegions instance will hold shared copy of given channel.metadata - public static MmappedRegions map(ChannelProxy channel, long length)
public MmappedRegions sharedCopy()
public void extend(long length)
public boolean isValid(ChannelProxy channel)
public boolean isEmpty()
public MmappedRegions.Region floor(long position)
public void closeQuietly()
Copyright © 2018 The Apache Software Foundation