Class CoreRangeScanItem

java.lang.Object
com.couchbase.client.core.kv.CoreRangeScanItem
Direct Known Subclasses:
LastCoreRangeScanItem

public class CoreRangeScanItem extends Object
Represents one individual document returned from a kv range scan stream.
  • Constructor Details

    • CoreRangeScanItem

      protected CoreRangeScanItem(int flags, Instant expiry, long seqno, long cas, byte[] key, byte[] value)
  • Method Details

    • keyOnly

      public static CoreRangeScanItem keyOnly(byte[] key)
    • keyAndBody

      public static CoreRangeScanItem keyAndBody(int flags, Instant expiry, long seqno, long cas, byte[] key, byte[] value)
    • flags

      public int flags()
    • expiry

      public Instant expiry()
    • seqno

      public long seqno()
    • cas

      public long cas()
    • key

      public String key()
    • keyBytes

      public byte[] keyBytes()
    • value

      public byte[] value()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object