org.apache.accumulo.proxy.thrift
Class WriterOptions

java.lang.Object
  extended by org.apache.accumulo.proxy.thrift.WriterOptions
All Implemented Interfaces:
Serializable, Cloneable, Comparable<WriterOptions>, org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

public class WriterOptions
extends Object
implements org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class WriterOptions._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long latencyMs
           
 long maxMemory
           
static Map<WriterOptions._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 int threads
           
 long timeoutMs
           
 
Constructor Summary
WriterOptions()
           
WriterOptions(long maxMemory, long latencyMs, long timeoutMs, int threads)
           
WriterOptions(WriterOptions other)
          Performs a deep copy on other.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

maxMemory

public long maxMemory

latencyMs

public long latencyMs

timeoutMs

public long timeoutMs

threads

public int threads

metaDataMap

public static final Map<WriterOptions._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

WriterOptions

public WriterOptions()

WriterOptions

public WriterOptions(long maxMemory,
                     long latencyMs,
                     long timeoutMs,
                     int threads)

WriterOptions

public WriterOptions(WriterOptions other)
Performs a deep copy on other.

Method Detail

deepCopy

public WriterOptions deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

getMaxMemory

public long getMaxMemory()

setMaxMemory

public WriterOptions setMaxMemory(long maxMemory)

unsetMaxMemory

public void unsetMaxMemory()

isSetMaxMemory

public boolean isSetMaxMemory()
Returns true if field maxMemory is set (has been assigned a value) and false otherwise


setMaxMemoryIsSet

public void setMaxMemoryIsSet(boolean value)

getLatencyMs

public long getLatencyMs()

setLatencyMs

public WriterOptions setLatencyMs(long latencyMs)

unsetLatencyMs

public void unsetLatencyMs()

isSetLatencyMs

public boolean isSetLatencyMs()
Returns true if field latencyMs is set (has been assigned a value) and false otherwise


setLatencyMsIsSet

public void setLatencyMsIsSet(boolean value)

getTimeoutMs

public long getTimeoutMs()

setTimeoutMs

public WriterOptions setTimeoutMs(long timeoutMs)

unsetTimeoutMs

public void unsetTimeoutMs()

isSetTimeoutMs

public boolean isSetTimeoutMs()
Returns true if field timeoutMs is set (has been assigned a value) and false otherwise


setTimeoutMsIsSet

public void setTimeoutMsIsSet(boolean value)

getThreads

public int getThreads()

setThreads

public WriterOptions setThreads(int threads)

unsetThreads

public void unsetThreads()

isSetThreads

public boolean isSetThreads()
Returns true if field threads is set (has been assigned a value) and false otherwise


setThreadsIsSet

public void setThreadsIsSet(boolean value)

setFieldValue

public void setFieldValue(WriterOptions._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

getFieldValue

public Object getFieldValue(WriterOptions._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

isSet

public boolean isSet(WriterOptions._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(WriterOptions that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(WriterOptions other)
Specified by:
compareTo in interface Comparable<WriterOptions>

fieldForId

public WriterOptions._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<WriterOptions,WriterOptions._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.