Class FlatFieldVectorsWriter<T>

  • Type Parameters:
    T - an array type; the type of vectors to be written
    All Implemented Interfaces:
    Accountable

    public abstract class FlatFieldVectorsWriter<T>
    extends KnnFieldVectorsWriter<T>
    Vectors' writer for a field
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • FlatFieldVectorsWriter

        public FlatFieldVectorsWriter()
    • Method Detail

      • getVectors

        public abstract List<T> getVectors()
        Returns:
        a list of vectors to be written
      • getDocsWithFieldSet

        public abstract DocsWithFieldSet getDocsWithFieldSet()
        Returns:
        the docsWithFieldSet for the field writer
      • finish

        public abstract void finish()
                             throws IOException
        indicates that this writer is done and no new vectors are allowed to be added
        Throws:
        IOException - if an I/O error occurs
      • isFinished

        public abstract boolean isFinished()
        Returns:
        true if the writer is done and no new vectors are allowed to be added