Package io.dingodb.common
Class Common.DocumentSearchParameter
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.common.Common.DocumentSearchParameter
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Common.DocumentSearchParameterOrBuilder,Serializable
- Enclosing class:
- Common
public static final class Common.DocumentSearchParameter
extends com.google.protobuf.GeneratedMessageV3
implements Common.DocumentSearchParameterOrBuilder
Protobuf type
dingodb.pb.common.DocumentSearchParameter- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.common.DocumentSearchParameterNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColumnNames(int index) use column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignoredcom.google.protobuf.ByteStringgetColumnNamesBytes(int index) use column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignoredintuse column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignoredcom.google.protobuf.ProtocolStringListuse column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignoredstatic final com.google.protobuf.Descriptors.DescriptorlonggetDocumentIds(int index) if use_id_filter = true, use this fieldintif use_id_filter = true, use this fieldif use_id_filter = true, use this fieldcom.google.protobuf.Parser<Common.DocumentSearchParameter>The query_string for searchcom.google.protobuf.ByteStringThe query_string for searchbooleanif query_unlimited = true, top_n is igonredgetSelectedKeys(int index) If without_scalar_data is false, selected_keys is used to select scalar data,com.google.protobuf.ByteStringgetSelectedKeysBytes(int index) If without_scalar_data is false, selected_keys is used to select scalar data,intIf without_scalar_data is false, selected_keys is used to select scalar data,com.google.protobuf.ProtocolStringListIf without_scalar_data is false, selected_keys is used to select scalar data,intintgetTopN()The number of top results to return.booleanuse id filterbooleanfor output, if only id is needed, set without_scalar_data = true else set without_scalar_data = false, and set selected_keys to select scalar databooleanif this parameter is null, all scalar data will be returned.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Common.DocumentSearchParameter prototype) protected Common.DocumentSearchParameter.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.DocumentSearchParameter>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TOP_N_FIELD_NUMBER
public static final int TOP_N_FIELD_NUMBER- See Also:
-
QUERY_STRING_FIELD_NUMBER
public static final int QUERY_STRING_FIELD_NUMBER- See Also:
-
USE_ID_FILTER_FIELD_NUMBER
public static final int USE_ID_FILTER_FIELD_NUMBER- See Also:
-
DOCUMENT_IDS_FIELD_NUMBER
public static final int DOCUMENT_IDS_FIELD_NUMBER- See Also:
-
COLUMN_NAMES_FIELD_NUMBER
public static final int COLUMN_NAMES_FIELD_NUMBER- See Also:
-
WITHOUT_SCALAR_DATA_FIELD_NUMBER
public static final int WITHOUT_SCALAR_DATA_FIELD_NUMBER- See Also:
-
SELECTED_KEYS_FIELD_NUMBER
public static final int SELECTED_KEYS_FIELD_NUMBER- See Also:
-
WITHOUT_TABLE_DATA_FIELD_NUMBER
public static final int WITHOUT_TABLE_DATA_FIELD_NUMBER- See Also:
-
QUERY_UNLIMITED_FIELD_NUMBER
public static final int QUERY_UNLIMITED_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTopN
public int getTopN()The number of top results to return.
uint32 top_n = 1;- Specified by:
getTopNin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The topN.
-
getQueryString
The query_string for search
string query_string = 2;- Specified by:
getQueryStringin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The queryString.
-
getQueryStringBytes
public com.google.protobuf.ByteString getQueryStringBytes()The query_string for search
string query_string = 2;- Specified by:
getQueryStringBytesin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The bytes for queryString.
-
getUseIdFilter
public boolean getUseIdFilter()use id filter
bool use_id_filter = 3;- Specified by:
getUseIdFilterin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The useIdFilter.
-
getDocumentIdsList
if use_id_filter = true, use this field
repeated int64 document_ids = 4;- Specified by:
getDocumentIdsListin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- A list containing the documentIds.
-
getDocumentIdsCount
public int getDocumentIdsCount()if use_id_filter = true, use this field
repeated int64 document_ids = 4;- Specified by:
getDocumentIdsCountin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The count of documentIds.
-
getDocumentIds
public long getDocumentIds(int index) if use_id_filter = true, use this field
repeated int64 document_ids = 4;- Specified by:
getDocumentIdsin interfaceCommon.DocumentSearchParameterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The documentIds at the given index.
-
getColumnNamesList
public com.google.protobuf.ProtocolStringList getColumnNamesList()use column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignored
repeated string column_names = 5;- Specified by:
getColumnNamesListin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- A list containing the columnNames.
-
getColumnNamesCount
public int getColumnNamesCount()use column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignored
repeated string column_names = 5;- Specified by:
getColumnNamesCountin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The count of columnNames.
-
getColumnNames
use column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignored
repeated string column_names = 5;- Specified by:
getColumnNamesin interfaceCommon.DocumentSearchParameterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The columnNames at the given index.
-
getColumnNamesBytes
public com.google.protobuf.ByteString getColumnNamesBytes(int index) use column filter if query_string is simple string, use column_names to select columns if query_string is full functional expr, like "col1: value1 AND col2: value2", column_names is ignored
repeated string column_names = 5;- Specified by:
getColumnNamesBytesin interfaceCommon.DocumentSearchParameterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the columnNames at the given index.
-
getWithoutScalarData
public boolean getWithoutScalarData()for output, if only id is needed, set without_scalar_data = true else set without_scalar_data = false, and set selected_keys to select scalar data
bool without_scalar_data = 10;- Specified by:
getWithoutScalarDatain interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The withoutScalarData.
-
getSelectedKeysList
public com.google.protobuf.ProtocolStringList getSelectedKeysList()If without_scalar_data is false, selected_keys is used to select scalar data,
repeated string selected_keys = 11;- Specified by:
getSelectedKeysListin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- A list containing the selectedKeys.
-
getSelectedKeysCount
public int getSelectedKeysCount()If without_scalar_data is false, selected_keys is used to select scalar data,
repeated string selected_keys = 11;- Specified by:
getSelectedKeysCountin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The count of selectedKeys.
-
getSelectedKeys
If without_scalar_data is false, selected_keys is used to select scalar data,
repeated string selected_keys = 11;- Specified by:
getSelectedKeysin interfaceCommon.DocumentSearchParameterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The selectedKeys at the given index.
-
getSelectedKeysBytes
public com.google.protobuf.ByteString getSelectedKeysBytes(int index) If without_scalar_data is false, selected_keys is used to select scalar data,
repeated string selected_keys = 11;- Specified by:
getSelectedKeysBytesin interfaceCommon.DocumentSearchParameterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the selectedKeys at the given index.
-
getWithoutTableData
public boolean getWithoutTableData()if this parameter is null, all scalar data will be returned.
bool without_table_data = 12;- Specified by:
getWithoutTableDatain interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The withoutTableData.
-
getQueryUnlimited
public boolean getQueryUnlimited()if query_unlimited = true, top_n is igonred
bool query_unlimited = 13;- Specified by:
getQueryUnlimitedin interfaceCommon.DocumentSearchParameterOrBuilder- Returns:
- The queryUnlimited.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Common.DocumentSearchParameter parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Common.DocumentSearchParameter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Common.DocumentSearchParameter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Common.DocumentSearchParameter.Builder newBuilder(Common.DocumentSearchParameter prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Common.DocumentSearchParameter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-