Class LoadContext

java.lang.Object
org.apache.iceberg.catalog.LoadContext

public final class LoadContext extends Object
Caller-supplied details about a load request, such as the chain of views that reference the table or view being loaded.

A catalog may use these fields to make authorization, credential-scoping, and auditing decisions. All fields are optional; empty() carries none.

  • Method Details

    • referencedBy

      public List<TableIdentifier> referencedBy()
      Returns the view identifiers that form the reference chain, outermost first.

      For example, if view A references view B which references table C, loading C would have referencedBy = [A, B].

      Returns:
      an unmodifiable list of referencing view identifiers, or an empty list if none
    • builder

      public static LoadContext.Builder builder()
    • empty

      public static LoadContext empty()