Package tech.ytsaurus.core.operations
Class OperationContext
- java.lang.Object
-
- tech.ytsaurus.core.operations.OperationContext
-
public class OperationContext extends java.lang.Object
This class is used when iterating over table rows in operations.
-
-
Constructor Summary
Constructors Constructor Description OperationContext()
OperationContext(boolean setTableIndex, boolean setRowIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getRowIndex()
long
getTableIndex()
boolean
isSettingRowIndex()
Whether it is necessary to set the attribute with the row index in the row node.boolean
isSettingTableIndex()
Whether it is necessary to set the attribute with the table index in the row node.void
setReturnPrevIndexes(boolean returnPrevIndexes)
void
setRowIndex(long rowIndex)
For saving rowIndex of the next row.void
setTableIndex(long tableIndex)
For saving tableIndex of the next row.java.lang.String
toString()
OperationContext
withSettingIndices(boolean setTableIndex, boolean setRowIndex)
-
-
-
Method Detail
-
setReturnPrevIndexes
public void setReturnPrevIndexes(boolean returnPrevIndexes)
-
withSettingIndices
public OperationContext withSettingIndices(boolean setTableIndex, boolean setRowIndex)
-
getTableIndex
public long getTableIndex()
-
getRowIndex
public long getRowIndex()
-
setTableIndex
public void setTableIndex(long tableIndex)
For saving tableIndex of the next row. prevTableIndex saves because in some cases we read the next row for the future.
-
setRowIndex
public void setRowIndex(long rowIndex)
For saving rowIndex of the next row. prevRowIndex saves because in some cases we read the next row for the future.
-
isSettingTableIndex
public boolean isSettingTableIndex()
Whether it is necessary to set the attribute with the table index in the row node.
-
isSettingRowIndex
public boolean isSettingRowIndex()
Whether it is necessary to set the attribute with the row index in the row node.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-