6 package com.vesoft.nebula.client.storage.data;
8 import com.vesoft.nebula.client.graph.data.DateTimeWrapper;
9 import com.vesoft.nebula.client.graph.data.DateWrapper;
10 import com.vesoft.nebula.client.graph.data.DurationWrapper;
11 import com.vesoft.nebula.client.graph.data.GeographyWrapper;
12 import com.vesoft.nebula.client.graph.data.TimeWrapper;
13 import com.vesoft.nebula.client.graph.data.ValueWrapper;
14 import java.io.Serializable;
15 import java.io.UnsupportedEncodingException;
16 import java.util.List;
19 protected final List<ValueWrapper> values;
20 protected String decodeType =
"utf-8";
26 public BaseTableRow(List<ValueWrapper> values, String decodeType) {
28 this.decodeType = decodeType;
42 return values.get(i) ==
null;
45 public String getString(
int i)
throws UnsupportedEncodingException {
46 return values.get(i).asString();
49 public long getLong(
int i) {
50 return values.get(i).asLong();
53 public boolean getBoolean(
int i) {
54 return values.get(i).asBoolean();
57 public double getDouble(
int i) {
58 return values.get(i).asDouble();
61 public DateWrapper getDate(
int i) {
62 return values.get(i).asDate();
65 public TimeWrapper getTime(
int i) {
66 return values.get(i).asTime();
69 public DateTimeWrapper getDateTime(
int i) {
70 return values.get(i).asDateTime();
73 public GeographyWrapper getGeography(
int i) {
74 return values.get(i).asGeography();
77 public DurationWrapper getDuration(
int i) {
78 return values.get(i).asDuration();
81 public List<ValueWrapper> getValues() {
97 public String
mkString(String start, String sep, String end) {
99 StringBuilder builder =
new StringBuilder();
100 builder.append(start);
102 builder.append(values.get(0));
106 builder.append(values.get(i));
111 return builder.toString();
boolean isNullAt(int i)
check whether the value at position i is null
String mkString(String sep)
Displays all elements of this vertexTableRow in a string using a separator string.
String mkString(String start, String sep, String end)
Displays all elements of this vertexTableRow in a string using start, end, and separator strings.
int size()
number of elements in vertexTableRow