Class GCPSpannerBaseOpDispenser<OP extends GCPSpannerBaseOp,RESULT>

All Implemented Interfaces:
OpDispenser<GCPSpannerBaseOp<?,?>>, OpResultTracker, NBComponent, NBComponentAdvisors, NBComponentEvents, NBComponentMetrics, NBComponentProps, NBComponentServices, NBComponentTimeline, NBProviderSearch, NBTokenWords, NBLabeledElement, AutoCloseable, LongFunction<GCPSpannerBaseOp<?,?>>
Direct Known Subclasses:
GCPSpannerCreateDatabaseDdlOpDispenser, GCPSpannerDropDatabaseDdlOpDispenser, GCPSpannerExecuteDmlOpDispenser, GCPSpannerInsertOpDispenser, GCPSpannerUpdateDatabaseDdlOpDispenser

public abstract class GCPSpannerBaseOpDispenser<OP extends GCPSpannerBaseOp,RESULT> extends BaseOpDispenser<GCPSpannerBaseOp<?,?>,GCPSpannerSpace>
Abstract base class for GCP Spanner operation dispensers. This class extends the BaseOpDispenser and provides common functionality for creating GCP Spanner operations.
  • Field Details

    • targetFunction

      protected final LongFunction<String> targetFunction
      A function that provides the target string based on a long input.
    • spaceFunction

      protected final LongFunction<GCPSpannerSpace> spaceFunction
      A function that provides the GCP Spanner space based on a long input.
  • Constructor Details

    • GCPSpannerBaseOpDispenser

      protected GCPSpannerBaseOpDispenser(GCPSpannerDriverAdapter adapter, ParsedOp op, LongFunction<String> targetFunction)
      Constructs a new GCPSpannerBaseOpDispenser.
      Parameters:
      adapter - the driver adapter for GCP Spanner operations
      op - the parsed operation
      targetFunction - a function that provides the target string