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 |
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 |
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<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) |
boolean |
getAllowPartialResults()
optional bool allow_partial_results = 18; |
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; |
ClientProtos.Consistency |
getConsistency()
optional .Consistency consistency = 16 [default = STRONG]; |
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 |
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; |
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, 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<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 CONSISTENCY_FIELD_NUMBER
public static final int CACHING_FIELD_NUMBER
public static final int ALLOW_PARTIAL_RESULTS_FIELD_NUMBER
public static ClientProtos.Scan getDefaultInstance()
public ClientProtos.Scan 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<ClientProtos.Scan> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public List<ClientProtos.Column> getColumnList()
repeated .Column column = 1;
getColumnList
in interface ClientProtos.ScanOrBuilder
public List<? extends ClientProtos.ColumnOrBuilder> getColumnOrBuilderList()
repeated .Column column = 1;
getColumnOrBuilderList
in interface ClientProtos.ScanOrBuilder
public int getColumnCount()
repeated .Column column = 1;
getColumnCount
in interface ClientProtos.ScanOrBuilder
public ClientProtos.Column getColumn(int index)
repeated .Column column = 1;
getColumn
in interface ClientProtos.ScanOrBuilder
public ClientProtos.ColumnOrBuilder getColumnOrBuilder(int index)
repeated .Column column = 1;
getColumnOrBuilder
in interface ClientProtos.ScanOrBuilder
public List<HBaseProtos.NameBytesPair> getAttributeList()
repeated .NameBytesPair attribute = 2;
getAttributeList
in interface ClientProtos.ScanOrBuilder
public List<? extends HBaseProtos.NameBytesPairOrBuilder> getAttributeOrBuilderList()
repeated .NameBytesPair attribute = 2;
getAttributeOrBuilderList
in interface ClientProtos.ScanOrBuilder
public int getAttributeCount()
repeated .NameBytesPair attribute = 2;
getAttributeCount
in interface ClientProtos.ScanOrBuilder
public HBaseProtos.NameBytesPair getAttribute(int index)
repeated .NameBytesPair attribute = 2;
getAttribute
in interface ClientProtos.ScanOrBuilder
public HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(int index)
repeated .NameBytesPair attribute = 2;
getAttributeOrBuilder
in interface ClientProtos.ScanOrBuilder
public boolean hasStartRow()
optional bytes start_row = 3;
hasStartRow
in interface ClientProtos.ScanOrBuilder
public com.google.protobuf.ByteString getStartRow()
optional bytes start_row = 3;
getStartRow
in interface ClientProtos.ScanOrBuilder
public boolean hasStopRow()
optional bytes stop_row = 4;
hasStopRow
in interface ClientProtos.ScanOrBuilder
public com.google.protobuf.ByteString getStopRow()
optional bytes stop_row = 4;
getStopRow
in interface ClientProtos.ScanOrBuilder
public boolean hasFilter()
optional .Filter filter = 5;
hasFilter
in interface ClientProtos.ScanOrBuilder
public FilterProtos.Filter getFilter()
optional .Filter filter = 5;
getFilter
in interface ClientProtos.ScanOrBuilder
public FilterProtos.FilterOrBuilder getFilterOrBuilder()
optional .Filter filter = 5;
getFilterOrBuilder
in interface ClientProtos.ScanOrBuilder
public boolean hasTimeRange()
optional .TimeRange time_range = 6;
hasTimeRange
in interface ClientProtos.ScanOrBuilder
public HBaseProtos.TimeRange getTimeRange()
optional .TimeRange time_range = 6;
getTimeRange
in interface ClientProtos.ScanOrBuilder
public HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder()
optional .TimeRange time_range = 6;
getTimeRangeOrBuilder
in interface ClientProtos.ScanOrBuilder
public boolean hasMaxVersions()
optional uint32 max_versions = 7 [default = 1];
hasMaxVersions
in interface ClientProtos.ScanOrBuilder
public int getMaxVersions()
optional uint32 max_versions = 7 [default = 1];
getMaxVersions
in interface ClientProtos.ScanOrBuilder
public boolean hasCacheBlocks()
optional bool cache_blocks = 8 [default = true];
hasCacheBlocks
in interface ClientProtos.ScanOrBuilder
public boolean getCacheBlocks()
optional bool cache_blocks = 8 [default = true];
getCacheBlocks
in interface ClientProtos.ScanOrBuilder
public boolean hasBatchSize()
optional uint32 batch_size = 9;
hasBatchSize
in interface ClientProtos.ScanOrBuilder
public int getBatchSize()
optional uint32 batch_size = 9;
getBatchSize
in interface ClientProtos.ScanOrBuilder
public boolean hasMaxResultSize()
optional uint64 max_result_size = 10;
hasMaxResultSize
in interface ClientProtos.ScanOrBuilder
public long getMaxResultSize()
optional uint64 max_result_size = 10;
getMaxResultSize
in interface ClientProtos.ScanOrBuilder
public boolean hasStoreLimit()
optional uint32 store_limit = 11;
hasStoreLimit
in interface ClientProtos.ScanOrBuilder
public int getStoreLimit()
optional uint32 store_limit = 11;
getStoreLimit
in interface ClientProtos.ScanOrBuilder
public boolean hasStoreOffset()
optional uint32 store_offset = 12;
hasStoreOffset
in interface ClientProtos.ScanOrBuilder
public int getStoreOffset()
optional uint32 store_offset = 12;
getStoreOffset
in interface ClientProtos.ScanOrBuilder
public boolean hasLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13;
DO NOT add defaults to load_column_families_on_demand.
hasLoadColumnFamiliesOnDemand
in interface ClientProtos.ScanOrBuilder
public boolean getLoadColumnFamiliesOnDemand()
optional bool load_column_families_on_demand = 13;
DO NOT add defaults to load_column_families_on_demand.
getLoadColumnFamiliesOnDemand
in interface ClientProtos.ScanOrBuilder
public boolean hasSmall()
optional bool small = 14;
hasSmall
in interface ClientProtos.ScanOrBuilder
public boolean getSmall()
optional bool small = 14;
getSmall
in interface ClientProtos.ScanOrBuilder
public boolean hasReversed()
optional bool reversed = 15 [default = false];
hasReversed
in interface ClientProtos.ScanOrBuilder
public boolean getReversed()
optional bool reversed = 15 [default = false];
getReversed
in interface ClientProtos.ScanOrBuilder
public boolean hasConsistency()
optional .Consistency consistency = 16 [default = STRONG];
hasConsistency
in interface ClientProtos.ScanOrBuilder
public ClientProtos.Consistency getConsistency()
optional .Consistency consistency = 16 [default = STRONG];
getConsistency
in interface ClientProtos.ScanOrBuilder
public boolean hasCaching()
optional uint32 caching = 17;
hasCaching
in interface ClientProtos.ScanOrBuilder
public int getCaching()
optional uint32 caching = 17;
getCaching
in interface ClientProtos.ScanOrBuilder
public boolean hasAllowPartialResults()
optional bool allow_partial_results = 18;
hasAllowPartialResults
in interface ClientProtos.ScanOrBuilder
public boolean getAllowPartialResults()
optional bool allow_partial_results = 18;
getAllowPartialResults
in interface ClientProtos.ScanOrBuilder
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 ClientProtos.Scan parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientProtos.Scan parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientProtos.Scan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientProtos.Scan parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientProtos.Scan parseFrom(InputStream input) throws IOException
IOException
public static ClientProtos.Scan parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClientProtos.Scan parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ClientProtos.Scan parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClientProtos.Scan parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ClientProtos.Scan parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClientProtos.Scan.Builder newBuilder()
public ClientProtos.Scan.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ClientProtos.Scan.Builder newBuilder(ClientProtos.Scan prototype)
public ClientProtos.Scan.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ClientProtos.Scan.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.