public static final class HdfsProtos.LocatedBlockProto extends com.google.protobuf.GeneratedMessage implements HdfsProtos.LocatedBlockProtoOrBuilder
hadoop.hdfs.LocatedBlockProto
A LocatedBlock gives information about a block and its location.
| Modifier and Type | Class and Description |
|---|---|
static class |
HdfsProtos.LocatedBlockProto.Builder
Protobuf type
hadoop.hdfs.LocatedBlockProto |
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 |
B_FIELD_NUMBER |
static int |
BLOCKTOKEN_FIELD_NUMBER |
static int |
CORRUPT_FIELD_NUMBER |
static int |
LOCS_FIELD_NUMBER |
static int |
OFFSET_FIELD_NUMBER |
static com.google.protobuf.Parser<HdfsProtos.LocatedBlockProto> |
PARSER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
HdfsProtos.ExtendedBlockProto |
getB()
required .hadoop.hdfs.ExtendedBlockProto b = 1; |
SecurityProtos.TokenProto |
getBlockToken()
required .hadoop.common.TokenProto blockToken = 5; |
SecurityProtos.TokenProtoOrBuilder |
getBlockTokenOrBuilder()
required .hadoop.common.TokenProto blockToken = 5; |
HdfsProtos.ExtendedBlockProtoOrBuilder |
getBOrBuilder()
required .hadoop.hdfs.ExtendedBlockProto b = 1; |
boolean |
getCorrupt()
required bool corrupt = 4; |
static HdfsProtos.LocatedBlockProto |
getDefaultInstance() |
HdfsProtos.LocatedBlockProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
HdfsProtos.DatanodeInfoProto |
getLocs(int index)
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3; |
int |
getLocsCount()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3; |
List<HdfsProtos.DatanodeInfoProto> |
getLocsList()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3; |
HdfsProtos.DatanodeInfoProtoOrBuilder |
getLocsOrBuilder(int index)
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3; |
List<? extends HdfsProtos.DatanodeInfoProtoOrBuilder> |
getLocsOrBuilderList()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3; |
long |
getOffset()
required uint64 offset = 2; |
com.google.protobuf.Parser<HdfsProtos.LocatedBlockProto> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasB()
required .hadoop.hdfs.ExtendedBlockProto b = 1; |
boolean |
hasBlockToken()
required .hadoop.common.TokenProto blockToken = 5; |
boolean |
hasCorrupt()
required bool corrupt = 4; |
int |
hashCode() |
boolean |
hasOffset()
required uint64 offset = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HdfsProtos.LocatedBlockProto.Builder |
newBuilder() |
static HdfsProtos.LocatedBlockProto.Builder |
newBuilder(HdfsProtos.LocatedBlockProto prototype) |
HdfsProtos.LocatedBlockProto.Builder |
newBuilderForType() |
protected HdfsProtos.LocatedBlockProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static HdfsProtos.LocatedBlockProto |
parseDelimitedFrom(InputStream input) |
static HdfsProtos.LocatedBlockProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.LocatedBlockProto |
parseFrom(byte[] data) |
static HdfsProtos.LocatedBlockProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.LocatedBlockProto |
parseFrom(com.google.protobuf.ByteString data) |
static HdfsProtos.LocatedBlockProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.LocatedBlockProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HdfsProtos.LocatedBlockProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HdfsProtos.LocatedBlockProto |
parseFrom(InputStream input) |
static HdfsProtos.LocatedBlockProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HdfsProtos.LocatedBlockProto.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.LocatedBlockProto> PARSER
public static final int B_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
public static final int LOCS_FIELD_NUMBER
public static final int CORRUPT_FIELD_NUMBER
public static final int BLOCKTOKEN_FIELD_NUMBER
public static HdfsProtos.LocatedBlockProto getDefaultInstance()
public HdfsProtos.LocatedBlockProto 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.LocatedBlockProto> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasB()
required .hadoop.hdfs.ExtendedBlockProto b = 1;hasB in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic HdfsProtos.ExtendedBlockProto getB()
required .hadoop.hdfs.ExtendedBlockProto b = 1;getB in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic HdfsProtos.ExtendedBlockProtoOrBuilder getBOrBuilder()
required .hadoop.hdfs.ExtendedBlockProto b = 1;getBOrBuilder in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic boolean hasOffset()
required uint64 offset = 2;
offset of first byte of block in the file
hasOffset in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic long getOffset()
required uint64 offset = 2;
offset of first byte of block in the file
getOffset in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic List<HdfsProtos.DatanodeInfoProto> getLocsList()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsList in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic List<? extends HdfsProtos.DatanodeInfoProtoOrBuilder> getLocsOrBuilderList()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsOrBuilderList in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic int getLocsCount()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsCount in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic HdfsProtos.DatanodeInfoProto getLocs(int index)
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocs in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic HdfsProtos.DatanodeInfoProtoOrBuilder getLocsOrBuilder(int index)
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsOrBuilder in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic boolean hasCorrupt()
required bool corrupt = 4;
true if all replicas of a block are corrupt, else false
hasCorrupt in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic boolean getCorrupt()
required bool corrupt = 4;
true if all replicas of a block are corrupt, else false
getCorrupt in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic boolean hasBlockToken()
required .hadoop.common.TokenProto blockToken = 5;hasBlockToken in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic SecurityProtos.TokenProto getBlockToken()
required .hadoop.common.TokenProto blockToken = 5;getBlockToken in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic SecurityProtos.TokenProtoOrBuilder getBlockTokenOrBuilder()
required .hadoop.common.TokenProto blockToken = 5;getBlockTokenOrBuilder in interface HdfsProtos.LocatedBlockProtoOrBuilderpublic 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.LocatedBlockProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HdfsProtos.LocatedBlockProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HdfsProtos.LocatedBlockProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HdfsProtos.LocatedBlockProto.Builder newBuilder()
public HdfsProtos.LocatedBlockProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HdfsProtos.LocatedBlockProto.Builder newBuilder(HdfsProtos.LocatedBlockProto prototype)
public HdfsProtos.LocatedBlockProto.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HdfsProtos.LocatedBlockProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2013 Apache Software Foundation. All rights reserved.