Contents Menu Expand Light mode Dark mode Auto light/dark mode
DocArray 0.21.1 documentation
Light Logo Dark Logo
Star

Introduction

  • What is DocArray?
  • Comparing to Alternatives

Get Started

  • Install
  • Data Types
    • Text
    • Image
    • Video
    • Audio
    • 3D Mesh
    • Table
    • Multi-modal

User Guides

  • Document
    • Construct
    • Serialization
    • Access Attributes
    • Embedding
    • Nested Structure
    • Visualization
    • Fluent Interface
  • DocumentArray
    • Construct
    • Serialization
    • Access Documents
    • Access Attributes
    • Query by Conditions
    • Parallelization
    • Visualization
    • Process via External Flow or Executor
    • Embed via Neural Network
    • Find Nearest Neighbors
    • Search over Nested Structure
    • Evaluate Matches
  • Dataclass
    • Construct
    • Access Modality
    • Support New Modality
    • Process Modality
  • Document Store
    • SQLite
    • Annlite
    • Qdrant
    • Elasticsearch
    • Weaviate
    • Redis
    • Milvus
    • Opensearch
    • Add New Document Store
    • One Million Scale Benchmark

Integrations

  • Cloud Support
    • Authentication
    • Data Management
  • Jupyter Notebook/Colab
  • PyTorch/Deep Learning Frameworks
  • FastAPI/Pydantic
  • GraphQL

Developer Reference

  • Python API
  • Protocol Documentation
  • Changelog
Back to top

docarray.array.storage.base.helper module#

class docarray.array.storage.base.helper.Offset2ID(ids=None, list_like=True)[source]#

Bases: object

get_id(idx)[source]#
append(data)[source]#
extend(data)[source]#
update(position, data_id)[source]#
delete_by_id(_id)[source]#
index(_id)[source]#
delete_by_offset(position)[source]#
insert(position, data_id)[source]#
clear()[source]#
delete_by_ids(ids)[source]#
update_ids(_ids_map)[source]#
save()[source]#
load()[source]#
Copyright © DocArray is a trademark of LF Projects, LLC.
Last updated on Mar 07, 2023
Contents
  • docarray.array.storage.base.helper module
    • Offset2ID
      • Offset2ID.get_id()
      • Offset2ID.append()
      • Offset2ID.extend()
      • Offset2ID.update()
      • Offset2ID.delete_by_id()
      • Offset2ID.index()
      • Offset2ID.delete_by_offset()
      • Offset2ID.insert()
      • Offset2ID.clear()
      • Offset2ID.delete_by_ids()
      • Offset2ID.update_ids()
      • Offset2ID.save()
      • Offset2ID.load()