Package org.zvec.binding
Class IteratorOptions
java.lang.Object
org.zvec.binding.IteratorOptions
- All Implemented Interfaces:
AutoCloseable
Options for
Collection.createIterator(IteratorOptions) (zvec ≥
v0.7.0).
Defaults: all scalar fields are returned and vectors are included.
Pass null to Collection.createIterator(IteratorOptions) to
use the C-level defaults without allocating an options object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddestroy()voidsetIncludeVector(boolean include) Set whether to include vector fields in the returned documents.voidsetOutputFields(String[] fields) Set the scalar fields to return.
-
Constructor Details
-
IteratorOptions
public IteratorOptions()
-
-
Method Details
-
setOutputFields
Set the scalar fields to return.- Parameters:
fields- field names;nullreturns all fields, an empty array returns only the primary key / system columns
-
setIncludeVector
public void setIncludeVector(boolean include) Set whether to include vector fields in the returned documents. -
destroy
public void destroy() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-