Package app.babylon.table.column
Class ColumnByte.Renamed
java.lang.Object
app.babylon.table.column.ColumnByte.Renamed
- All Implemented Interfaces:
Column,ColumnByte
- Enclosing interface:
ColumnByte
-
Nested Class Summary
Nested classes/interfaces inherited from interface app.babylon.table.column.Column
Column.KeyedValue, Column.Operator, Column.TypeNested classes/interfaces inherited from interface app.babylon.table.column.ColumnByte
ColumnByte.Builder, ColumnByte.KeyedByte, ColumnByte.Renamed -
Field Summary
Fields inherited from interface app.babylon.table.column.ColumnByte
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbyteget(int i) Returns the byte value at the supplied row.getName()Returns the logical column name.booleanisAllSet()Indicates whether every row in the column contains a value.booleanIndicates whether the column represents the same value for every row.Unset values are part of the value pattern, so an all-unset column is constant, while a mix of unset and set values is not constant unless the implementation explicitly defines that pattern as constant.booleanIndicates whether no row in the column contains a value.booleanisSet(int i) Indicates whether the value at the supplied row is present.booleanisXls()Indicates whether the byte values match the legacy XLS file signature.booleanisXlsx()Indicates whether the byte values match the XLSX file signature.intsize()Returns the number of rows in the column.byte[]toArray(byte[] x) Copies the values into the provided array, allocating a new array when necessary.Returns a projected view of this column using the supplied row mapping.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getName
Description copied from interface:ColumnReturns the logical column name. -
size
public int size()Description copied from interface:ColumnReturns the number of rows in the column. -
get
public byte get(int i) Description copied from interface:ColumnByteReturns the byte value at the supplied row.- Specified by:
getin interfaceColumnByte- Parameters:
i- the zero-based row index- Returns:
- the byte value
-
isSet
public boolean isSet(int i) Description copied from interface:ColumnIndicates whether the value at the supplied row is present. -
toArray
public byte[] toArray(byte[] x) Description copied from interface:ColumnByteCopies the values into the provided array, allocating a new array when necessary.- Specified by:
toArrayin interfaceColumnByte- Parameters:
x- the destination array, ornull- Returns:
- an array containing the column values
-
isConstant
public boolean isConstant()Description copied from interface:ColumnIndicates whether the column represents the same value for every row.Unset values are part of the value pattern, so an all-unset column is constant, while a mix of unset and set values is not constant unless the implementation explicitly defines that pattern as constant.- Specified by:
isConstantin interfaceColumn- Returns:
truewhen the column is constant
-
isAllSet
public boolean isAllSet()Description copied from interface:ColumnIndicates whether every row in the column contains a value. -
isNoneSet
public boolean isNoneSet()Description copied from interface:ColumnIndicates whether no row in the column contains a value. -
isXls
public boolean isXls()Description copied from interface:ColumnByteIndicates whether the byte values match the legacy XLS file signature.- Specified by:
isXlsin interfaceColumnByte- Returns:
truewhen the column contents look like XLS bytes
-
isXlsx
public boolean isXlsx()Description copied from interface:ColumnByteIndicates whether the byte values match the XLSX file signature.- Specified by:
isXlsxin interfaceColumnByte- Returns:
truewhen the column contents look like XLSX bytes
-
view
Description copied from interface:ColumnReturns a projected view of this column using the supplied row mapping.
-