public class AlterTierRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterTier(AlterTierRequest)
.
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
Optional parameters.
|
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() |
Map<String,String> |
getOptions() |
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) |
AlterTierRequest |
setOptions(Map<String,String> options) |
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.
LOW_WATERMARK
: Threshold of resource usage that, once
fallen below after crossing the high_watermark
,
will cease watermark-based eviction from this tier.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getName()
public AlterTierRequest setName(String name)
name
- Name of the tier to be altered. Must be an existing tier
group 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.
LOW_WATERMARK
: Threshold of resource usage that, once fallen
below after crossing the high_watermark
, will cease
watermark-based eviction from this tier.
Map
.public AlterTierRequest setOptions(Map<String,String> options)
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.
LOW_WATERMARK
: Threshold of resource usage that, once
fallen below after crossing the high_watermark
,
will cease watermark-based eviction from this tier.
Map
.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 © 2020. All rights reserved.