CCC Docs
    Preparing search index...

    Class UdtConfig

    Configuration class for UDT instances. This class provides a structured way to handle UDT configuration parameters and includes factory methods for creating instances from configuration-like objects.

    // Create configuration with executor
    const config = new UdtConfig(ssriExecutor);

    // Create configuration with both executor and filter
    const config = new UdtConfig(
    ssriExecutor,
    ccc.ClientIndexerSearchKeyFilter.from({
    script: udtScript,
    outputDataLenRange: [16, 32]
    })
    );

    // Create from configuration-like object
    const config = UdtConfig.from({
    executor: ssriExecutor,
    filter: { script: udtScript, outputDataLenRange: [16, "0xffffffff"] }
    });
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    executor?: Executor

    Optional SSRI executor for advanced UDT operations

    Optional search filter for finding UDT cells

    Methods

    • Creates a UdtConfig instance from a configuration-like object. This factory method provides a convenient way to create UdtConfig instances from plain objects, automatically converting filter-like objects to proper ClientIndexerSearchKeyFilter instances.

      Parameters

      • configLike: UdtConfigLike

        Configuration-like object containing executor and/or filter

      Returns UdtConfig

      A new UdtConfig instance with the specified configuration

      // Create from object with executor only
      const config = UdtConfig.from({ executor: ssriExecutor });

      // Create from object with filter only
      const config = UdtConfig.from({
      filter: {
      script: udtScript,
      outputDataLenRange: [16, "0xffffffff"]
      }
      });

      // Create from object with both
      const config = UdtConfig.from({
      executor: ssriExecutor,
      filter: { script: udtScript, outputDataLenRange: [16, 32] }
      });