public static final class ClientPB.Scan extends com.google.protobuf.GeneratedMessageLite implements ClientPB.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 |
ClientPB.Scan.Builder
Protobuf type
Scan |
com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_PARTIAL_RESULTS_FIELD_NUMBER |
static int |
ATTRIBUTE_FIELD_NUMBER |
static int |
BATCH_SIZE_FIELD_NUMBER |
static int |
CACHE_BLOCKS_FIELD_NUMBER |
static int |
CACHING_FIELD_NUMBER |
static int |
CF_TIME_RANGE_FIELD_NUMBER |
static int |
COLUMN_FIELD_NUMBER |
static int |
CONSISTENCY_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<ClientPB.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 |
getAllowPartialResults()
optional bool allow_partial_results = 18; |
HBasePB.NameBytesPair |
getAttribute(int index)
repeated .NameBytesPair attribute = 2; |
int |
getAttributeCount()
repeated .NameBytesPair attribute = 2; |
List<HBasePB.NameBytesPair> |
getAttributeList()
repeated .NameBytesPair attribute = 2; |
HBasePB.NameBytesPairOrBuilder |
getAttributeOrBuilder(int index)
repeated .NameBytesPair attribute = 2; |
List<? extends HBasePB.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; |
HBasePB.ColumnFamilyTimeRange |
getCfTimeRange(int index)
repeated .ColumnFamilyTimeRange cf_time_range = 19; |
int |
getCfTimeRangeCount()
repeated .ColumnFamilyTimeRange cf_time_range = 19; |
List<HBasePB.ColumnFamilyTimeRange> |
getCfTimeRangeList()
repeated .ColumnFamilyTimeRange cf_time_range = 19; |
HBasePB.ColumnFamilyTimeRangeOrBuilder |
getCfTimeRangeOrBuilder(int index)
repeated .ColumnFamilyTimeRange cf_time_range = 19; |
List<? extends HBasePB.ColumnFamilyTimeRangeOrBuilder> |
getCfTimeRangeOrBuilderList()
repeated .ColumnFamilyTimeRange cf_time_range = 19; |
ClientPB.Column |
getColumn(int index)
repeated .Column column = 1; |
int |
getColumnCount()
repeated .Column column = 1; |
List<ClientPB.Column> |
getColumnList()
repeated .Column column = 1; |
ClientPB.ColumnOrBuilder |
getColumnOrBuilder(int index)
repeated .Column column = 1; |
List<? extends ClientPB.ColumnOrBuilder> |
getColumnOrBuilderList()
repeated .Column column = 1; |
ClientPB.Consistency |
getConsistency()
optional .Consistency consistency = 16 [default = STRONG]; |
static ClientPB.Scan |
getDefaultInstance() |
ClientPB.Scan |
getDefaultInstanceForType() |
FilterPB.Filter |
getFilter()
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<ClientPB.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; |
HBasePB.TimeRange |
getTimeRange()
optional .TimeRange time_range = 6; |
boolean |
hasAllowPartialResults()
optional bool allow_partial_results = 18; |
boolean |
hasBatchSize()
optional uint32 batch_size = 9; |
boolean |
hasCacheBlocks()
optional bool cache_blocks = 8 [default = true]; |
boolean |
hasCaching()
optional uint32 caching = 17; |
boolean |
hasConsistency()
optional .Consistency consistency = 16 [default = STRONG]; |
boolean |
hasFilter()
optional .Filter filter = 5; |
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; |
boolean |
isInitialized() |
static ClientPB.Scan.Builder |
newBuilder() |
static ClientPB.Scan.Builder |
newBuilder(ClientPB.Scan prototype) |
ClientPB.Scan.Builder |
newBuilderForType() |
static ClientPB.Scan |
parseDelimitedFrom(InputStream input) |
static ClientPB.Scan |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientPB.Scan |
parseFrom(byte[] data) |
static ClientPB.Scan |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientPB.Scan |
parseFrom(com.google.protobuf.ByteString data) |
static ClientPB.Scan |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientPB.Scan |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ClientPB.Scan |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientPB.Scan |
parseFrom(InputStream input) |
static ClientPB.Scan |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClientPB.Scan.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
makeExtensionsImmutable, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseUnknownFieldpublic static com.google.protobuf.Parser<ClientPB.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 CONSISTENCY_FIELD_NUMBER
public static final int CACHING_FIELD_NUMBER
public static final int ALLOW_PARTIAL_RESULTS_FIELD_NUMBER
public static final int CF_TIME_RANGE_FIELD_NUMBER
public static ClientPB.Scan getDefaultInstance()
public ClientPB.Scan getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilderpublic com.google.protobuf.Parser<ClientPB.Scan> getParserForType()
getParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageLitepublic List<ClientPB.Column> getColumnList()
repeated .Column column = 1;getColumnList in interface ClientPB.ScanOrBuilderpublic List<? extends ClientPB.ColumnOrBuilder> getColumnOrBuilderList()
repeated .Column column = 1;public int getColumnCount()
repeated .Column column = 1;getColumnCount in interface ClientPB.ScanOrBuilderpublic ClientPB.Column getColumn(int index)
repeated .Column column = 1;getColumn in interface ClientPB.ScanOrBuilderpublic ClientPB.ColumnOrBuilder getColumnOrBuilder(int index)
repeated .Column column = 1;public List<HBasePB.NameBytesPair> getAttributeList()
repeated .NameBytesPair attribute = 2;getAttributeList in interface ClientPB.ScanOrBuilderpublic List<? extends HBasePB.NameBytesPairOrBuilder> getAttributeOrBuilderList()
repeated .NameBytesPair attribute = 2;public int getAttributeCount()
repeated .NameBytesPair attribute = 2;getAttributeCount in interface ClientPB.ScanOrBuilderpublic HBasePB.NameBytesPair getAttribute(int index)
repeated .NameBytesPair attribute = 2;getAttribute in interface ClientPB.ScanOrBuilderpublic HBasePB.NameBytesPairOrBuilder getAttributeOrBuilder(int index)
repeated .NameBytesPair attribute = 2;public boolean hasStartRow()
optional bytes start_row = 3;hasStartRow in interface ClientPB.ScanOrBuilderpublic com.google.protobuf.ByteString getStartRow()
optional bytes start_row = 3;getStartRow in interface ClientPB.ScanOrBuilderpublic boolean hasStopRow()
optional bytes stop_row = 4;hasStopRow in interface ClientPB.ScanOrBuilderpublic com.google.protobuf.ByteString getStopRow()
optional bytes stop_row = 4;getStopRow in interface ClientPB.ScanOrBuilderpublic boolean hasFilter()
optional .Filter filter = 5;hasFilter in interface ClientPB.ScanOrBuilderpublic FilterPB.Filter getFilter()
optional .Filter filter = 5;getFilter in interface ClientPB.ScanOrBuilderpublic boolean hasTimeRange()
optional .TimeRange time_range = 6;hasTimeRange in interface ClientPB.ScanOrBuilderpublic HBasePB.TimeRange getTimeRange()
optional .TimeRange time_range = 6;getTimeRange in interface ClientPB.ScanOrBuilderpublic boolean hasMaxVersions()
optional uint32 max_versions = 7 [default = 1];hasMaxVersions in interface ClientPB.ScanOrBuilderpublic int getMaxVersions()
optional uint32 max_versions = 7 [default = 1];getMaxVersions in interface ClientPB.ScanOrBuilderpublic boolean hasCacheBlocks()
optional bool cache_blocks = 8 [default = true];hasCacheBlocks in interface ClientPB.ScanOrBuilderpublic boolean getCacheBlocks()
optional bool cache_blocks = 8 [default = true];getCacheBlocks in interface ClientPB.ScanOrBuilderpublic boolean hasBatchSize()
optional uint32 batch_size = 9;hasBatchSize in interface ClientPB.ScanOrBuilderpublic int getBatchSize()
optional uint32 batch_size = 9;getBatchSize in interface ClientPB.ScanOrBuilderpublic boolean hasMaxResultSize()
optional uint64 max_result_size = 10;hasMaxResultSize in interface ClientPB.ScanOrBuilderpublic long getMaxResultSize()
optional uint64 max_result_size = 10;getMaxResultSize in interface ClientPB.ScanOrBuilderpublic boolean hasStoreLimit()
optional uint32 store_limit = 11;hasStoreLimit in interface ClientPB.ScanOrBuilderpublic int getStoreLimit()
optional uint32 store_limit = 11;getStoreLimit in interface ClientPB.ScanOrBuilderpublic boolean hasStoreOffset()
optional uint32 store_offset = 12;hasStoreOffset in interface ClientPB.ScanOrBuilderpublic int getStoreOffset()
optional uint32 store_offset = 12;getStoreOffset in interface ClientPB.ScanOrBuilderpublic boolean hasLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13;
DO NOT add defaults to load_column_families_on_demand.
hasLoadColumnFamiliesOnDemand in interface ClientPB.ScanOrBuilderpublic boolean getLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13;
DO NOT add defaults to load_column_families_on_demand.
getLoadColumnFamiliesOnDemand in interface ClientPB.ScanOrBuilderpublic boolean hasSmall()
optional bool small = 14;hasSmall in interface ClientPB.ScanOrBuilderpublic boolean getSmall()
optional bool small = 14;getSmall in interface ClientPB.ScanOrBuilderpublic boolean hasReversed()
optional bool reversed = 15 [default = false];hasReversed in interface ClientPB.ScanOrBuilderpublic boolean getReversed()
optional bool reversed = 15 [default = false];getReversed in interface ClientPB.ScanOrBuilderpublic boolean hasConsistency()
optional .Consistency consistency = 16 [default = STRONG];hasConsistency in interface ClientPB.ScanOrBuilderpublic ClientPB.Consistency getConsistency()
optional .Consistency consistency = 16 [default = STRONG];getConsistency in interface ClientPB.ScanOrBuilderpublic boolean hasCaching()
optional uint32 caching = 17;hasCaching in interface ClientPB.ScanOrBuilderpublic int getCaching()
optional uint32 caching = 17;getCaching in interface ClientPB.ScanOrBuilderpublic boolean hasAllowPartialResults()
optional bool allow_partial_results = 18;hasAllowPartialResults in interface ClientPB.ScanOrBuilderpublic boolean getAllowPartialResults()
optional bool allow_partial_results = 18;getAllowPartialResults in interface ClientPB.ScanOrBuilderpublic List<HBasePB.ColumnFamilyTimeRange> getCfTimeRangeList()
repeated .ColumnFamilyTimeRange cf_time_range = 19;getCfTimeRangeList in interface ClientPB.ScanOrBuilderpublic List<? extends HBasePB.ColumnFamilyTimeRangeOrBuilder> getCfTimeRangeOrBuilderList()
repeated .ColumnFamilyTimeRange cf_time_range = 19;public int getCfTimeRangeCount()
repeated .ColumnFamilyTimeRange cf_time_range = 19;getCfTimeRangeCount in interface ClientPB.ScanOrBuilderpublic HBasePB.ColumnFamilyTimeRange getCfTimeRange(int index)
repeated .ColumnFamilyTimeRange cf_time_range = 19;getCfTimeRange in interface ClientPB.ScanOrBuilderpublic HBasePB.ColumnFamilyTimeRangeOrBuilder getCfTimeRangeOrBuilder(int index)
repeated .ColumnFamilyTimeRange cf_time_range = 19;public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderpublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLiteIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLiteprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageLiteObjectStreamExceptionpublic static ClientPB.Scan parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientPB.Scan parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientPB.Scan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientPB.Scan parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientPB.Scan parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClientPB.Scan parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientPB.Scan parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClientPB.Scan parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientPB.Scan parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClientPB.Scan parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientPB.Scan.Builder newBuilder()
public ClientPB.Scan.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessageLitepublic static ClientPB.Scan.Builder newBuilder(ClientPB.Scan prototype)
public ClientPB.Scan.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessageLiteCopyright © 2010-2017, The Async HBase Authors