/** * @return a snapshot of the memory mapped regions. The snapshot can * only use existing regions, it cannot create new ones. */ public MmappedRegions sharedCopy() { return new MmappedRegions(this); }
/** * @return a snapshot of the memory mapped regions. The snapshot can * only use existing regions, it cannot create new ones. */ public MmappedRegions sharedCopy() { return new MmappedRegions(this); }
public static MmappedRegions empty(ChannelProxy channel) { return new MmappedRegions(channel, null, 0); }
/** * @return a snapshot of the memory mapped regions. The snapshot can * only use existing regions, it cannot create new ones. */ public MmappedRegions sharedCopy() { return new MmappedRegions(this); }
public static MmappedRegions empty(ChannelProxy channel) { return new MmappedRegions(channel, null, 0); }
public static MmappedRegions empty(ChannelProxy channel) { return new MmappedRegions(channel, null, 0); }
/** * @param channel file to map. the MmappedRegions instance will hold shared copy of given channel. * @param metadata * @return new instance */ public static MmappedRegions map(ChannelProxy channel, CompressionMetadata metadata) { if (metadata == null) throw new IllegalArgumentException("metadata cannot be null"); return new MmappedRegions(channel, metadata, 0); }
public static MmappedRegions map(ChannelProxy channel, long length) { if (length <= 0) throw new IllegalArgumentException("Length must be positive"); return new MmappedRegions(channel, null, length); }
public static MmappedRegions map(ChannelProxy channel, long length) { if (length <= 0) throw new IllegalArgumentException("Length must be positive"); return new MmappedRegions(channel, null, length); }
/** * @param channel file to map. the MmappedRegions instance will hold shared copy of given channel. * @param metadata * @return new instance */ public static MmappedRegions map(ChannelProxy channel, CompressionMetadata metadata) { if (metadata == null) throw new IllegalArgumentException("metadata cannot be null"); return new MmappedRegions(channel, metadata, 0); }
public static MmappedRegions map(ChannelProxy channel, long length) { if (length <= 0) throw new IllegalArgumentException("Length must be positive"); return new MmappedRegions(channel, null, length); }
/** * @param channel file to map. the MmappedRegions instance will hold shared copy of given channel. * @param metadata * @return new instance */ public static MmappedRegions map(ChannelProxy channel, CompressionMetadata metadata) { if (metadata == null) throw new IllegalArgumentException("metadata cannot be null"); return new MmappedRegions(channel, metadata, 0); }