public class Session extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Session.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
client_ip |
static int |
CLIENT_IP |
Map<byte[],Value> |
configs |
static int |
CONFIGS |
long |
create_time |
static int |
CREATE_TIME |
HostAddr |
graph_addr |
static int |
GRAPH_ADDR |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
Map<Long,QueryDesc> |
queries |
static int |
QUERIES |
long |
session_id |
static int |
SESSION_ID |
byte[] |
space_name |
static int |
SPACE_NAME |
int |
timezone |
static int |
TIMEZONE |
long |
update_time |
static int |
UPDATE_TIME |
byte[] |
user_name |
static int |
USER_NAME |
| Constructor and Description |
|---|
Session() |
Session(long session_id,
long create_time,
long update_time,
byte[] user_name,
byte[] space_name,
HostAddr graph_addr,
int timezone,
byte[] client_ip,
Map<byte[],Value> configs,
Map<Long,QueryDesc> queries) |
Session(Session other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static Session.Builder |
builder() |
Session |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
byte[] |
getClient_ip() |
Map<byte[],Value> |
getConfigs() |
long |
getCreate_time() |
Object |
getFieldValue(int fieldID) |
HostAddr |
getGraph_addr() |
Map<Long,QueryDesc> |
getQueries() |
long |
getSession_id() |
byte[] |
getSpace_name() |
int |
getTimezone() |
long |
getUpdate_time() |
byte[] |
getUser_name() |
int |
hashCode() |
boolean |
isSetClient_ip() |
boolean |
isSetConfigs() |
boolean |
isSetCreate_time() |
boolean |
isSetGraph_addr() |
boolean |
isSetQueries() |
boolean |
isSetSession_id() |
boolean |
isSetSpace_name() |
boolean |
isSetTimezone() |
boolean |
isSetUpdate_time() |
boolean |
isSetUser_name() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
Session |
setClient_ip(byte[] client_ip) |
void |
setClient_ipIsSet(boolean __value) |
Session |
setConfigs(Map<byte[],Value> configs) |
void |
setConfigsIsSet(boolean __value) |
Session |
setCreate_time(long create_time) |
void |
setCreate_timeIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
Session |
setGraph_addr(HostAddr graph_addr) |
void |
setGraph_addrIsSet(boolean __value) |
Session |
setQueries(Map<Long,QueryDesc> queries) |
void |
setQueriesIsSet(boolean __value) |
Session |
setSession_id(long session_id) |
void |
setSession_idIsSet(boolean __value) |
Session |
setSpace_name(byte[] space_name) |
void |
setSpace_nameIsSet(boolean __value) |
Session |
setTimezone(int timezone) |
void |
setTimezoneIsSet(boolean __value) |
Session |
setUpdate_time(long update_time) |
void |
setUpdate_timeIsSet(boolean __value) |
Session |
setUser_name(byte[] user_name) |
void |
setUser_nameIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetClient_ip() |
void |
unsetConfigs() |
void |
unsetCreate_time() |
void |
unsetGraph_addr() |
void |
unsetQueries() |
void |
unsetSession_id() |
void |
unsetSpace_name() |
void |
unsetTimezone() |
void |
unsetUpdate_time() |
void |
unsetUser_name() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public long session_id
public long create_time
public long update_time
public byte[] user_name
public byte[] space_name
public HostAddr graph_addr
public int timezone
public byte[] client_ip
public static final int SESSION_ID
public static final int CREATE_TIME
public static final int UPDATE_TIME
public static final int USER_NAME
public static final int SPACE_NAME
public static final int GRAPH_ADDR
public static final int TIMEZONE
public static final int CLIENT_IP
public static final int CONFIGS
public static final int QUERIES
public Session()
public Session(long session_id,
long create_time,
long update_time,
byte[] user_name,
byte[] space_name,
HostAddr graph_addr,
int timezone,
byte[] client_ip,
Map<byte[],Value> configs,
Map<Long,QueryDesc> queries)
public Session(Session other)
public static Session.Builder builder()
public Session deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic long getSession_id()
public Session setSession_id(long session_id)
public void unsetSession_id()
public boolean isSetSession_id()
public void setSession_idIsSet(boolean __value)
public long getCreate_time()
public Session setCreate_time(long create_time)
public void unsetCreate_time()
public boolean isSetCreate_time()
public void setCreate_timeIsSet(boolean __value)
public long getUpdate_time()
public Session setUpdate_time(long update_time)
public void unsetUpdate_time()
public boolean isSetUpdate_time()
public void setUpdate_timeIsSet(boolean __value)
public byte[] getUser_name()
public Session setUser_name(byte[] user_name)
public void unsetUser_name()
public boolean isSetUser_name()
public void setUser_nameIsSet(boolean __value)
public byte[] getSpace_name()
public Session setSpace_name(byte[] space_name)
public void unsetSpace_name()
public boolean isSetSpace_name()
public void setSpace_nameIsSet(boolean __value)
public HostAddr getGraph_addr()
public void unsetGraph_addr()
public boolean isSetGraph_addr()
public void setGraph_addrIsSet(boolean __value)
public int getTimezone()
public Session setTimezone(int timezone)
public void unsetTimezone()
public boolean isSetTimezone()
public void setTimezoneIsSet(boolean __value)
public byte[] getClient_ip()
public Session setClient_ip(byte[] client_ip)
public void unsetClient_ip()
public boolean isSetClient_ip()
public void setClient_ipIsSet(boolean __value)
public void unsetConfigs()
public boolean isSetConfigs()
public void setConfigsIsSet(boolean __value)
public void unsetQueries()
public boolean isSetQueries()
public void setQueriesIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.