# Ntile

class Ntile(val numBuckets: ExpressionWithColumnType<Int>) : WindowFunction<Int>

Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.

## Constructors

Ntile
Link copied to clipboard
constructor(numBuckets: ExpressionWithColumnType<Int>)

## Properties

numBuckets
Link copied to clipboard
val numBuckets: ExpressionWithColumnType<Int>

Returns number of buckets.

## Functions

over
Link copied to clipboard
open override fun over(): WindowFunctionDefinition<Int>

Returns window function definition.

toQueryBuilder
Link copied to clipboard
open override fun toQueryBuilder(queryBuilder: QueryBuilder)

Appends the SQL representation of this function to the specified queryBuilder.