public class ColumnMap extends Object
| Modifier and Type | Field and Description |
|---|---|
private Column |
col |
private int |
rowCount |
private RandomAccessInputStream |
stream |
private ArrayList |
values |
| Constructor and Description |
|---|
ColumnMap(Column col,
RandomAccessInputStream stream,
int rowCount) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
getValueList()
Return the list of values in this map's column.
|
Object[] |
getValues()
Return an array of the values in this map's column.
|
boolean |
isFixedMap()
Return whether or not this map represents a fixed-type column.
|
private int |
readBits(int nBytes,
int bits,
int index)
Read a bit-packed integer value.
|
private Object |
readElement(int vectorSize,
int index)
Read the value for this column at the given row index.
|
private void |
setup()
Read the data values for the current column.
|
private ArrayList values
private Column col
private RandomAccessInputStream stream
private int rowCount
public ColumnMap(Column col, RandomAccessInputStream stream, int rowCount)
public ArrayList getValueList()
public Object[] getValues()
public boolean isFixedMap()
private void setup()
throws IOException
IOExceptionprivate Object readElement(int vectorSize, int index) throws IOException
vectorSize - the number of stored bytes for this valueindex - the row indexIOException - if the value could not be readprivate int readBits(int nBytes,
int bits,
int index)
throws IOException
nBytes - the total number of bytes used for all rowsbits - the number of bits to read for the specified rowindex - the row indexIOException - if the value could not be readCopyright © 2016 Open Microscopy Environment