ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Node.js Driver API Reference Modules metadata Index

Index¶

metadata~Index(name, target, kind, options)

Describes a CQL index.

Constructor¶

new Index(name, target, kind, options)

Creates a new Index instance.

Parameters:
Name Type Description
name String
target String
kind Number | String
options Object

Source

metadata/schema-index.js, line 17

Members¶

kind :Number

A numeric value representing index kind (0: custom, 1: keys, 2: composite);

Type:
  • Number

Source

metadata/schema-index.js, line 40

name :String

Name of the index.

Type:
  • String

Source

metadata/schema-index.js, line 30

options :Object

An associative array containing the index options

Type:
  • Object

Source

metadata/schema-index.js, line 45

target :String

Target of the index.

Type:
  • String

Source

metadata/schema-index.js, line 35

Methods¶

isCompositesKind() → {Boolean}

Determines if the index is of composites kind

Source

metadata/schema-index.js, line 117

Returns:
Type
Boolean

isCustomKind() → {Boolean}

Determines if the index is of custom kind

Source

metadata/schema-index.js, line 131

Returns:
Type
Boolean

isKeysKind() → {Boolean}

Determines if the index is of keys kind

Source

metadata/schema-index.js, line 124

Returns:
Type
Boolean

(static) fromColumnRows(columnRows, columnsByName) → {Array:.<Index:>}

Parses Index information from rows in the legacy 'system.schema_columns' table.

Parameters:
Name Type Description
columnRows Array:.<Row:>
columnsByName Object:.<String:, {name:, type:}>

Source

metadata/schema-index.js, line 74

Deprecated

It will be removed in the next major version.

Returns:
Type
Array:.<Index:>

(static) fromRows(indexRows) → {Array:.<Index:>}

Parses Index information from rows in the 'system_schema.indexes' table

Parameters:
Name Type Description
indexRows Array:.<Row:>

Source

metadata/schema-index.js, line 53

Deprecated

It will be removed in the next major version.

Returns:
Type
Array:.<Index:>

Was this page helpful?

PREVIOUS
ColumnMetadata
NEXT
KeyspaceMetadata
  • Create an issue
  • Edit this page

On this page

  • Index
    • Constructor
    • Members
    • Methods
ScyllaDB Node.js Driver
Search Ask AI
  • main
    • main
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • concurrent
      • datastax
      • errors
        • ArgumentError
        • AuthenticationError
        • BusyConnectionError
        • DriverInternalError
        • NoHostAvailableError
        • NotSupportedError
        • OperationTimedOutError
        • ResponseError
      • geometry
      • mapping
        • DefaultTableMappings
        • Mapper
        • ModelBatchItem
        • ModelMapper
        • Result
        • UnderscoreCqlToCamelCaseMappings
        • TableMappings
      • metadata
        • Aggregate
        • ClientState
        • ColumnMetadata
        • Index
        • KeyspaceMetadata
        • MaterializedView
        • Metadata
        • SchemaFunction
        • Strategy
        • TableMetadata
        • UdtField
        • UserDefinedType
      • metrics
        • DefaultMetrics
        • ClientMetrics
      • policies
        • addressResolution
          • AddressTranslator
          • EC2MultiRegionTranslator
          • MappingAddressTranslator
        • loadBalancing
          • AllowListPolicy
          • DCAwareRoundRobinPolicy
          • DefaultLoadBalancingPolicy
          • LegacyDefaultLoadBalancingPolicy
          • LoadBalancingConfig
          • LoadBalancingPolicy
          • RoundRobinPolicy
          • TokenAwarePolicy
        • reconnection
          • ConstantReconnectionPolicy
          • ExponentialReconnectionPolicy
          • ReconnectionPolicy
        • retry
          • FallthroughRetryPolicy
          • RetryPolicy
        • speculativeExecution
          • ConstantSpeculativeExecutionPolicy
          • NoSpeculativeExecutionPolicy
          • SpeculativeExecutionPolicy
        • timestampGeneration
          • MonotonicTimestampGenerator
          • TimestampGenerator
      • tracker
        • RequestLogger
        • RequestTracker
      • types
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • Long
        • ResultSet
        • ResultStream
        • Row
        • TimeUuid
        • Vector
    • Classes
      • AddressResolver
      • ByteOrderedToken
      • Client
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • HashSet
      • Host
      • HostMap
      • LineString
      • Murmur3Token
      • Point
      • Polygon
      • PreparedInfo
      • RandomToken
      • SslOptions
      • Token
      • TokenRange
    • Interfaces
    • Events
    • Global Functions and Constants
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 14 May 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.2