public static final class ClientProtos.Scan extends com.google.protobuf.GeneratedMessage implements ClientProtos.ScanOrBuilder
Scan
Instead of get from a table, you can scan it with optional filters. You can specify the row key range, time range, the columns/families to scan and so on. This scan is used the first time in a scan request. The response of the initial scan will return a scanner id, which should be used to fetch result batches later on before it is closed.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientProtos.Scan.Builder
Protobuf type
Scan |
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 |
ATTRIBUTE_FIELD_NUMBER |
static int |
BATCH_SIZE_FIELD_NUMBER |
static int |
CACHE_BLOCKS_FIELD_NUMBER |
static int |
CACHING_FIELD_NUMBER |
static int |
COLUMN_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
LOAD_COLUMN_FAMILIES_ON_DEMAND_FIELD_NUMBER |
static int |
MAX_RESULT_SIZE_FIELD_NUMBER |
static int |
MAX_VERSIONS_FIELD_NUMBER |
static com.google.protobuf.Parser<ClientProtos.Scan> |
PARSER |
static int |
REVERSED_FIELD_NUMBER |
static int |
SMALL_FIELD_NUMBER |
static int |
START_ROW_FIELD_NUMBER |
static int |
STOP_ROW_FIELD_NUMBER |
static int |
STORE_LIMIT_FIELD_NUMBER |
static int |
STORE_OFFSET_FIELD_NUMBER |
static int |
TIME_RANGE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
HBaseProtos.NameBytesPair |
getAttribute(int index)
repeated .NameBytesPair attribute = 2; |
int |
getAttributeCount()
repeated .NameBytesPair attribute = 2; |
List<HBaseProtos.NameBytesPair> |
getAttributeList()
repeated .NameBytesPair attribute = 2; |
HBaseProtos.NameBytesPairOrBuilder |
getAttributeOrBuilder(int index)
repeated .NameBytesPair attribute = 2; |
List<? extends HBaseProtos.NameBytesPairOrBuilder> |
getAttributeOrBuilderList()
repeated .NameBytesPair attribute = 2; |
int |
getBatchSize()
optional uint32 batch_size = 9; |
boolean |
getCacheBlocks()
optional bool cache_blocks = 8 [default = true]; |
int |
getCaching()
optional uint32 caching = 17; |
ClientProtos.Column |
getColumn(int index)
repeated .Column column = 1; |
int |
getColumnCount()
repeated .Column column = 1; |
List<ClientProtos.Column> |
getColumnList()
repeated .Column column = 1; |
ClientProtos.ColumnOrBuilder |
getColumnOrBuilder(int index)
repeated .Column column = 1; |
List<? extends ClientProtos.ColumnOrBuilder> |
getColumnOrBuilderList()
repeated .Column column = 1; |
static ClientProtos.Scan |
getDefaultInstance() |
ClientProtos.Scan |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
FilterProtos.Filter |
getFilter()
optional .Filter filter = 5; |
FilterProtos.FilterOrBuilder |
getFilterOrBuilder()
optional .Filter filter = 5; |
boolean |
getLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13; |
long |
getMaxResultSize()
optional uint64 max_result_size = 10; |
int |
getMaxVersions()
optional uint32 max_versions = 7 [default = 1]; |
com.google.protobuf.Parser<ClientProtos.Scan> |
getParserForType() |
boolean |
getReversed()
optional bool reversed = 15 [default = false]; |
int |
getSerializedSize() |
boolean |
getSmall()
optional bool small = 14; |
com.google.protobuf.ByteString |
getStartRow()
optional bytes start_row = 3; |
com.google.protobuf.ByteString |
getStopRow()
optional bytes stop_row = 4; |
int |
getStoreLimit()
optional uint32 store_limit = 11; |
int |
getStoreOffset()
optional uint32 store_offset = 12; |
HBaseProtos.TimeRange |
getTimeRange()
optional .TimeRange time_range = 6; |
HBaseProtos.TimeRangeOrBuilder |
getTimeRangeOrBuilder()
optional .TimeRange time_range = 6; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBatchSize()
optional uint32 batch_size = 9; |
boolean |
hasCacheBlocks()
optional bool cache_blocks = 8 [default = true]; |
boolean |
hasCaching()
optional uint32 caching = 17; |
boolean |
hasFilter()
optional .Filter filter = 5; |
int |
hashCode() |
boolean |
hasLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13; |
boolean |
hasMaxResultSize()
optional uint64 max_result_size = 10; |
boolean |
hasMaxVersions()
optional uint32 max_versions = 7 [default = 1]; |
boolean |
hasReversed()
optional bool reversed = 15 [default = false]; |
boolean |
hasSmall()
optional bool small = 14; |
boolean |
hasStartRow()
optional bytes start_row = 3; |
boolean |
hasStopRow()
optional bytes stop_row = 4; |
boolean |
hasStoreLimit()
optional uint32 store_limit = 11; |
boolean |
hasStoreOffset()
optional uint32 store_offset = 12; |
boolean |
hasTimeRange()
optional .TimeRange time_range = 6; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ClientProtos.Scan.Builder |
newBuilder() |
static ClientProtos.Scan.Builder |
newBuilder(ClientProtos.Scan prototype) |
ClientProtos.Scan.Builder |
newBuilderForType() |
protected ClientProtos.Scan.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static ClientProtos.Scan |
parseDelimitedFrom(InputStream input) |
static ClientProtos.Scan |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientProtos.Scan |
parseFrom(byte[] data) |
static ClientProtos.Scan |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientProtos.Scan |
parseFrom(com.google.protobuf.ByteString data) |
static ClientProtos.Scan |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientProtos.Scan |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ClientProtos.Scan |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientProtos.Scan |
parseFrom(InputStream input) |
static ClientProtos.Scan |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClientProtos.Scan.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<ClientProtos.Scan> PARSER
public static final int COLUMN_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER
public static final int START_ROW_FIELD_NUMBER
public static final int STOP_ROW_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
public static final int TIME_RANGE_FIELD_NUMBER
public static final int MAX_VERSIONS_FIELD_NUMBER
public static final int CACHE_BLOCKS_FIELD_NUMBER
public static final int BATCH_SIZE_FIELD_NUMBER
public static final int MAX_RESULT_SIZE_FIELD_NUMBER
public static final int STORE_LIMIT_FIELD_NUMBER
public static final int STORE_OFFSET_FIELD_NUMBER
public static final int LOAD_COLUMN_FAMILIES_ON_DEMAND_FIELD_NUMBER
public static final int SMALL_FIELD_NUMBER
public static final int REVERSED_FIELD_NUMBER
public static final int CACHING_FIELD_NUMBER
public static ClientProtos.Scan getDefaultInstance()
public ClientProtos.Scan 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<ClientProtos.Scan> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic List<ClientProtos.Column> getColumnList()
repeated .Column column = 1;getColumnList in interface ClientProtos.ScanOrBuilderpublic List<? extends ClientProtos.ColumnOrBuilder> getColumnOrBuilderList()
repeated .Column column = 1;getColumnOrBuilderList in interface ClientProtos.ScanOrBuilderpublic int getColumnCount()
repeated .Column column = 1;getColumnCount in interface ClientProtos.ScanOrBuilderpublic ClientProtos.Column getColumn(int index)
repeated .Column column = 1;getColumn in interface ClientProtos.ScanOrBuilderpublic ClientProtos.ColumnOrBuilder getColumnOrBuilder(int index)
repeated .Column column = 1;getColumnOrBuilder in interface ClientProtos.ScanOrBuilderpublic List<HBaseProtos.NameBytesPair> getAttributeList()
repeated .NameBytesPair attribute = 2;getAttributeList in interface ClientProtos.ScanOrBuilderpublic List<? extends HBaseProtos.NameBytesPairOrBuilder> getAttributeOrBuilderList()
repeated .NameBytesPair attribute = 2;getAttributeOrBuilderList in interface ClientProtos.ScanOrBuilderpublic int getAttributeCount()
repeated .NameBytesPair attribute = 2;getAttributeCount in interface ClientProtos.ScanOrBuilderpublic HBaseProtos.NameBytesPair getAttribute(int index)
repeated .NameBytesPair attribute = 2;getAttribute in interface ClientProtos.ScanOrBuilderpublic HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(int index)
repeated .NameBytesPair attribute = 2;getAttributeOrBuilder in interface ClientProtos.ScanOrBuilderpublic boolean hasStartRow()
optional bytes start_row = 3;hasStartRow in interface ClientProtos.ScanOrBuilderpublic com.google.protobuf.ByteString getStartRow()
optional bytes start_row = 3;getStartRow in interface ClientProtos.ScanOrBuilderpublic boolean hasStopRow()
optional bytes stop_row = 4;hasStopRow in interface ClientProtos.ScanOrBuilderpublic com.google.protobuf.ByteString getStopRow()
optional bytes stop_row = 4;getStopRow in interface ClientProtos.ScanOrBuilderpublic boolean hasFilter()
optional .Filter filter = 5;hasFilter in interface ClientProtos.ScanOrBuilderpublic FilterProtos.Filter getFilter()
optional .Filter filter = 5;getFilter in interface ClientProtos.ScanOrBuilderpublic FilterProtos.FilterOrBuilder getFilterOrBuilder()
optional .Filter filter = 5;getFilterOrBuilder in interface ClientProtos.ScanOrBuilderpublic boolean hasTimeRange()
optional .TimeRange time_range = 6;hasTimeRange in interface ClientProtos.ScanOrBuilderpublic HBaseProtos.TimeRange getTimeRange()
optional .TimeRange time_range = 6;getTimeRange in interface ClientProtos.ScanOrBuilderpublic HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder()
optional .TimeRange time_range = 6;getTimeRangeOrBuilder in interface ClientProtos.ScanOrBuilderpublic boolean hasMaxVersions()
optional uint32 max_versions = 7 [default = 1];hasMaxVersions in interface ClientProtos.ScanOrBuilderpublic int getMaxVersions()
optional uint32 max_versions = 7 [default = 1];getMaxVersions in interface ClientProtos.ScanOrBuilderpublic boolean hasCacheBlocks()
optional bool cache_blocks = 8 [default = true];hasCacheBlocks in interface ClientProtos.ScanOrBuilderpublic boolean getCacheBlocks()
optional bool cache_blocks = 8 [default = true];getCacheBlocks in interface ClientProtos.ScanOrBuilderpublic boolean hasBatchSize()
optional uint32 batch_size = 9;hasBatchSize in interface ClientProtos.ScanOrBuilderpublic int getBatchSize()
optional uint32 batch_size = 9;getBatchSize in interface ClientProtos.ScanOrBuilderpublic boolean hasMaxResultSize()
optional uint64 max_result_size = 10;hasMaxResultSize in interface ClientProtos.ScanOrBuilderpublic long getMaxResultSize()
optional uint64 max_result_size = 10;getMaxResultSize in interface ClientProtos.ScanOrBuilderpublic boolean hasStoreLimit()
optional uint32 store_limit = 11;hasStoreLimit in interface ClientProtos.ScanOrBuilderpublic int getStoreLimit()
optional uint32 store_limit = 11;getStoreLimit in interface ClientProtos.ScanOrBuilderpublic boolean hasStoreOffset()
optional uint32 store_offset = 12;hasStoreOffset in interface ClientProtos.ScanOrBuilderpublic int getStoreOffset()
optional uint32 store_offset = 12;getStoreOffset in interface ClientProtos.ScanOrBuilderpublic boolean hasLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13;
DO NOT add defaults to load_column_families_on_demand.
hasLoadColumnFamiliesOnDemand in interface ClientProtos.ScanOrBuilderpublic boolean getLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13;
DO NOT add defaults to load_column_families_on_demand.
getLoadColumnFamiliesOnDemand in interface ClientProtos.ScanOrBuilderpublic boolean hasSmall()
optional bool small = 14;hasSmall in interface ClientProtos.ScanOrBuilderpublic boolean getSmall()
optional bool small = 14;getSmall in interface ClientProtos.ScanOrBuilderpublic boolean hasReversed()
optional bool reversed = 15 [default = false];hasReversed in interface ClientProtos.ScanOrBuilderpublic boolean getReversed()
optional bool reversed = 15 [default = false];getReversed in interface ClientProtos.ScanOrBuilderpublic boolean hasCaching()
optional uint32 caching = 17;hasCaching in interface ClientProtos.ScanOrBuilderpublic int getCaching()
optional uint32 caching = 17;getCaching in interface ClientProtos.ScanOrBuilderpublic 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 ClientProtos.Scan parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientProtos.Scan parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientProtos.Scan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientProtos.Scan parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientProtos.Scan parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClientProtos.Scan parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientProtos.Scan parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClientProtos.Scan parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientProtos.Scan parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClientProtos.Scan parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientProtos.Scan.Builder newBuilder()
public ClientProtos.Scan.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClientProtos.Scan.Builder newBuilder(ClientProtos.Scan prototype)
public ClientProtos.Scan.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClientProtos.Scan.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2014 The Apache Software Foundation. All rights reserved.