public class Geography extends com.facebook.thrift.TUnion<Geography> implements Comparable<Geography>
| Modifier and Type | Field and Description |
|---|---|
static int |
LSVAL |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
static int |
PGVAL |
static int |
PTVAL |
| Constructor and Description |
|---|
Geography() |
Geography(Geography other) |
Geography(int setField,
Object __value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkType(short setField,
Object __value)
Generic implementation using reflection, codegen can override this in a more efficient way.
|
int |
compareTo(Geography other) |
Geography |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Geography other) |
boolean |
equals(Object other) |
protected com.facebook.thrift.protocol.TField |
getFieldDesc(int setField) |
LineString |
getLsVal() |
protected Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
getMetaDataMap() |
Polygon |
getPgVal() |
Point |
getPtVal() |
protected com.facebook.thrift.protocol.TStruct |
getStructDesc() |
int |
hashCode() |
static Geography |
lsVal(LineString __value) |
static Geography |
pgVal(Polygon __value) |
static Geography |
ptVal(Point __value) |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
protected Object |
readValue(com.facebook.thrift.protocol.TProtocol iprot,
com.facebook.thrift.protocol.TField __field)
Implementation should be generated to read the right stuff from the wire based on the field
header.
|
void |
setLsVal(LineString __value) |
void |
setPgVal(Polygon __value) |
void |
setPtVal(Point __value) |
protected void |
writeValue(com.facebook.thrift.protocol.TProtocol oprot,
short setField,
Object __value) |
public static final int PTVAL
public static final int LSVAL
public static final int PGVAL
public Geography()
public Geography(int setField,
Object __value)
public Geography(Geography other)
public Geography deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasedeepCopy in class com.facebook.thrift.TUnion<Geography>public static Geography lsVal(LineString __value)
protected void checkType(short setField,
Object __value)
throws ClassCastException
com.facebook.thrift.TUnioncheckType in class com.facebook.thrift.TUnion<Geography>ClassCastExceptionpublic void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseread in class com.facebook.thrift.TUnion<Geography>iprot - Input protocolcom.facebook.thrift.TExceptionprotected Object readValue(com.facebook.thrift.protocol.TProtocol iprot, com.facebook.thrift.protocol.TField __field) throws com.facebook.thrift.TException
com.facebook.thrift.TUnionreadValue in class com.facebook.thrift.TUnion<Geography>com.facebook.thrift.TExceptionprotected void writeValue(com.facebook.thrift.protocol.TProtocol oprot,
short setField,
Object __value)
throws com.facebook.thrift.TException
writeValue in class com.facebook.thrift.TUnion<Geography>com.facebook.thrift.TExceptionprotected com.facebook.thrift.protocol.TField getFieldDesc(int setField)
getFieldDesc in class com.facebook.thrift.TUnion<Geography>protected com.facebook.thrift.protocol.TStruct getStructDesc()
getStructDesc in class com.facebook.thrift.TUnion<Geography>protected Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> getMetaDataMap()
getMetaDataMap in class com.facebook.thrift.TUnion<Geography>public Point getPtVal()
public void setPtVal(Point __value)
public LineString getLsVal()
public void setLsVal(LineString __value)
public Polygon getPgVal()
public void setPgVal(Polygon __value)
public boolean equals(Geography other)
public int compareTo(Geography other)
compareTo in interface Comparable<Geography>Copyright © 2022. All rights reserved.