Class GCPSpannerInsertOpDispenser

All Implemented Interfaces:
OpDispenser<GCPSpannerBaseOp<?,?>>, OpResultTracker, NBComponent, NBComponentAdvisors, NBComponentEvents, NBComponentMetrics, NBComponentProps, NBComponentServices, NBComponentTimeline, NBProviderSearch, NBTokenWords, NBLabeledElement, AutoCloseable, LongFunction<GCPSpannerBaseOp<?,?>>

public class GCPSpannerInsertOpDispenser extends GCPSpannerBaseOpDispenser<GCPSpannerInsertOp,com.google.cloud.Timestamp>
This class is responsible for dispensing GCP Spanner insert vector operations. It extends the GCPSpannerBaseOpDispenser and provides the necessary implementation to create and configure GCPSpannerInsertVectorOp instances.
  • Constructor Details

    • GCPSpannerInsertOpDispenser

      public GCPSpannerInsertOpDispenser(GCPSpannerDriverAdapter adapter, ParsedOp op, LongFunction<String> targetFunction)
      Constructs a new GCPSpannerInsertVectorOpDispenser.
      Parameters:
      adapter - the GCP Spanner driver adapter
      op - the parsed operation
      targetFunction - a function that provides the target table name based on a long value
  • Method Details

    • getOp

      public GCPSpannerInsertOp getOp(long cycle)
      Returns a GCPSpannerInsertVectorOp instance configured with the provided value.
      Parameters:
      cycle - the value used to configure the operation
      Returns:
      a configured GCPSpannerInsertVectorOp instance