Interface StatisticsView

All Known Implementing Classes:
GraphSnapshot

public interface StatisticsView
Read-only view into the cost-based optimizer (CBO) statistics stored within the Impulse Binary Snapshot.
  • Method Details

    • getEstimatedOutDegreePercentile

      int getEstimatedOutDegreePercentile(int relationId, double percentile)
      Parameters:
      relationId - The internal relation ID.
      percentile - The percentile (0.0 to 1.0), e.g. 0.99 for P99.
      Returns:
      The estimated out-degree at the given percentile, or -1 if missing.
    • getEstimatedDomainCount

      long getEstimatedDomainCount(int domainId)
      Parameters:
      domainId - The internal domain ID.
      Returns:
      The estimated distinct node count, or -1 if missing.
    • getRawStatisticJson

      String getRawStatisticJson(String metadataKey)
      Returns the full JSON metadata string for a given key, if the caller needs to perform custom parsing for Equi-Depth histograms or Heavy Hitters.
      Parameters:
      metadataKey - The specific metadata key (e.g. "stats.out_degree.1").
      Returns:
      The JSON string, or null if not present.