docs/design_docs/segcore/segment_interface.md
get_row_count: Get the number of entities in the segmentget_schema: Get the corresponding collection schema in the segmentGetMemoryUsageInBytes: Get memory usage of a segmentSearch(plan, placeholderGroup, timestamp) -> QueryResult: Perform search operations according to the plan containing search parameters and predicate conditions, and return search results. Ensure that the time of all search results is before the specified timestamp(MVCC)FillTargetEntry(plan, &queryResult): Fill the missing column data for search results based on target columns in the planSee design details ${milvus_root}/internal/core/src/segcore/SegmentInterface.h
num_chunk(): total chunk numbersize_per_chunk(): length of each chunkget_active_count(Timestamp): entity count after filter by Timestampchunk_data(FieldOffset, chunk_id) -> Span<T>: return continuous data for specified column and chunkchunk_scalar_index(FieldOffset, chunk_id) -> const StructuredIndex<T>&: return the inverted index of specified column and chunknum_chunk_index: the number of indexes (including scalars and vector indexes) that have been created:
debug(): debug is used to print extra information while debuggingvector_search (vec_count, query..., timestamp, bitset, output): Search the vector column
vec_count: specifies how many entities participated in the vector search calculation, the rest of the segments are filtered out because their timestamp is larger than specified timestamp. This function is mainly used in growing segment as multi version control(MVCC)query...: multiple variables jointly specify the parameters and search vectortimestamp: timestamp is used for time traveling, filter out data with timestamp. Mainly for sealed segmentbitset: calculated bit mask value as an outputoutput: output QueryResultbulk_subscript(FieldOffset|SystemField, seg_offsets..., output):
results[i] = FieldData[seg_offsets[i]], for GetEntityByIdssearch_ids(IdArray, timestamp) -> pair<IdArray, SegOffsets>:
check_search(Plan): check if the Plan is valid