public static final class HdfsProtos.HdfsFileStatusProto extends com.google.protobuf.GeneratedMessage implements HdfsProtos.HdfsFileStatusProtoOrBuilder
hadoop.hdfs.HdfsFileStatusProto
Status of a file, directory or symlink Optionally includes a file's block locations if requested by client on the rpc call.
| Modifier and Type | Class and Description |
|---|---|
static class |
HdfsProtos.HdfsFileStatusProto.Builder
Protobuf type
hadoop.hdfs.HdfsFileStatusProto |
static class |
HdfsProtos.HdfsFileStatusProto.FileType
Protobuf enum
hadoop.hdfs.HdfsFileStatusProto.FileType |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS_TIME_FIELD_NUMBER |
static int |
BLOCK_REPLICATION_FIELD_NUMBER |
static int |
BLOCKSIZE_FIELD_NUMBER |
static int |
CHILDRENNUM_FIELD_NUMBER |
static int |
FILEID_FIELD_NUMBER |
static int |
FILETYPE_FIELD_NUMBER |
static int |
GROUP_FIELD_NUMBER |
static int |
LENGTH_FIELD_NUMBER |
static int |
LOCATIONS_FIELD_NUMBER |
static int |
MODIFICATION_TIME_FIELD_NUMBER |
static int |
OWNER_FIELD_NUMBER |
static com.google.protobuf.Parser<HdfsProtos.HdfsFileStatusProto> |
PARSER |
static int |
PATH_FIELD_NUMBER |
static int |
PERMISSION_FIELD_NUMBER |
static int |
SYMLINK_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getAccessTime()
required uint64 access_time = 8; |
int |
getBlockReplication()
optional uint32 block_replication = 10 [default = 0]; |
long |
getBlocksize()
optional uint64 blocksize = 11 [default = 0]; |
int |
getChildrenNum()
optional int32 childrenNum = 14 [default = -1]; |
static HdfsProtos.HdfsFileStatusProto |
getDefaultInstance() |
HdfsProtos.HdfsFileStatusProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getFileId()
optional uint64 fileId = 13 [default = 0]; |
HdfsProtos.HdfsFileStatusProto.FileType |
getFileType()
required .hadoop.hdfs.HdfsFileStatusProto.FileType fileType = 1; |
String |
getGroup()
required string group = 6; |
com.google.protobuf.ByteString |
getGroupBytes()
required string group = 6; |
long |
getLength()
required uint64 length = 3; |
HdfsProtos.LocatedBlocksProto |
getLocations()
optional .hadoop.hdfs.LocatedBlocksProto locations = 12; |
HdfsProtos.LocatedBlocksProtoOrBuilder |
getLocationsOrBuilder()
optional .hadoop.hdfs.LocatedBlocksProto locations = 12; |
long |
getModificationTime()
required uint64 modification_time = 7; |
String |
getOwner()
required string owner = 5; |
com.google.protobuf.ByteString |
getOwnerBytes()
required string owner = 5; |
com.google.protobuf.Parser<HdfsProtos.HdfsFileStatusProto> |
getParserForType() |
com.google.protobuf.ByteString |
getPath()
required bytes path = 2; |
HdfsProtos.FsPermissionProto |
getPermission()
required .hadoop.hdfs.FsPermissionProto permission = 4; |
HdfsProtos.FsPermissionProtoOrBuilder |
getPermissionOrBuilder()
required .hadoop.hdfs.FsPermissionProto permission = 4; |
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getSymlink()
optional bytes symlink = 9; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAccessTime()
required uint64 access_time = 8; |
boolean |
hasBlockReplication()
optional uint32 block_replication = 10 [default = 0]; |
boolean |
hasBlocksize()
optional uint64 blocksize = 11 [default = 0]; |
boolean |
hasChildrenNum()
optional int32 childrenNum = 14 [default = -1]; |
boolean |
hasFileId()
optional uint64 fileId = 13 [default = 0]; |
boolean |
hasFileType()
required .hadoop.hdfs.HdfsFileStatusProto.FileType fileType = 1; |
boolean |
hasGroup()
required string group = 6; |
int |
hashCode() |
boolean |
hasLength()
required uint64 length = 3; |
boolean |
hasLocations()
optional .hadoop.hdfs.LocatedBlocksProto locations = 12; |
boolean |
hasModificationTime()
required uint64 modification_time = 7; |
boolean |
hasOwner()
required string owner = 5; |
boolean |
hasPath()
required bytes path = 2; |
boolean |
hasPermission()
required .hadoop.hdfs.FsPermissionProto permission = 4; |
boolean |
hasSymlink()
optional bytes symlink = 9; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HdfsProtos.HdfsFileStatusProto.Builder |
newBuilder() |
static HdfsProtos.HdfsFileStatusProto.Builder |
newBuilder(HdfsProtos.HdfsFileStatusProto prototype) |
HdfsProtos.HdfsFileStatusProto.Builder |
newBuilderForType() |
protected HdfsProtos.HdfsFileStatusProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static HdfsProtos.HdfsFileStatusProto |
parseDelimitedFrom(InputStream input) |
static HdfsProtos.HdfsFileStatusProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(byte[] data) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(com.google.protobuf.ByteString data) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(InputStream input) |
static HdfsProtos.HdfsFileStatusProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HdfsProtos.HdfsFileStatusProto.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<HdfsProtos.HdfsFileStatusProto> PARSER
public static final int FILETYPE_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
public static final int LENGTH_FIELD_NUMBER
public static final int PERMISSION_FIELD_NUMBER
public static final int OWNER_FIELD_NUMBER
public static final int GROUP_FIELD_NUMBER
public static final int MODIFICATION_TIME_FIELD_NUMBER
public static final int ACCESS_TIME_FIELD_NUMBER
public static final int SYMLINK_FIELD_NUMBER
public static final int BLOCK_REPLICATION_FIELD_NUMBER
public static final int BLOCKSIZE_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
public static final int FILEID_FIELD_NUMBER
public static final int CHILDRENNUM_FIELD_NUMBER
public static HdfsProtos.HdfsFileStatusProto getDefaultInstance()
public HdfsProtos.HdfsFileStatusProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<HdfsProtos.HdfsFileStatusProto> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasFileType()
required .hadoop.hdfs.HdfsFileStatusProto.FileType fileType = 1;hasFileType in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic HdfsProtos.HdfsFileStatusProto.FileType getFileType()
required .hadoop.hdfs.HdfsFileStatusProto.FileType fileType = 1;getFileType in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasPath()
required bytes path = 2;
local name of inode encoded java UTF8
hasPath in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic com.google.protobuf.ByteString getPath()
required bytes path = 2;
local name of inode encoded java UTF8
getPath in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasLength()
required uint64 length = 3;hasLength in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic long getLength()
required uint64 length = 3;getLength in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasPermission()
required .hadoop.hdfs.FsPermissionProto permission = 4;hasPermission in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic HdfsProtos.FsPermissionProto getPermission()
required .hadoop.hdfs.FsPermissionProto permission = 4;getPermission in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic HdfsProtos.FsPermissionProtoOrBuilder getPermissionOrBuilder()
required .hadoop.hdfs.FsPermissionProto permission = 4;getPermissionOrBuilder in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasOwner()
required string owner = 5;hasOwner in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic String getOwner()
required string owner = 5;getOwner in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic com.google.protobuf.ByteString getOwnerBytes()
required string owner = 5;getOwnerBytes in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasGroup()
required string group = 6;hasGroup in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic String getGroup()
required string group = 6;getGroup in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic com.google.protobuf.ByteString getGroupBytes()
required string group = 6;getGroupBytes in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasModificationTime()
required uint64 modification_time = 7;hasModificationTime in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic long getModificationTime()
required uint64 modification_time = 7;getModificationTime in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasAccessTime()
required uint64 access_time = 8;hasAccessTime in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic long getAccessTime()
required uint64 access_time = 8;getAccessTime in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasSymlink()
optional bytes symlink = 9;
Optional fields for symlink
hasSymlink in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic com.google.protobuf.ByteString getSymlink()
optional bytes symlink = 9;
Optional fields for symlink
getSymlink in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasBlockReplication()
optional uint32 block_replication = 10 [default = 0];
Optional fields for file
hasBlockReplication in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic int getBlockReplication()
optional uint32 block_replication = 10 [default = 0];
Optional fields for file
getBlockReplication in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasBlocksize()
optional uint64 blocksize = 11 [default = 0];hasBlocksize in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic long getBlocksize()
optional uint64 blocksize = 11 [default = 0];getBlocksize in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasLocations()
optional .hadoop.hdfs.LocatedBlocksProto locations = 12;
suppled only if asked by client
hasLocations in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic HdfsProtos.LocatedBlocksProto getLocations()
optional .hadoop.hdfs.LocatedBlocksProto locations = 12;
suppled only if asked by client
getLocations in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic HdfsProtos.LocatedBlocksProtoOrBuilder getLocationsOrBuilder()
optional .hadoop.hdfs.LocatedBlocksProto locations = 12;
suppled only if asked by client
getLocationsOrBuilder in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasFileId()
optional uint64 fileId = 13 [default = 0];
Optional field for fileId
hasFileId in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic long getFileId()
optional uint64 fileId = 13 [default = 0];
Optional field for fileId
getFileId in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic boolean hasChildrenNum()
optional int32 childrenNum = 14 [default = -1];hasChildrenNum in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic int getChildrenNum()
optional int32 childrenNum = 14 [default = -1];getChildrenNum in interface HdfsProtos.HdfsFileStatusProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HdfsProtos.HdfsFileStatusProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HdfsProtos.HdfsFileStatusProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HdfsProtos.HdfsFileStatusProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HdfsProtos.HdfsFileStatusProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HdfsProtos.HdfsFileStatusProto.Builder newBuilder()
public HdfsProtos.HdfsFileStatusProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HdfsProtos.HdfsFileStatusProto.Builder newBuilder(HdfsProtos.HdfsFileStatusProto prototype)
public HdfsProtos.HdfsFileStatusProto.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HdfsProtos.HdfsFileStatusProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2013 Apache Software Foundation. All rights reserved.