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

  • SEARCH
  • Home
  • 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 7960351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:43:53+00:00 2026-06-04T04:43:53+00:00

I have a super column family for which over the time need to remove

  • 0

I have a super column family for which over the time need to remove a range of super columns. I searched around, didn’t seem to find a solution for that using hector. Can anyone please help?

  • 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-06-04T04:43:54+00:00Added an answer on June 4, 2026 at 4:43 am

    You’ll have to do a column slice first to get the columns you want to delete, then loop through and generate a list of mutations. You can then send all these mutations to Cassandra in one Hector call:

    Mutator<..> mutator = HFactory.createMutator(keyspace, serializer);
    
    SuperSlice<..> result = HFactory.createSuperSliceQuery(keyspace, ... serializers ...)
                                    .setColumnFamily(cf)
                                    .setKey(key)
                                    .setRange("", "", false, Integer.MAX_VALUE)
                                    .execute()
                                    .get();
    
    for (HSuperColumn<..> col in result.getSuperColumns())
        mutator.addDeletion(key, cf, col.getName(), serializer);
    
    mutator.execute();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Noob here. I have a super column family sorted by timeuuidtype which has a
I have a super pom defined in which I specify a "resources" directory for
I have a filename 10.10.10.17_super-micro-100-13.txt from which I need to extract everything between _
I have done a few projects lately using a Database Object super class which
I have 3 tables, one which represents a supertype, with an ID column. Two
I have a declarative base class Entity which defines the column name as polymorphic,
* Newbie Alert * I have an AdvancedDataGrid with 5 columns. The second column,
Possible Duplicate: nullPointerException in multi column list I have following app which fetches data
I have a JTable with a number of columns. I want a particular column
I have a datagrid with 2 columns. I need to access the item renderer

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.