Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6174089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:41:33+00:00 2026-05-23T23:41:33+00:00

I want to develop a hierarchical database to store directory structure in the filesystem.

  • 0

I want to develop a hierarchical database to store directory structure in the filesystem.

Just like

 Root
   -dir
     -subdir
     -subdir
        -subdir
            -subdir
            -subdir
     -subdir
     -subdir

can i use Apache Cassandra for this

a java example will be better to understand.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:41:34+00:00Added an answer on May 23, 2026 at 11:41 pm

    You could store the data, type and parent of a path in a column family,

    paths { #colum family 
        "/some/path" { # key
             "type" : "file|directory" #column, either file or directory, if this is a file or a directory
             "data" : "??" # if this is a file, the data for the file.  you don't want to be storing very large files in cassandra in one column
        }
    }
    

    With cassandra, you need to denormalize to serve the queries you are going to perform. You probably want to query the children of a directory, so have a structure like,

    children { #column family 
        "/some/path" { # key
             "child-path-1" : null #column, one for each child of /some/path
             "child-path-2" : null 
        }
    }
    

    Add more column families to support the other queries you wish to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop simple Serverless LAN Chat program just for fun. How can
I want to develop Facebook pages and tabs like the following where i can
I want to develop swipe buttons just like we see for lock unlock function
I want to develop a windows application. If I use native C++ and MFC
I want to develop a mobile web application using asp.net 3.5 that can be
I want to develop a web application, like an online scheduler. (Yes I know
I want to develop a task manager like application where I want to display
I want to develop an Android application which can run on all ,screen type
I want to develop a website web chat application like yahoo. Only difference is
I want to develop a screensaver-like app where the only way of getting back

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.