Package com.gpudb.protocol
Class FilterByStringResponse
java.lang.Object
com.gpudb.protocol.FilterByStringResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.filterByString.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theFilterByStringResponseparameterinfo.Constructor Summary
ConstructorsConstructorDescriptionConstructs a FilterByStringResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longgetCount()The number of records that passed the string filter.getInfo()Additional information.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Serialized cross-shard BM25 corpus statistics, populated forSEARCH_STATSmode and empty otherwise.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setCount(long count) The number of records that passed the string filter.Additional information.setStatsData(ByteBuffer statsData) Serialized cross-shard BM25 corpus statistics, populated forSEARCH_STATSmode and empty otherwise.toString()
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.getCount
public long getCount()The number of records that passed the string filter.Returns:The current value ofcount.setCount
The number of records that passed the string filter.Parameters:count- The new value forcount.Returns:thisto mimic the builder pattern.setInfo
Additional information.QUALIFIED_VIEW_NAME: The fully qualified name of the view (i.e. including the schema).
Map.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.getStatsData
Serialized cross-shard BM25 corpus statistics, populated forSEARCH_STATSmode and empty otherwise. Wire format matches the merged BM25GlobalStats blob the BM25 stats worker produces internally (max_doc, doc_count, sum_total_term_freq, sum_doc_freq, num_terms, then per term: term, doc_freq, total_term_freq). Clients that consume this perform their own scoring; the gpudb client library will expose a parser as a future convenience. The default value is ”.Returns:The current value ofstatsData.setStatsData
Serialized cross-shard BM25 corpus statistics, populated forSEARCH_STATSmode and empty otherwise. Wire format matches the merged BM25GlobalStats blob the BM25 stats worker produces internally (max_doc, doc_count, sum_total_term_freq, sum_doc_freq, num_terms, then per term: term, doc_freq, total_term_freq). Clients that consume this perform their own scoring; the gpudb client library will expose a parser as a future convenience. The default value is ”.Parameters:statsData- The new value forstatsData.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: