public class IgfsListingEntry extends Object implements Externalizable, Binarylizable
Constructor and Description |
---|
IgfsListingEntry()
Empty constructor required by
Externalizable . |
IgfsListingEntry(IgfsEntryInfo fileInfo)
Constructor.
|
IgfsListingEntry(IgniteUuid id,
boolean dir)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
IgniteUuid |
fileId() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
void |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
void |
writeExternal(ObjectOutput out) |
public IgfsListingEntry()
Externalizable
.public IgfsListingEntry(IgfsEntryInfo fileInfo)
fileInfo
- File info to construct listing entry from.public IgfsListingEntry(IgniteUuid id, boolean dir)
id
- File ID.dir
- Directory marker.public IgniteUuid fileId()
public boolean isFile()
True
if entry represents file.public boolean isDirectory()
True
if entry represents directory.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeBinary(BinaryWriter writer) throws BinaryObjectException
writeBinary
in interface Binarylizable
writer
- Binary object writer.BinaryObjectException
- In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
readBinary
in interface Binarylizable
reader
- Binary object reader.BinaryObjectException
- In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017