Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
@Nullable java.lang.String |
getBlobId() |
static java.lang.Iterable<SegmentId> |
getBulkSegmentIds(Blob blob) |
java.lang.String |
getContentIdentity()
A unique identifier of the content of this value.
|
@NotNull GCGeneration |
getGcGeneration()
Get the underlying segment's gc generation.
|
@NotNull java.io.InputStream |
getNewStream()
Returns a new stream for this blob.
|
RecordId |
getRecordId()
Returns the identifier of this record.
|
protected int |
getRecordNumber() |
@Nullable java.lang.String |
getReference()
Returns a secure reference to this blob, or
null if such
a reference is not available. |
protected Segment |
getSegment()
Returns the segment that contains this record.
|
int |
hashCode() |
boolean |
isExternal() |
boolean |
isInlined()
Checks if the external blob is inlined in the id itself
|
long |
length()
Returns the length of this blob or -1 if unknown.
|
static @Nullable java.lang.String |
readBlobId(@NotNull Segment segment,
int recordNumber) |
java.lang.String |
toString() |
@NotNull public @NotNull java.io.InputStream getNewStream()
Blob
read
return the same sequence of bytes as long as neither call throws
an exception.getNewStream
in interface Blob
public long length()
Blob
@Nullable public @Nullable java.lang.String getReference()
Blob
null
if such
a reference is not available.getReference
in interface Blob
null
public java.lang.String getContentIdentity()
Blob
This method returns null if the identifier is unknown. The identifier may not always be available, for example if the value has not yet been saved or processed. Once an identifier is available, it will never change because values are immutable.
If two values have the same identifier, the content of the value is guaranteed to be the same. However it is not guaranteed that two values with the same content will return the same identifier.
The identifier is opaque, meaning it can have any format and size.
getContentIdentity
in interface Blob
public boolean isInlined()
Blob
public boolean isExternal()
@Nullable public @Nullable java.lang.String getBlobId()
@Nullable public static @Nullable java.lang.String readBlobId(@NotNull @NotNull Segment segment, int recordNumber)
public boolean equals(java.lang.Object object)
public int hashCode()
protected Segment getSegment()
protected int getRecordNumber()
public RecordId getRecordId()
@NotNull public @NotNull GCGeneration getGcGeneration()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.