Builder

class Builder(globalFieldNumbers: FieldInfos.FieldNumbers)

Constructors

Link copied to clipboard
constructor(globalFieldNumbers: FieldInfos.FieldNumbers)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Adds the provided FieldInfo to this Builder if this field doesn't exist in this Builder. Also adds a new field with its schema options to the global FieldNumbers if the field doesn't exist globally in the index. The field number is reused if possible for consistent field numbers across segments.

fun add(fi: FieldInfo, dvGen: Long): FieldInfo

Adds the provided FieldInfo with the provided dvGen to this Builder if this field doesn't exist in this Builder. Also adds a new field with its schema options to the global FieldNumbers if the field doesn't exist globally in the index. The field number is reused if possible for consistent field numbers across segments.

Link copied to clipboard
fun fieldInfo(fieldName: String): FieldInfo?
Link copied to clipboard