Interface ScanningAttributeContext

All Superinterfaces:
AttributeContext, AttributeLoaderContext, RowAttributeContext

@PublicApi public interface ScanningAttributeContext extends RowAttributeContext

The context interface for scanning attribute loaders.

See Also:
  • Method Details

    • getDepth

      int getDepth()

      Returns the depth of the row currently being loaded.

      Root elements have depth of 0. Super-root is never loaded with a scanning loader.

      Returns:
      the depth of the row being loaded
    • getPrecedingRow

      @Nullable StructureRow getPrecedingRow()
      Returns the row that immediately precedes this row in the forest. When calculating the very first row, returns null (and not the super-root!)
      Returns:
      preceding row
    • getPrecedingRowDepth

      int getPrecedingRowDepth()

      Returns the depth of the row that immediately precedes this row in the forest. When calculating the very first row, returns -1.

      Root elements have depth of 0. Super-root is never loaded with a scanning loader.

      Returns:
      the depth of the preceding row