Skip to content

Commit 1f312d1

Browse files
author
chengyitian
committed
AJ-753: add 'getScale' method for BasicStringMatrix、BasicShortMatrix;
1 parent e6c0b77 commit 1f312d1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/com/xxdb/data/BasicShortMatrix.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import java.nio.ByteBuffer;
55
import java.nio.ByteOrder;
66
import java.util.List;
7-
87
import com.xxdb.io.ExtendedDataInput;
98
import com.xxdb.io.ExtendedDataOutput;
9+
import com.fasterxml.jackson.annotation.JsonIgnore;
1010

1111
/**
1212
*
@@ -98,4 +98,10 @@ protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOExcept
9898
for(short value : values)
9999
out.writeShort(value);
100100
}
101+
102+
@JsonIgnore
103+
@Override
104+
public int getScale() {
105+
return super.getScale();
106+
}
101107
}

src/com/xxdb/data/BasicStringMatrix.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,10 @@ protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOExcept
109109
for(String value : values)
110110
out.writeString(value);
111111
}
112+
113+
@JsonIgnore
114+
@Override
115+
public int getScale() {
116+
return super.getScale();
117+
}
112118
}

0 commit comments

Comments
 (0)