@Namespace(value="arrow::io") @Properties(inherit=arrow.class) public class CacheOptions extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static double |
kDefaultIdealBandwidthUtilizationFrac |
static long |
kDefaultMaxIdealRequestSizeMib |
| Constructor and Description |
|---|
CacheOptions()
Default native constructor.
|
CacheOptions(long size)
Native array allocator.
|
CacheOptions(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheOptions |
Defaults() |
boolean |
equals(CacheOptions other) |
CacheOptions |
getPointer(long i) |
long |
hole_size_limit()
/brief The maximum distance in bytes between two consecutive
ranges; beyond this value, ranges are not combined
|
CacheOptions |
hole_size_limit(long setter) |
static double |
kDefaultIdealBandwidthUtilizationFrac() |
static long |
kDefaultMaxIdealRequestSizeMib() |
static CacheOptions |
MakeFromNetworkMetrics(long time_to_first_byte_millis,
long transfer_bandwidth_mib_per_sec) |
static CacheOptions |
MakeFromNetworkMetrics(long time_to_first_byte_millis,
long transfer_bandwidth_mib_per_sec,
double ideal_bandwidth_utilization_frac,
long max_ideal_request_size_mib)
\brief Construct CacheOptions from network storage metrics (e.g.
|
CacheOptions |
position(long position) |
long |
range_size_limit()
/brief The maximum size in bytes of a combined range; if
combining two consecutive ranges would produce a range of a
size greater than this, they are not combined
|
CacheOptions |
range_size_limit(long setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic static final double kDefaultIdealBandwidthUtilizationFrac
public static final long kDefaultMaxIdealRequestSizeMib
public CacheOptions()
public CacheOptions(long size)
Pointer.position(long).public CacheOptions(Pointer p)
Pointer(Pointer).public CacheOptions position(long position)
public CacheOptions getPointer(long i)
getPointer in class Pointer@MemberGetter public static double kDefaultIdealBandwidthUtilizationFrac()
@MemberGetter @Cast(value="const int64_t") public static long kDefaultMaxIdealRequestSizeMib()
@Cast(value="int64_t") public long hole_size_limit()
public CacheOptions hole_size_limit(long setter)
@Cast(value="int64_t") public long range_size_limit()
public CacheOptions range_size_limit(long setter)
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef CacheOptions other)
@ByVal public static CacheOptions MakeFromNetworkMetrics(@Cast(value="int64_t") long time_to_first_byte_millis, @Cast(value="int64_t") long transfer_bandwidth_mib_per_sec, double ideal_bandwidth_utilization_frac, @Cast(value="int64_t") long max_ideal_request_size_mib)
time_to_first_byte_millis - [in] Seek-time or Time-To-First-Byte (TTFB) in
milliseconds, also called call setup latency of a new S3 request.
The value is a positive integer.transfer_bandwidth_mib_per_sec - [in] Data transfer Bandwidth (BW) in MiB/sec.
The value is a positive integer.ideal_bandwidth_utilization_frac - [in] Transfer bandwidth utilization fraction
(per connection) to maximize the net data load.
The value is a positive double precision number less than 1.max_ideal_request_size_mib - [in] The maximum single data request size (in MiB)
to maximize the net data load.
The value is a positive integer.@ByVal public static CacheOptions MakeFromNetworkMetrics(@Cast(value="int64_t") long time_to_first_byte_millis, @Cast(value="int64_t") long transfer_bandwidth_mib_per_sec)
@ByVal public static CacheOptions Defaults()
Copyright © 2021. All rights reserved.