|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.mdi.AbstractResourceMetadata
public abstract class AbstractResourceMetadata
Base class for IResourceMetadata implementations.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
|
AbstractResourceMetadata()
De-serialization constructor. |
protected |
AbstractResourceMetadata(String filename,
UUID uuid,
long createTime)
|
| Method Summary | |
|---|---|
boolean |
equals(IResourceMetadata o)
Compares two resource metadata objects for consistent state. |
boolean |
equals(Object o)
Note: The JDK HashMap implementation requires that we define this
method in order for HashMap.get(Object) to work correctly! |
long |
getCreateTime()
The commit time associated with the creation of this resource. |
String |
getFile()
The name of the file containing the resource (this is always relative to some local data directory). |
Map<String,Object> |
getParams()
Return the fields of interest as an set of (name,value) pairs. |
UUID |
getUUID()
The unique identifier for the resource. |
int |
hashCode()
The hash code of the resource UUID. |
void |
readExternal(ObjectInput in)
|
String |
toString()
A human readable representation of the resource metadata. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.bigdata.mdi.IResourceMetadata |
|---|
isIndexSegment, isJournal |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public AbstractResourceMetadata()
protected AbstractResourceMetadata(String filename,
UUID uuid,
long createTime)
| Method Detail |
|---|
public Map<String,Object> getParams()
Params
getParams in interface Paramspublic final int hashCode()
IResourceMetadataresource UUID.
hashCode in interface IResourceMetadatahashCode in class Objectpublic final boolean equals(Object o)
HashMap implementation requires that we define this
method in order for HashMap.get(Object) to work correctly!
equals in class Objectpublic final boolean equals(IResourceMetadata o)
equals in interface IResourceMetadatapublic final String getFile()
IResourceMetadata
Note: This property is primarily used for debugging. It is NOT used by
the ResourceManager. Instead, the ResourceManager builds
up the mapping from resource UUID to local filename during
startup.
getFile in interface IResourceMetadatapublic final UUID getUUID()
IResourceMetadata
getUUID in interface IResourceMetadataIRootBlockView#getUUID(), the UUID for an {@link AbstractJournal}.,
IndexSegmentCheckpoint#segmentUUID, the UUID for an
{@link IndexSegment}.public final long getCreateTime()
IResourceMetadataIndexSegment this is the commit time of the view from
which that IndexSegment was generated. When the resource is a
Journal, the create time is the commit time associated with the
journal creation, which is generally an overflow operation. Regardless,
the create time MUST be assigned by the same time source that is used to
assign commit timestamps.
getCreateTime in interface IResourceMetadata
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||