Class

io.projectglow.sql.expressions

PerSampleSummaryStatistics

Related Doc: package expressions

Permalink

case class PerSampleSummaryStatistics(genotypes: Expression, field: Expression, genotypeInfo: Option[GenotypeInfo] = None, mutableAggBufferOffset: Int = 0, inputAggBufferOffset: Int = 0) extends TypedImperativeAggregate[ArrayBuffer[SampleSummaryStatsState]] with ExpectsGenotypeFields with GlowLogging with Product with Serializable

Computes summary statistics (count, min, max, mean, stdev) for a numeric genotype field for each sample in a cohort. The field is determined by the provided StructField. If the field does not exist in the genotype struct, an analysis error will be thrown.

The return type is an array of summary statistics. If sample ids are included in the input, they'll be propagated to the results.

Linear Supertypes
Serializable, Serializable, GlowLogging, LazyLogging, LazyLogging, Logging, ExpectsGenotypeFields, TypedImperativeAggregate[ArrayBuffer[SampleSummaryStatsState]], ImperativeAggregate, CodegenFallback, AggregateFunction, Expression, TreeNode[Expression], Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PerSampleSummaryStatistics
  2. Serializable
  3. Serializable
  4. GlowLogging
  5. LazyLogging
  6. LazyLogging
  7. Logging
  8. ExpectsGenotypeFields
  9. TypedImperativeAggregate
  10. ImperativeAggregate
  11. CodegenFallback
  12. AggregateFunction
  13. Expression
  14. TreeNode
  15. Product
  16. Equals
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PerSampleSummaryStatistics(genotypes: Expression, field: Expression, genotypeInfo: Option[GenotypeInfo] = None, mutableAggBufferOffset: Int = 0, inputAggBufferOffset: Int = 0)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final lazy val aggBufferAttributes: Seq[AttributeReference]

    Permalink
    Definition Classes
    TypedImperativeAggregate → AggregateFunction
  5. final def aggBufferSchema: StructType

    Permalink
    Definition Classes
    TypedImperativeAggregate → AggregateFunction
  6. def apply(number: Int): TreeNode[_]

    Permalink
    Definition Classes
    TreeNode
  7. def argString: String

    Permalink
    Definition Classes
    TreeNode
  8. def asCode: String

    Permalink
    Definition Classes
    TreeNode
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. lazy val canonicalized: Expression

    Permalink
    Definition Classes
    Expression
  11. def checkInputDataTypes(): TypeCheckResult

    Permalink
    Definition Classes
    ExpectsGenotypeFields → Expression
  12. def children: Seq[Expression]

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TreeNode
  13. def childrenResolved: Boolean

    Permalink
    Definition Classes
    Expression
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collect[B](pf: PartialFunction[Expression, B]): Seq[B]

    Permalink
    Definition Classes
    TreeNode
  16. def collectFirst[B](pf: PartialFunction[Expression, B]): Option[B]

    Permalink
    Definition Classes
    TreeNode
  17. def collectLeaves(): Seq[Expression]

    Permalink
    Definition Classes
    TreeNode
  18. lazy val containsChild: Set[TreeNode[_]]

    Permalink
    Definition Classes
    TreeNode
  19. def createAggregationBuffer(): ArrayBuffer[SampleSummaryStatsState]

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TypedImperativeAggregate
  20. def dataType: DataType

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → Expression
  21. def defaultResult: Option[Literal]

    Permalink
    Definition Classes
    AggregateFunction
  22. def deserialize(storageFormat: Array[Byte]): ArrayBuffer[SampleSummaryStatsState]

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TypedImperativeAggregate
  23. lazy val deterministic: Boolean

    Permalink
    Definition Classes
    Expression
  24. def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode

    Permalink
    Attributes
    protected
    Definition Classes
    CodegenFallback → Expression
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def eval(buffer: ArrayBuffer[SampleSummaryStatsState]): Any

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TypedImperativeAggregate
  27. final def eval(buffer: InternalRow): Any

    Permalink
    Definition Classes
    TypedImperativeAggregate → Expression
  28. def fastEquals(other: TreeNode[_]): Boolean

    Permalink
    Definition Classes
    TreeNode
  29. val field: Expression

    Permalink
  30. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. def find(f: (Expression) ⇒ Boolean): Option[Expression]

    Permalink
    Definition Classes
    TreeNode
  32. def flatArguments: Iterator[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    Expression
  33. def flatMap[A](f: (Expression) ⇒ TraversableOnce[A]): Seq[A]

    Permalink
    Definition Classes
    TreeNode
  34. final def foldable: Boolean

    Permalink
    Definition Classes
    AggregateFunction → Expression
  35. def foreach(f: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TreeNode
  36. def foreachUp(f: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TreeNode
  37. def genCode(ctx: CodegenContext): ExprCode

    Permalink
    Definition Classes
    Expression
  38. def generateTreeString(depth: Int, lastChildren: Seq[Boolean], builder: StringBuilder, verbose: Boolean, prefix: String, addSuffix: Boolean): StringBuilder

    Permalink
    Definition Classes
    TreeNode
  39. val genotypeInfo: Option[GenotypeInfo]

    Permalink
  40. val genotypes: Expression

    Permalink
  41. def genotypesExpr: Expression

    Permalink
  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def getGenotypeInfo: GenotypeInfo

    Permalink
    Definition Classes
    ExpectsGenotypeFields
  44. def hashCode(): Int

    Permalink
    Definition Classes
    TreeNode → AnyRef → Any
  45. final def initialize(buffer: InternalRow): Unit

    Permalink
    Definition Classes
    TypedImperativeAggregate → ImperativeAggregate
  46. def innerChildren: Seq[TreeNode[_]]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  47. final lazy val inputAggBufferAttributes: Seq[AttributeReference]

    Permalink
    Definition Classes
    TypedImperativeAggregate → AggregateFunction
  48. val inputAggBufferOffset: Int

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → ImperativeAggregate
  49. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  50. def jsonFields: List[JField]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  51. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging → Logging
  52. def makeCopy(newArgs: Array[AnyRef]): Expression

    Permalink
    Definition Classes
    TreeNode
  53. def map[A](f: (Expression) ⇒ A): Seq[A]

    Permalink
    Definition Classes
    TreeNode
  54. def mapChildren(f: (Expression) ⇒ Expression): Expression

    Permalink
    Definition Classes
    TreeNode
  55. def mapProductIterator[B](f: (Any) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  56. def merge(buffer: ArrayBuffer[SampleSummaryStatsState], input: ArrayBuffer[SampleSummaryStatsState]): ArrayBuffer[SampleSummaryStatsState]

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TypedImperativeAggregate
  57. final def merge(buffer: InternalRow, inputBuffer: InternalRow): Unit

    Permalink
    Definition Classes
    TypedImperativeAggregate → ImperativeAggregate
  58. val mutableAggBufferOffset: Int

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → ImperativeAggregate
  59. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  60. def nodeName: String

    Permalink
    Definition Classes
    TreeNode
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. def nullable: Boolean

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → Expression
  64. def numberedTreeString: String

    Permalink
    Definition Classes
    TreeNode
  65. def optionalGenotypeFields: Seq[StructField]

    Permalink
  66. val origin: Origin

    Permalink
    Definition Classes
    TreeNode
  67. def otherCopyArgs: Seq[AnyRef]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  68. def p(number: Int): Expression

    Permalink
    Definition Classes
    TreeNode
  69. def prettyJson: String

    Permalink
    Definition Classes
    TreeNode
  70. def prettyName: String

    Permalink
    Definition Classes
    Expression
  71. def references: AttributeSet

    Permalink
    Definition Classes
    Expression
  72. def requiredGenotypeFields: Seq[StructField]

    Permalink
  73. def resolveGenotypeInfo(): Expression

    Permalink

    Resolve the required field names into positions within the genotypesExpr element struct.

    Resolve the required field names into positions within the genotypesExpr element struct.

    This function should only be called after a successful type check.

    returns

    A new expression with a defined GenotypeInfo

    Definition Classes
    ExpectsGenotypeFields
  74. lazy val resolved: Boolean

    Permalink
    Definition Classes
    ExpectsGenotypeFields → Expression
  75. def semanticEquals(other: Expression): Boolean

    Permalink
    Definition Classes
    Expression
  76. def semanticHash(): Int

    Permalink
    Definition Classes
    Expression
  77. def serialize(buffer: ArrayBuffer[SampleSummaryStatsState]): Array[Byte]

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TypedImperativeAggregate
  78. final def serializeAggregateBufferInPlace(buffer: InternalRow): Unit

    Permalink
    Definition Classes
    TypedImperativeAggregate
  79. def simpleString: String

    Permalink
    Definition Classes
    Expression → TreeNode
  80. def sql(isDistinct: Boolean): String

    Permalink
    Definition Classes
    AggregateFunction
  81. def sql: String

    Permalink
    Definition Classes
    Expression
  82. def stringArgs: Iterator[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  83. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  84. def toAggString(isDistinct: Boolean): String

    Permalink
    Definition Classes
    AggregateFunction
  85. def toAggregateExpression(isDistinct: Boolean): AggregateExpression

    Permalink
    Definition Classes
    AggregateFunction
  86. def toAggregateExpression(): AggregateExpression

    Permalink
    Definition Classes
    AggregateFunction
  87. def toJSON: String

    Permalink
    Definition Classes
    TreeNode
  88. def toString(): String

    Permalink
    Definition Classes
    Expression → TreeNode → AnyRef → Any
  89. def transform(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  90. def transformDown(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  91. def transformUp(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  92. def treeString(verbose: Boolean, addSuffix: Boolean): String

    Permalink
    Definition Classes
    TreeNode
  93. def treeString: String

    Permalink
    Definition Classes
    TreeNode
  94. def update(buffer: ArrayBuffer[SampleSummaryStatsState], input: InternalRow): ArrayBuffer[SampleSummaryStatsState]

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → TypedImperativeAggregate
  95. final def update(buffer: InternalRow, input: InternalRow): Unit

    Permalink
    Definition Classes
    TypedImperativeAggregate → ImperativeAggregate
  96. final def verboseString: String

    Permalink
    Definition Classes
    Expression → TreeNode
  97. def verboseStringWithSuffix: String

    Permalink
    Definition Classes
    TreeNode
  98. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. def withGenotypeInfo(genotypeInfo: GenotypeInfo): PerSampleSummaryStatistics

    Permalink

    Make a copy of this expression with GenotypeInfo filled in.

    Make a copy of this expression with GenotypeInfo filled in.

    Definition Classes
    PerSampleSummaryStatisticsExpectsGenotypeFields
  102. def withNewChildren(newChildren: Seq[Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  103. def withNewInputAggBufferOffset(newInputAggBufferOffset: Int): PerSampleSummaryStatistics

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → ImperativeAggregate
  104. def withNewMutableAggBufferOffset(newOffset: Int): PerSampleSummaryStatistics

    Permalink
    Definition Classes
    PerSampleSummaryStatistics → ImperativeAggregate

Inherited from Serializable

Inherited from Serializable

Inherited from GlowLogging

Inherited from LazyLogging

Inherited from LazyLogging

Inherited from Logging

Inherited from ExpectsGenotypeFields

Inherited from TypedImperativeAggregate[ArrayBuffer[SampleSummaryStatsState]]

Inherited from ImperativeAggregate

Inherited from CodegenFallback

Inherited from AggregateFunction

Inherited from Expression

Inherited from TreeNode[Expression]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped