public abstract class AbstractMatrix extends AbstractEntity implements Matrix
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.PARTITION_TYPE| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected static int |
BUF_SIZE |
protected int |
columns |
protected int |
rows |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMatrix(ExtendedDataInput in) |
protected |
AbstractMatrix(int rows,
int columns) |
| Modifier and Type | Method and Description |
|---|---|
int |
columns() |
Scalar |
getColumnLabel(int index) |
Vector |
getColumnLabels() |
Entity.DATA_FORM |
getDataForm() |
protected int |
getIndex(int row,
int column) |
Scalar |
getRowLabel(int index) |
Vector |
getRowLabels() |
String |
getString() |
boolean |
hasColumnLabel() |
boolean |
hasRowLabel() |
protected abstract void |
readMatrixFromInputStream(int rows,
int columns,
ExtendedDataInput in) |
int |
rows() |
void |
setColumnLabels(Vector vector) |
void |
setRowLabels(Vector vector) |
void |
write(ExtendedDataOutput out) |
protected abstract void |
writeVectorToOutputStream(ExtendedDataOutput out) |
getDataCategory, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getElementClass, isNull, setNullgetDataCategory, getDataType, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVector, typeToCategoryprotected int rows
protected int columns
protected static final int BUF_SIZE
protected byte[] buf
protected AbstractMatrix(int rows,
int columns)
protected AbstractMatrix(ExtendedDataInput in) throws IOException
IOExceptionprotected abstract void readMatrixFromInputStream(int rows,
int columns,
ExtendedDataInput in)
throws IOException
IOExceptionprotected abstract void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
IOExceptionprotected int getIndex(int row,
int column)
public boolean hasRowLabel()
hasRowLabel in interface Matrixpublic boolean hasColumnLabel()
hasColumnLabel in interface Matrixpublic Scalar getRowLabel(int index)
getRowLabel in interface Matrixpublic Scalar getColumnLabel(int index)
getColumnLabel in interface Matrixpublic Vector getRowLabels()
getRowLabels in interface Matrixpublic void setRowLabels(Vector vector)
public Vector getColumnLabels()
getColumnLabels in interface Matrixpublic void setColumnLabels(Vector vector)
public Entity.DATA_FORM getDataForm()
getDataForm in interface EntitygetDataForm in class AbstractEntitypublic void write(ExtendedDataOutput out) throws IOException
write in interface EntityIOExceptionCopyright © 2019 DolphinDB. All rights reserved.