Interface ILinearFill
-
- All Known Implementing Classes:
DoubleLinearFill,FloatLinearFill,IdentityLinearFill,IntLinearFill,LinearFill,LongLinearFill
public interface ILinearFill
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.iotdb.tsfile.read.common.block.column.Columnfill(org.apache.iotdb.tsfile.read.common.block.column.TimeColumn timeColumn, org.apache.iotdb.tsfile.read.common.block.column.Column valueColumn, long currentRowIndex)Before we call this method, we need to make sure the nextValue has been prepared or noMoreNext has been set to truebooleanneedPrepareForNext(long rowIndex, org.apache.iotdb.tsfile.read.common.block.column.Column valueColumn)booleanprepareForNext(long startRowIndex, long endRowIndex, org.apache.iotdb.tsfile.read.common.block.column.TimeColumn nextTimeColumn, org.apache.iotdb.tsfile.read.common.block.column.Column nextValueColumn)
-
-
-
Method Detail
-
fill
org.apache.iotdb.tsfile.read.common.block.column.Column fill(org.apache.iotdb.tsfile.read.common.block.column.TimeColumn timeColumn, org.apache.iotdb.tsfile.read.common.block.column.Column valueColumn, long currentRowIndex)Before we call this method, we need to make sure the nextValue has been prepared or noMoreNext has been set to true- Parameters:
timeColumn- TimeColumn of valueColumnvalueColumn- valueColumn that need to be filledcurrentRowIndex- current row index for start time in timeColumn- Returns:
- Value Column that has been filled
-
needPrepareForNext
boolean needPrepareForNext(long rowIndex, org.apache.iotdb.tsfile.read.common.block.column.Column valueColumn)- Parameters:
rowIndex- row index for end time of current valueColumn that need to be filledvalueColumn- valueColumn that need to be filled- Returns:
- true if valueColumn can't be filled using current information, and we need to get next TsBlock and then call prepareForNext. false if valueColumn can be filled using current information, and we can directly call fill() function
-
prepareForNext
boolean prepareForNext(long startRowIndex, long endRowIndex, org.apache.iotdb.tsfile.read.common.block.column.TimeColumn nextTimeColumn, org.apache.iotdb.tsfile.read.common.block.column.Column nextValueColumn)- Parameters:
startRowIndex- row index for start time of nextValueColumnendRowIndex- row index for end time of current valueColumn that need to be fillednextTimeColumn- TimeColumn of next TsBlocknextValueColumn- Value Column of next TsBlock- Returns:
- true if we get enough information to fill current column, and we can stop getting next TsBlock and calling prepareForNext. false if we still don't get enough information to fill current column, and still need to keep getting next TsBlock and then call prepareForNext
-
-