org.apache.accumulo.proxy.thrift
public class WriterOptions extends Object implements org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
WriterOptions._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
long |
latencyMs |
long |
maxMemory |
static Map<WriterOptions._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
threads |
long |
timeoutMs |
Constructor and Description |
---|
WriterOptions() |
WriterOptions(long maxMemory,
long latencyMs,
long timeoutMs,
int threads) |
WriterOptions(WriterOptions other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(WriterOptions other) |
WriterOptions |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(WriterOptions that) |
WriterOptions._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(WriterOptions._Fields field) |
long |
getLatencyMs() |
long |
getMaxMemory() |
int |
getThreads() |
long |
getTimeoutMs() |
int |
hashCode() |
boolean |
isSet(WriterOptions._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetLatencyMs()
Returns true if field latencyMs is set (has been assigned a value) and false otherwise
|
boolean |
isSetMaxMemory()
Returns true if field maxMemory is set (has been assigned a value) and false otherwise
|
boolean |
isSetThreads()
Returns true if field threads is set (has been assigned a value) and false otherwise
|
boolean |
isSetTimeoutMs()
Returns true if field timeoutMs is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(WriterOptions._Fields field,
Object value) |
WriterOptions |
setLatencyMs(long latencyMs) |
void |
setLatencyMsIsSet(boolean value) |
WriterOptions |
setMaxMemory(long maxMemory) |
void |
setMaxMemoryIsSet(boolean value) |
WriterOptions |
setThreads(int threads) |
void |
setThreadsIsSet(boolean value) |
WriterOptions |
setTimeoutMs(long timeoutMs) |
void |
setTimeoutMsIsSet(boolean value) |
String |
toString() |
void |
unsetLatencyMs() |
void |
unsetMaxMemory() |
void |
unsetThreads() |
void |
unsetTimeoutMs() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public long maxMemory
public long latencyMs
public long timeoutMs
public int threads
public static final Map<WriterOptions._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public WriterOptions()
public WriterOptions(long maxMemory, long latencyMs, long timeoutMs, int threads)
public WriterOptions(WriterOptions other)
public WriterOptions deepCopy()
deepCopy
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
public long getMaxMemory()
public WriterOptions setMaxMemory(long maxMemory)
public void unsetMaxMemory()
public boolean isSetMaxMemory()
public void setMaxMemoryIsSet(boolean value)
public long getLatencyMs()
public WriterOptions setLatencyMs(long latencyMs)
public void unsetLatencyMs()
public boolean isSetLatencyMs()
public void setLatencyMsIsSet(boolean value)
public long getTimeoutMs()
public WriterOptions setTimeoutMs(long timeoutMs)
public void unsetTimeoutMs()
public boolean isSetTimeoutMs()
public void setTimeoutMsIsSet(boolean value)
public int getThreads()
public WriterOptions setThreads(int threads)
public void unsetThreads()
public boolean isSetThreads()
public void setThreadsIsSet(boolean value)
public void setFieldValue(WriterOptions._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
public Object getFieldValue(WriterOptions._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
public boolean isSet(WriterOptions._Fields field)
isSet
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
public boolean equals(WriterOptions that)
public int compareTo(WriterOptions other)
compareTo
in interface Comparable<WriterOptions>
public WriterOptions._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.