程序包 com.cnosdb.dto

类 BatchPoints

java.lang.Object
com.cnosdb.dto.BatchPoints

public class BatchPoints extends Object
{Purpose of This Type}. {Other Notes Relating to This Type (Optional)}
作者:
stefan
  • 方法详细资料

    • builder

      public static BatchPoints.Builder builder()
      Create a new BatchPoints build to create a new BatchPoints in a fluent manner.
      返回:
      the Builder to be able to add further Builder calls.
    • database

      public static BatchPoints.Builder database(String database)
      Create a new BatchPoints build to create a new BatchPoints in a fluent manner.
      参数:
      database - the name of the Database
      返回:
      the Builder to be able to add further Builder calls.
    • getDatabase

      public String getDatabase()
      返回:
      the database
    • getRetentionPolicy

      public String getRetentionPolicy()
      返回:
      the retentionPolicy
    • getPoints

      public List<Point> getPoints()
      返回:
      the points
    • getPrecision

      public TimeUnit getPrecision()
      返回:
      the time precision unit
    • point

      public BatchPoints point(Point point)
      Add a single Point to these batches.
      参数:
      point - the Point to add
      返回:
      this Instance to be able to daisy chain calls.
    • getTags

      public Map<String,String> getTags()
      返回:
      the tags
    • getConsistency

      public CnosDB.ConsistencyLevel getConsistency()
      返回:
      the consistency
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • lineProtocol

      public String lineProtocol()
      calculate the lineprotocol for all Points.
      返回:
      the String with newLines.
    • isMergeAbleWith

      public boolean isMergeAbleWith(BatchPoints that)
      Test whether is possible to merge two BatchPoints objects.
      参数:
      that - batch point to merge in
      返回:
      true if the batch points can be sent in a single HTTP request write
    • mergeIn

      public boolean mergeIn(BatchPoints that)
      Merge two BatchPoints objects.
      参数:
      that - batch point to merge in
      返回:
      true if the batch points have been merged into this BatchPoints instance. Return false otherwise.