Class InMemoryDataRecord
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.datastore.InMemoryDataRecord
- All Implemented Interfaces:
DataRecord
@Deprecated(since="2024-09-23")
public class InMemoryDataRecord
extends Object
implements DataRecord
Deprecated.
The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2025.
Represents binary data which is backed by a byte[] (in memory).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Returns the identifier of this record.static InMemoryDataRecordgetInstance(String id) Deprecated.Convert a String to an instance of this class.longDeprecated.Returns the last modified of the record.longDeprecated.Returns the length of the binary stream in this record.Deprecated.Returns a secure reference to this binary, ornullif no such reference is available.Deprecated.Returns the the binary stream in this record.inthashCode()Deprecated.Returns zero to satisfy the Object equals/hashCode contract.static booleanisInstance(String id) Deprecated.Checks if String can be converted to an instance of this class.toString()Deprecated.
-
Method Details
-
isInstance
Deprecated.Checks if String can be converted to an instance of this class.- Parameters:
id- DataRecord identifier- Returns:
- true if it can be converted
-
getInstance
Deprecated.Convert a String to an instance of this class.- Parameters:
id- DataRecord identifier- Returns:
- the instance
- Throws:
IllegalArgumentException
-
getIdentifier
Deprecated.Description copied from interface:DataRecordReturns the identifier of this record.- Specified by:
getIdentifierin interfaceDataRecord- Returns:
- data identifier
-
getReference
Deprecated.Description copied from interface:DataRecordReturns a secure reference to this binary, ornullif no such reference is available.- Specified by:
getReferencein interfaceDataRecord- Returns:
- binary reference, or
null
-
getLength
Deprecated.Description copied from interface:DataRecordReturns the length of the binary stream in this record.- Specified by:
getLengthin interfaceDataRecord- Returns:
- length of the binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
getStream
Deprecated.Description copied from interface:DataRecordReturns the the binary stream in this record.- Specified by:
getStreamin interfaceDataRecord- Returns:
- binary stream
-
getLastModified
public long getLastModified()Deprecated.Description copied from interface:DataRecordReturns the last modified of the record.- Specified by:
getLastModifiedin interfaceDataRecord- Returns:
- last modified time of the binary stream
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.Returns zero to satisfy the Object equals/hashCode contract. This class is mutable and not meant to be used as a hash key.
-