SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
implement hbase changes
Chris Lu54527f032666
diff --git a/weed/filer/hbase/hbase_store.go b/weed/filer/hbase/hbase_store.goindex 6b0ad58b96..5a64ffe7ea 100644--- a/weed/filer/hbase/hbase_store.go+++ b/weed/filer/hbase/hbase_store.go@@ -148,18 +148,19 @@ func (store *HbaseStore) DeleteFolderChildren(ctx context.Context, path util.Fulreturn}-func (store *HbaseStore) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int) ([]*filer.Entry, error) {+func (store *HbaseStore) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int) ([]*filer.Entry, bool, error) {return store.ListDirectoryPrefixedEntries(ctx, dirPath, startFileName, includeStartFile, limit, "")}-func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int, prefix string) ([]*filer.Entry, error) {+func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int, prefix string) ([]*filer.Entry, bool, error) {family := map[string][]string{store.cfMetaDir: {COLUMN_NAME}}expectedPrefix := []byte(dirPath.Child(prefix))scan, err := hrpc.NewScanRange(ctx, store.table, expectedPrefix, nil, hrpc.Families(family))if err != nil {- return nil, err+ return nil, false, err}+ var hasMore boolvar entries []*filer.Entryscanner := store.Client.Scan(scan)defer scanner.Close()@@ -169,7 +170,7 @@ func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPabreak}if err != nil {- return entries, err+ return entries, hasMore, err}if len(res.Cells) == 0 {continue@@ -194,6 +195,7 @@ func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPalimit--if limit < 0 {+ hasMore = truebreak}entry := &filer.Entry{@@ -207,7 +209,7 @@ func (store *HbaseStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPaentries = append(entries, entry)}- return entries, nil+ return entries, hasMore, nil}func (store *HbaseStore) BeginTransaction(ctx context.Context) (context.Context, error) {