public class AlterTierRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterTier
.
Alters properties of an exisiting tier to facilitate resource management.
To disable watermark-based eviction, set both HIGH_WATERMARK
and LOW_WATERMARK
to 100.
Modifier and Type | Class and Description |
---|---|
static class |
AlterTierRequest.Options
A set of string constants for the
AlterTierRequest parameter
options . |
Constructor and Description |
---|
AlterTierRequest()
Constructs an AlterTierRequest object with default parameters.
|
AlterTierRequest(String name,
Map<String,String> options)
Constructs an AlterTierRequest object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getName()
Name of the tier to be altered.
|
Map<String,String> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
AlterTierRequest |
setName(String name)
Name of the tier to be altered.
|
AlterTierRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public AlterTierRequest()
public AlterTierRequest(String name, Map<String,String> options)
name
- Name of the tier to be altered. Must be an existing tier
group name.options
- Optional parameters.
CAPACITY
: Maximum size
in bytes this tier may hold at once.
HIGH_WATERMARK
:
Threshold of usage of this tier's resource that
once exceeded, will trigger watermark-based
eviction from this tier. The minimum allowed
value is '0'. The maximum allowed value is
'100'.
LOW_WATERMARK
:
Threshold of resource usage that once fallen
below after crossing the HIGH_WATERMARK
, will
cease watermark-based eviction from this tier.
The minimum allowed value is '0'. The maximum
allowed value is '100'.
WAIT_TIMEOUT
:
Timeout in seconds for reading from or writing
to this resource. Applies to cold storage tiers
only.
PERSIST
: If TRUE
the system configuration will
be written to disk upon successful application
of this request. This will commit the changes
from this request and any additional in-memory
modifications.
Supported values:
The default value is TRUE
.
RANK
: Apply the requested
change only to a specific rank. The minimum
allowed value is '0'. The maximum allowed value
is '10000'.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getName()
name
.public AlterTierRequest setName(String name)
name
- The new value for name
.this
to mimic the builder pattern.public Map<String,String> getOptions()
CAPACITY
: Maximum size in bytes this
tier may hold at once.
HIGH_WATERMARK
: Threshold of
usage of this tier's resource that once exceeded, will trigger
watermark-based eviction from this tier. The minimum allowed
value is '0'. The maximum allowed value is '100'.
LOW_WATERMARK
: Threshold of
resource usage that once fallen below after crossing the HIGH_WATERMARK
, will cease
watermark-based eviction from this tier. The minimum allowed
value is '0'. The maximum allowed value is '100'.
WAIT_TIMEOUT
: Timeout in seconds
for reading from or writing to this resource. Applies to cold
storage tiers only.
PERSIST
: If TRUE
the system configuration will be written to disk upon successful
application of this request. This will commit the changes from
this request and any additional in-memory modifications.
Supported values:
The default value is TRUE
.
RANK
: Apply the requested change only to a
specific rank. The minimum allowed value is '0'. The maximum
allowed value is '10000'.
Map
.options
.public AlterTierRequest setOptions(Map<String,String> options)
CAPACITY
: Maximum size in bytes this
tier may hold at once.
HIGH_WATERMARK
: Threshold of
usage of this tier's resource that once exceeded, will trigger
watermark-based eviction from this tier. The minimum allowed
value is '0'. The maximum allowed value is '100'.
LOW_WATERMARK
: Threshold of
resource usage that once fallen below after crossing the HIGH_WATERMARK
, will cease
watermark-based eviction from this tier. The minimum allowed
value is '0'. The maximum allowed value is '100'.
WAIT_TIMEOUT
: Timeout in seconds
for reading from or writing to this resource. Applies to cold
storage tiers only.
PERSIST
: If TRUE
the system configuration will be written to disk upon successful
application of this request. This will commit the changes from
this request and any additional in-memory modifications.
Supported values:
The default value is TRUE
.
RANK
: Apply the requested change only to a
specific rank. The minimum allowed value is '0'. The maximum
allowed value is '10000'.
Map
.options
- The new value for options
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.