public class Point extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGICAL_NAME |
static String |
WKB_FIELD |
static String |
X_FIELD |
static String |
Y_FIELD |
| Constructor and Description |
|---|
Point() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder()
Returns a
SchemaBuilder for a Uuid field. |
static org.apache.kafka.connect.data.Struct |
createValue(org.apache.kafka.connect.data.Schema pointSchema,
double x,
double y)
Creates a value for this schema using 2 given coordinates.
|
static org.apache.kafka.connect.data.Struct |
createValue(org.apache.kafka.connect.data.Schema pointSchema,
double x,
double y,
byte[] wkb)
Create a value for this schema using 2 given coordinates and WKB as the original representation of the coordinate (Ref: DBZ-208)
|
static org.apache.kafka.connect.data.Schema |
schema()
Returns a
SchemaBuilder for a Point, with all other default Schema settings. |
public static final String LOGICAL_NAME
public static final String X_FIELD
public static final String Y_FIELD
public static final String WKB_FIELD
public static org.apache.kafka.connect.data.SchemaBuilder builder()
SchemaBuilder for a Uuid field. You can use the resulting SchemaBuilder
to set additional schema settings such as required/optional, default value, and documentation.public static org.apache.kafka.connect.data.Schema schema()
SchemaBuilder for a Point, with all other default Schema settings.builder()public static org.apache.kafka.connect.data.Struct createValue(org.apache.kafka.connect.data.Schema pointSchema,
double x,
double y)
pointSchema - a Schema instance which represents a point; may not be nullx - the X coordinate of the point; may not be nully - the Y coordinate of the point; may not be nullStruct which represents a Connect value for this schema; never nullpublic static org.apache.kafka.connect.data.Struct createValue(org.apache.kafka.connect.data.Schema pointSchema,
double x,
double y,
byte[] wkb)
pointSchema - a Schema instance which represents a point; may not be nullx - the X coordinate of the point; may not be nully - the Y coordinate of the point; may not be nullwkb - the original Well-Known binary representation of the coordinateStruct which represents a Connect value for this schema; never nullCopyright © 2017 JBoss by Red Hat. All rights reserved.