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

Caution

You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.

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
    • v0.6.1
  • Getting Started
  • Statements
    • Executing CQL Statements - Best Practices
    • Unprepared Statements
    • Batch Statements
    • Parameterized queries
  • Fetching Large Result Sets
  • Logging
  • Policies
    • Load Balancing
    • Retry Policies
  • Authentication
  • Shutdown
  • Migration Guide
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • concurrent
      • datastax
        • graph
        • search
      • 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
        • BigDecimal
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • Long
        • ResultSet
        • ResultStream
        • Row
        • TimeUuid
        • Tuple
        • Uuid
        • Vector
    • Classes
      • AddressResolver
      • ByteOrderedToken
      • Client
      • ColumnInfo
      • DateRange
      • DateRangeBound
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
      • Edge
      • Element
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • GraphResultSet
      • HashSet
      • Host
      • HostMap
      • LineString
      • Murmur3Token
      • Path
      • Point
      • Polygon
      • Property
      • RandomToken
      • SslOptions
      • Token
      • TokenRange
      • Vertex
      • VertexProperty
    • 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 20 Jun 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.2