Class ecs_query_desc_t

java.lang.Object
com.github.elebras1.flecs.ecs_query_desc_t

public class ecs_query_desc_t extends Object
struct ecs_query_desc_t {
    int32_t _canary;
    ecs_term_t terms[32];
    const char *expr;
    ecs_query_cache_kind_t cache_kind;
    ecs_flags32_t flags;
    ecs_order_by_action_t order_by_callback;
    ecs_sort_table_action_t order_by_table_callback;
    ecs_entity_t order_by;
    ecs_id_t group_by;
    ecs_group_by_action_t group_by_callback;
    ecs_group_create_action_t on_group_create;
    ecs_group_delete_action_t on_group_delete;
    void *group_by_ctx;
    ecs_ctx_free_t group_by_ctx_free;
    void *ctx;
    void *binding_ctx;
    ecs_ctx_free_t ctx_free;
    ecs_ctx_free_t binding_ctx_free;
    ecs_entity_t entity;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • _canary$layout

      public static final ValueLayout.OfInt _canary$layout()
      Layout for field:
      int32_t _canary
      
    • _canary$offset

      public static final long _canary$offset()
      Offset for field:
      int32_t _canary
      
    • _canary

      public static int _canary(MemorySegment struct)
      Getter for field:
      int32_t _canary
      
    • _canary

