Class WeaviateBaseOp<REQUEST,RESULT>

java.lang.Object
io.nosqlbench.adapter.weaviate.ops.WeaviateBaseOp<REQUEST,RESULT>
All Implemented Interfaces:
CycleOp<RESULT>, LongFunction<RESULT>
Direct Known Subclasses:
WeaviateCreateCollectionOp, WeaviateCreateObjectsOp, WeaviateDeleteCollectionOp, WeaviateGetCollectionSchemaOp

public abstract class WeaviateBaseOp<REQUEST,RESULT> extends Object implements CycleOp<RESULT>
  • Field Details

    • logger

      protected static final org.apache.logging.log4j.Logger logger
    • client

      protected final io.weaviate.client.WeaviateClient client
    • request

      protected final REQUEST request
    • apiCall

      protected final LongFunction<Object> apiCall
  • Constructor Details

    • WeaviateBaseOp

      public WeaviateBaseOp(io.weaviate.client.WeaviateClient client, REQUEST requestParam)
    • WeaviateBaseOp

      public WeaviateBaseOp(io.weaviate.client.WeaviateClient client, REQUEST requestParam, LongFunction<Object> call)
  • Method Details

    • apply

      public final RESULT apply(long value)
      Description copied from interface: CycleOp

      Run an action for the given cycle.

      Specified by:
      apply in interface CycleOp<REQUEST>
      Specified by:
      apply in interface LongFunction<REQUEST>
      Parameters:
      value - The cycle value for which an operation is run
    • applyOp

      public abstract RESULT applyOp(long value)
    • toString

      public String toString()
      Overrides:
      toString in class Object