Package com.qfs.column
Interface IColumn<K>
-
- Type Parameters:
K- the type of elements stored in this column
- All Superinterfaces:
IArray,IArrayReader,IArrayWriter,IMemoryMonitored,IWritableArray
- All Known Subinterfaces:
IColumnInteger
- All Known Implementing Classes:
AChunkedColumn,AColumnStore.ColumnView,AColumnStore.CompositeColumnView,AReplicatedColumn,ChunkedColumn,ColumnBoolean,ColumnInteger,ColumnLong,ColumnPositiveInteger,LazyChunkedColumn,LazyChunkedColumnWithAggregation,LazyChunkedCompositeColumn,ReplicatedColumn,ReplicatedColumnDecorateArray,TombstoneColumn
public interface IColumn<K> extends IWritableArray
A column is awritable arrayof elements that all have the same type.It can be
expandedto any capacity.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intensureCapacity(int capacity)Ensures that this column is large enough to store at least the requested number of elements.intgetCapacity()Returns the current capacity of this column.intgrowCapacity(int capacity)Ensures that this column is large enough to store at least the requested number of elements.Kread(int position)Reads a value at some index in an array.-
Methods inherited from interface com.qfs.chunk.IArrayReader
isNull, readBoolean, readDouble, readFloat, readInt, readLong, readVector
-
Methods inherited from interface com.qfs.chunk.IArrayWriter
addDouble, addFloat, addInt, addLong, write, writeBoolean, writeDouble, writeFloat, writeInt, writeLong
-
Methods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
Methods inherited from interface com.qfs.chunk.IWritableArray
createArrayCursor
-
-
-
-
Method Detail
-
read
K read(int position)
Description copied from interface:IArrayReaderReads a value at some index in an array.- Specified by:
readin interfaceIArrayReader- Parameters:
position- 0-based index in an array- Returns:
- the data stored at that position in the array
-
getCapacity
int getCapacity()
Returns the current capacity of this column.The capacity is the number of elements that can be stored in this column.
- Returns:
- the current capacity of this column
-
ensureCapacity
int ensureCapacity(int capacity)
Ensures that this column is large enough to store at least the requested number of elements.This method will conservatively expand this column and allocate the minimum amount of space necessary to store the required number of elements.
- Parameters:
capacity- the target number of elements that should be stored in this column- Returns:
- the actual capacity of this column after this method has been executed
-
growCapacity
int growCapacity(int capacity)
Ensures that this column is large enough to store at least the requested number of elements.This method will aggressively expand this column and at least double the current capacity if it is not large enough.
- Parameters:
capacity- the target number of elements that should be stored in this column- Returns:
- the actual capacity of this column after this method has been executed
-
-