AppSearchSchema.LongPropertyConfig


public final class AppSearchSchema.LongPropertyConfig extends AppSearchSchema.PropertyConfig


Configuration for a property containing a 64-bit integer.

Summary

Nested types

Builder for LongPropertyConfig.

Constants

static final int

Content in this property will not be indexed.

static final int
@RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = Features.NUMERIC_SEARCH)
INDEXING_TYPE_RANGE = 1

Content in this property will be indexed and can be fetched via numeric search range query.

Public methods

int

Returns how the property is indexed.

Inherited Constants

From androidx.appsearch.app.AppSearchSchema.PropertyConfig
static final int

Zero or one value [0,1].

static final int

Any number of items (including zero) [0...*].

static final int

Exactly one value [1].

Inherited methods

From androidx.appsearch.app.AppSearchSchema.PropertyConfig
boolean
int

Returns the cardinality of the property (whether it is optional, required or repeated).

@NonNull String

Returns a natural language description of this property.

@NonNull String

Returns the name of this property.

int
@NonNull String

Constants

INDEXING_TYPE_NONE

Added in 1.1.0-alpha06
public static final int INDEXING_TYPE_NONE = 0

Content in this property will not be indexed.

INDEXING_TYPE_RANGE

Added in 1.1.0-alpha06
@RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = Features.NUMERIC_SEARCH)
public static final int INDEXING_TYPE_RANGE = 1

Content in this property will be indexed and can be fetched via numeric search range query.

For example, a property with 1024 should match numeric search range query [0, 2000].

Public methods

getIndexingType

Added in 1.1.0-alpha06
public int getIndexingType()

Returns how the property is indexed.