FieldSchema

class FieldSchema(val name: String)

A schema of the field in the current document. With every new document this schema is reset. As the document fields are processed, we update the schema with options encountered in this document. Once the processing for the document is done, we compare the built schema of the current document with the corresponding FieldInfo (FieldInfo is built on a first document in the segment where we encounter this field). If there is inconsistency, we raise an error. This ensures that a field has the same data structures across all documents.

Constructors

Link copied to clipboard
constructor(name: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Enum<*>> assertSame(label: String, expected: T, given: T)
fun assertSame(label: String, expected: Boolean, given: Boolean)
fun assertSame(label: String, expected: Int, given: Int)
Link copied to clipboard
Link copied to clipboard
fun raiseNotSame(label: String, expected: Any, given: Any)
Link copied to clipboard
fun reset(doc: Int)
Link copied to clipboard
fun setDocValues(newDocValuesType: DocValuesType, newDocValuesSkipIndex: DocValuesSkipIndexType)
Link copied to clipboard
fun setIndexOptions(newIndexOptions: IndexOptions, newOmitNorms: Boolean, newStoreTermVector: Boolean)
Link copied to clipboard
fun setPoints(dimensionCount: Int, indexDimensionCount: Int, numBytes: Int)
Link copied to clipboard
fun setVectors(encoding: VectorEncoding, similarityFunction: VectorSimilarityFunction, dimension: Int)
Link copied to clipboard