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, parseUnknownField
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<HdfsProtos.LocatedBlockProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasB()
required .hadoop.hdfs.ExtendedBlockProto b = 1;
hasB
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public HdfsProtos.ExtendedBlockProto getB()
required .hadoop.hdfs.ExtendedBlockProto b = 1;
getB
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public HdfsProtos.ExtendedBlockProtoOrBuilder getBOrBuilder()
required .hadoop.hdfs.ExtendedBlockProto b = 1;
getBOrBuilder
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public boolean hasOffset()
required uint64 offset = 2;
offset of first byte of block in the file
hasOffset
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public long getOffset()
required uint64 offset = 2;
offset of first byte of block in the file
getOffset
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public List<HdfsProtos.DatanodeInfoProto> getLocsList()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsList
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public List<? extends HdfsProtos.DatanodeInfoProtoOrBuilder> getLocsOrBuilderList()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsOrBuilderList
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public int getLocsCount()
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsCount
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public HdfsProtos.DatanodeInfoProto getLocs(int index)
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocs
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public HdfsProtos.DatanodeInfoProtoOrBuilder getLocsOrBuilder(int index)
repeated .hadoop.hdfs.DatanodeInfoProto locs = 3;
Locations ordered by proximity to client ip
getLocsOrBuilder
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public boolean hasCorrupt()
required bool corrupt = 4;
true if all replicas of a block are corrupt, else false
hasCorrupt
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public boolean getCorrupt()
required bool corrupt = 4;
true if all replicas of a block are corrupt, else false
getCorrupt
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public boolean hasBlockToken()
required .hadoop.common.TokenProto blockToken = 5;
hasBlockToken
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public SecurityProtos.TokenProto getBlockToken()
required .hadoop.common.TokenProto blockToken = 5;
getBlockToken
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public SecurityProtos.TokenProtoOrBuilder getBlockTokenOrBuilder()
required .hadoop.common.TokenProto blockToken = 5;
getBlockTokenOrBuilder
in interface HdfsProtos.LocatedBlockProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static HdfsProtos.LocatedBlockProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static HdfsProtos.LocatedBlockProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static HdfsProtos.LocatedBlockProto parseFrom(InputStream input) throws IOException
IOException
public static HdfsProtos.LocatedBlockProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static HdfsProtos.LocatedBlockProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static HdfsProtos.LocatedBlockProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static HdfsProtos.LocatedBlockProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static HdfsProtos.LocatedBlockProto.Builder newBuilder()
public HdfsProtos.LocatedBlockProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static HdfsProtos.LocatedBlockProto.Builder newBuilder(HdfsProtos.LocatedBlockProto prototype)
public HdfsProtos.LocatedBlockProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected HdfsProtos.LocatedBlockProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013 Apache Software Foundation. All rights reserved.