Class InMemoryDataRecord
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.datastore.InMemoryDataRecord
- All Implemented Interfaces:
DataRecord
Represents binary data which is backed by a byte[] (in memory).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic InMemoryDataRecordgetInstance(String id) Convert a String to an instance of this class.longlonginthashCode()Returns zero to satisfy the Object equals/hashCode contract.static booleanisInstance(String id) Checks if String can be converted to an instance of this class.toString()
-
Method Details
-
isInstance
Checks if String can be converted to an instance of this class.- Parameters:
id- DataRecord identifier- Returns:
- true if it can be converted
-
getInstance
Convert a String to an instance of this class.- Parameters:
id- DataRecord identifier- Returns:
- the instance
- Throws:
IllegalArgumentException
-
getIdentifier
- Specified by:
getIdentifierin interfaceDataRecord
-
getReference
- Specified by:
getReferencein interfaceDataRecord
-
getLength
- Specified by:
getLengthin interfaceDataRecord- Throws:
DataStoreException
-
getStream
- Specified by:
getStreamin interfaceDataRecord
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceDataRecord
-
toString
-
equals
-
hashCode
public int hashCode()Returns zero to satisfy the Object equals/hashCode contract. This class is mutable and not meant to be used as a hash key.
-