Class AbstractDataRecord

java.lang.Object
org.apache.jackrabbit.oak.spi.blob.AbstractDataRecord
All Implemented Interfaces:
org.apache.jackrabbit.oak.spi.blob.data.DataRecord

public abstract class AbstractDataRecord extends Object implements org.apache.jackrabbit.oak.spi.blob.data.DataRecord
Implements DataRecord
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractDataRecord(AbstractSharedBackend backend, org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier)
    Creates a data record with the given identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Checks if the given object is a data record with the same identifier as this one.
    org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier
    Returns the data identifier.
    Delegates the call to the backend to retrieve reference.
    int
    Returns the hash code of the data identifier.
    Returns the string representation of the data identifier.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jackrabbit.oak.spi.blob.data.DataRecord

    getLastModified, getLength, getStream
  • Constructor Details

    • AbstractDataRecord

      public AbstractDataRecord(AbstractSharedBackend backend, org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier)
      Creates a data record with the given identifier.
      Parameters:
      identifier - data identifier
  • Method Details

    • getIdentifier

      public org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier getIdentifier()
      Returns the data identifier.
      Specified by:
      getIdentifier in interface org.apache.jackrabbit.oak.spi.blob.data.DataRecord
      Returns:
      data identifier
    • getReference

      public String getReference()
      Delegates the call to the backend to retrieve reference.
      Specified by:
      getReference in interface org.apache.jackrabbit.oak.spi.blob.data.DataRecord
      Returns:
    • toString

      public String toString()
      Returns the string representation of the data identifier.
      Overrides:
      toString in class Object
      Returns:
      string representation
    • equals

      public boolean equals(Object object)
      Checks if the given object is a data record with the same identifier as this one.
      Overrides:
      equals in class Object
      Parameters:
      object - other object
      Returns:
      true if the other object is a data record and has the same identifier as this one, false otherwise
    • hashCode

      public int hashCode()
      Returns the hash code of the data identifier.
      Overrides:
      hashCode in class Object
      Returns:
      hash code