Skip to content

Commit 3aa4e73

Browse files
author
chengyitian
committed
AJ-778: fix iotanyvector in table getString display logic;
1 parent fd02581 commit 3aa4e73

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/com/xxdb/data/BasicIotAnyVector.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,18 @@ protected BasicIotAnyVector(ExtendedDataInput in) throws IOException {
5858
}
5959
}
6060

61-
public Entity get(int index){
61+
public Entity get(int index) {
6262
BasicInt dataType = (BasicInt) indexsDataType.get(index);
6363
return subVector.get(dataType.getInt());
6464
}
6565

66+
public String getString(int index) {
67+
BasicInt curDataType = (BasicInt) indexsDataType.get(index);
68+
BasicInt curIndex = (BasicInt) indexs.get(index);
69+
70+
return ((Vector) subVector.get(curDataType.getInt())).get(curIndex.getInt()).getString();
71+
}
72+
6673
public Vector getSubVector(int[] indices){
6774
throw new RuntimeException("BasicIotAnyVector.getSubVector not supported.");
6875
}

0 commit comments

Comments
 (0)