Vectors' writer for a field
<init>()getDocsWithFieldSet() · also: get_docs_with_field_setReturns: the docsWithFieldSet for the field writer
finish()indicates that this writer is done and no new vectors are allowed to be added
| IOException | if an I/O error occurs | |
isFinished() · also: is_finishedReturns: true if the writer is done and no new vectors are allowed to be added
getVectors() · also: get_vectorsReturns: a list of vectors to be written
| field | type | note |
|---|---|---|
| NULL_ACCOUNTABLE | Accountable | An accountable that always returns 0 |
Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
ramBytesUsed()Return the memory usage of this object in bytes. Negative values are illegal.
addValue(int docID, T vectorValue)Add new docID with its vector value to the given field for indexing. Doc IDs must be added in increasing order.
copyValue(T vectorValue)Used to copy values being indexed to internal storage.
| name | type | description |
|---|---|---|
| vector_value | T | an array containing the vector value to add |
Returns: a copy of the value; a new array