Class ecs_query_stats_t
java.lang.Object
com.github.elebras1.flecs.ecs_query_stats_t
struct ecs_query_stats_t {
int64_t first_;
ecs_metric_t result_count;
ecs_metric_t matched_table_count;
ecs_metric_t matched_entity_count;
int64_t last_;
int32_t t;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static longfirst_(MemorySegment struct) Getter for field:int64_t first_static voidfirst_(MemorySegment struct, long fieldValue) Setter for field:int64_t first_static final ValueLayout.OfLongLayout for field:int64_t first_static final longOffset for field:int64_t first_static longlast_(MemorySegment struct) Getter for field:int64_t last_static voidlast_(MemorySegment struct, long fieldValue) Setter for field:int64_t last_static final ValueLayout.OfLongLayout for field:int64_t last_static final longOffset for field:int64_t last_static final GroupLayoutlayout()The layout of this structstatic MemorySegmentmatched_entity_count(MemorySegment struct) Getter for field:ecs_metric_t matched_entity_countstatic voidmatched_entity_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t matched_entity_countstatic final GroupLayoutLayout for field:ecs_metric_t matched_entity_countstatic final longOffset for field:ecs_metric_t matched_entity_countstatic MemorySegmentmatched_table_count(MemorySegment struct) Getter for field:ecs_metric_t matched_table_countstatic voidmatched_table_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t matched_table_countstatic final GroupLayoutLayout for field:ecs_metric_t matched_table_countstatic final longOffset for field:ecs_metric_t matched_table_countstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentresult_count(MemorySegment struct) Getter for field:ecs_metric_t result_countstatic voidresult_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t result_countstatic final GroupLayoutLayout for field:ecs_metric_t result_countstatic final longOffset for field:ecs_metric_t result_countstatic longsizeof()The size (in bytes) of this structstatic intt(MemorySegment struct) Getter for field:int32_t tstatic voidt(MemorySegment struct, int fieldValue) Setter for field:int32_t tstatic final ValueLayout.OfIntt$layout()Layout for field:int32_t tstatic final longt$offset()Offset for field:int32_t t
-
Method Details
-
layout
The layout of this struct -
first_$layout
Layout for field:int64_t first_ -
first_$offset
public static final long first_$offset()Offset for field:int64_t first_ -
first_
Getter for field:int64_t first_ -
first_
Setter for field:int64_t first_ -
result_count$layout
Layout for field:ecs_metric_t result_count -
result_count$offset
public static final long result_count$offset()Offset for field:ecs_metric_t result_count -
result_count
Getter for field:ecs_metric_t result_count -
result_count
Setter for field:ecs_metric_t result_count -
matched_table_count$layout
Layout for field:ecs_metric_t matched_table_count -
matched_table_count$offset
public static final long matched_table_count$offset()Offset for field:ecs_metric_t matched_table_count -
matched_table_count
Getter for field:ecs_metric_t matched_table_count -
matched_table_count
Setter for field:ecs_metric_t matched_table_count -
matched_entity_count$layout
Layout for field:ecs_metric_t matched_entity_count -
matched_entity_count$offset
public static final long matched_entity_count$offset()Offset for field:ecs_metric_t matched_entity_count -
matched_entity_count
Getter for field:ecs_metric_t matched_entity_count -
matched_entity_count
Setter for field:ecs_metric_t matched_entity_count -
last_$layout
Layout for field:int64_t last_ -
last_$offset
public static final long last_$offset()Offset for field:int64_t last_ -
last_
Getter for field:int64_t last_ -
last_
Setter for field:int64_t last_ -
t$layout
Layout for field:int32_t t -
t$offset
public static final long t$offset()Offset for field:int32_t t -
t
Getter for field:int32_t t -
t
Setter for field:int32_t t -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-