      public static void _canary(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t _canary
      
    • terms$layout

      public static final SequenceLayout terms$layout()
      Layout for field:
      ecs_term_t terms[32]
      
    • terms$offset

      public static final long terms$offset()
      Offset for field:
      ecs_term_t terms[32]
      
    • terms

      public static MemorySegment terms(MemorySegment struct)
      Getter for field:
      ecs_term_t terms[32]
      
    • terms

      public static void terms(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_term_t terms[32]
      
    • terms$dimensions

      public static long[] terms$dimensions()
      Dimensions for array field:
      ecs_term_t terms[32]
      
    • terms

      public static MemorySegment terms(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_term_t terms[32]
      
    • terms

      public static void terms(MemorySegment struct, long index0, MemorySegment fieldValue)
      Indexed setter for field:
      ecs_term_t terms[32]
      
    • expr$layout

      public static final AddressLayout expr$layout()
      Layout for field:
      const char *expr
      
    • expr$offset

      public static final long expr$offset()
      Offset for field:
      const char *expr
      
    • expr

      public static MemorySegment expr(MemorySegment struct)
      Getter for field:
      const char *expr
      
    • expr

      public static void expr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *expr
      
    • cache_kind$layout

      public static final ValueLayout.OfInt cache_kind$layout()
      Layout for field:
      ecs_query_cache_kind_t cache_kind
      
    • cache_kind$offset

      public static final long cache_kind$offset()
      Offset for field:
      ecs_query_cache_kind_t cache_kind
      
    • cache_kind

      public static int cache_kind(MemorySegment struct)
      Getter for field:
      ecs_query_cache_kind_t cache_kind
      
    • cache_kind

      public static void cache_kind(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_query_cache_kind_t cache_kind
      
    • flags$layout

      public static final ValueLayout.OfInt flags$layout()
      Layout for field:
      ecs_flags32_t flags
      
    • flags$offset

      public static final long flags$offset()
      Offset for field:
      ecs_flags32_t flags
      
    • flags

      public static int flags(MemorySegment struct)
      Getter for field:
      ecs_flags32_t flags
      
    • flags

      public static void flags(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t flags
      
    • order_by_callback$layout

      public static final AddressLayout order_by_callback$layout()
      Layout for field:
      ecs_order_by_action_t order_by_callback
      
    • order_by_callback$offset

      public static final long order_by_callback$offset()
      Offset for field:
      ecs_order_by_action_t order_by_callback
      
    • order_by_callback

      public static MemorySegment order_by_callback(MemorySegment struct)
      Getter for field:
      ecs_order_by_action_t order_by_callback
      
    • order_by_callback

      public static void order_by_callback(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_order_by_action_t order_by_callback
      
    • order_by_table_callback$layout

      public static final AddressLayout order_by_table_callback$layout()
      Layout for field:
      ecs_sort_table_action_t order_by_table_callback
      
    • order_by_table_callback$offset

      public static final long order_by_table_callback$offset()
      Offset for field:
      ecs_sort_table_action_t order_by_table_callback
      
    • order_by_table_callback

      public static MemorySegment order_by_table_callback(MemorySegment struct)
      Getter for field:
      ecs_sort_table_action_t order_by_table_callback
      
    • order_by_table_callback

      public static void order_by_table_callback(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_sort_table_action_t order_by_table_callback
      
    • order_by$layout

      public static final ValueLayout.OfLong order_by$layout()
      Layout for field:
      ecs_entity_t order_by
      
    • order_by$offset

      public static final long order_by$offset()
      Offset for field:
      ecs_entity_t order_by
      
    • order_by

      public static long order_by(MemorySegment struct)
      Getter for field:
      ecs_entity_t order_by
      
    • order_by

      public static void order_by(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t order_by
      
    • group_by$layout

      public static final ValueLayout.OfLong group_by$layout()
      Layout for field:
      ecs_id_t group_by
      
    • group_by$offset

      public static final long group_by$offset()
      Offset for field:
      ecs_id_t group_by
      
    • group_by

      public static long group_by(MemorySegment struct)
      Getter for field:
      ecs_id_t group_by
      
    • group_by

      public static void group_by(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_id_t group_by
      
    • group_by_callback$layout

      public static final AddressLayout group_by_callback$layout()
      Layout for field:
      ecs_group_by_action_t group_by_callback
      
    • group_by_callback$offset

      public static final long group_by_callback$offset()
      Offset for field:
      ecs_group_by_action_t group_by_callback
      
    • group_by_callback

      public static MemorySegment group_by_callback(MemorySegment struct)
      Getter for field:
      ecs_group_by_action_t group_by_callback
      
    • group_by_callback

      public static void group_by_callback(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_group_by_action_t group_by_callback
      
    • on_group_create$layout

      public static final AddressLayout on_group_create$layout()
      Layout for field:
      ecs_group_create_action_t on_group_create
      
    • on_group_create$offset

      public static final long on_group_create$offset()
      Offset for field:
      ecs_group_create_action_t on_group_create
      
    • on_group_create

      public static MemorySegment on_group_create(MemorySegment struct)
      Getter for field:
      ecs_group_create_action_t on_group_create
      
    • on_group_create

      public static void on_group_create(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_group_create_action_t on_group_create
      
    • on_group_delete$layout

      public static final AddressLayout on_group_delete$layout()
      Layout for field:
      ecs_group_delete_action_t on_group_delete
      
    • on_group_delete$offset

      public static final long on_group_delete$offset()
      Offset for field:
      ecs_group_delete_action_t on_group_delete
      
    • on_group_delete

      public static MemorySegment on_group_delete(MemorySegment struct)
      Getter for field:
      ecs_group_delete_action_t on_group_delete
      
    • on_group_delete

      public static void on_group_delete(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_group_delete_action_t on_group_delete
      
    • group_by_ctx$layout

      public static final AddressLayout group_by_ctx$layout()
      Layout for field:
      void *group_by_ctx
      
    • group_by_ctx$offset

      public static final long group_by_ctx$offset()
      Offset for field:
      void *group_by_ctx
      
    • group_by_ctx

      public static MemorySegment group_by_ctx(MemorySegment struct)
      Getter for field:
      void *group_by_ctx
      
    • group_by_ctx

      public static void group_by_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *group_by_ctx
      
    • group_by_ctx_free$layout

      public static final AddressLayout group_by_ctx_free$layout()
      Layout for field:
      ecs_ctx_free_t group_by_ctx_free
      
    • group_by_ctx_free$offset

      public static final long group_by_ctx_free$offset()
      Offset for field:
      ecs_ctx_free_t group_by_ctx_free
      
    • group_by_ctx_free

      public static MemorySegment group_by_ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t group_by_ctx_free
      
    • group_by_ctx_free

      public static void group_by_ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t group_by_ctx_free
      
    • ctx$layout

      public static final AddressLayout ctx$layout()
      Layout for field:
      void *ctx
      
    • ctx$offset

      public static final long ctx$offset()
      Offset for field:
      void *ctx
      
    • ctx

      public static MemorySegment ctx(MemorySegment struct)
      Getter for field:
      void *ctx
      
    • ctx

      public static void ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *ctx
      
    • binding_ctx$layout

      public static final AddressLayout binding_ctx$layout()
      Layout for field:
      void *binding_ctx
      
    • binding_ctx$offset

      public static final long binding_ctx$offset()
      Offset for field:
      void *binding_ctx
      
    • binding_ctx

      public static MemorySegment binding_ctx(MemorySegment struct)
      Getter for field:
      void *binding_ctx
      
    • binding_ctx

      public static void binding_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *binding_ctx
      
    • ctx_free$layout

      public static final AddressLayout ctx_free$layout()
      Layout for field:
      ecs_ctx_free_t ctx_free
      
    • ctx_free$offset

      public static final long ctx_free$offset()
      Offset for field:
      ecs_ctx_free_t ctx_free
      
    • ctx_free

      public static MemorySegment ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t ctx_free
      
    • ctx_free

      public static void ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t ctx_free
      
    • binding_ctx_free$layout

      public static final AddressLayout binding_ctx_free$layout()
      Layout for field:
      ecs_ctx_free_t binding_ctx_free
      
    • binding_ctx_free$offset

      public static final long binding_ctx_free$offset()
      Offset for field:
      ecs_ctx_free_t binding_ctx_free
      
    • binding_ctx_free

      public static MemorySegment binding_ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t binding_ctx_free
      
    • binding_ctx_free

      public static void binding_ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t binding_ctx_free
      
    • entity$layout

      public static final ValueLayout.OfLong entity$layout()
      Layout for field:
      ecs_entity_t entity
      
    • entity$offset

      public static final long entity$offset()
      Offset for field:
      ecs_entity_t entity
      
    • entity

      public static long entity(MemorySegment struct)
      Getter for field:
      ecs_entity_t entity
      
    • entity

      public static void entity(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t entity
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()