forked from tsuna/gohbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tableop.go
29 lines (23 loc) · 779 Bytes
/
tableop.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2015 The GoHBase Authors. All rights reserved.
// This file is part of GoHBase.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
package hrpc
import (
"errors"
"github.com/tsuna/gohbase/filter"
)
// tableOp represents an administrative operation on a table.
type tableOp struct {
base
}
// SetFilter always returns an error.
func (to *tableOp) SetFilter(filter.Filter) error {
// Doesn't make sense on this kind of RPC.
return errors.New("Cannot set filter on admin operations.")
}
// SetFamilies always returns an error.
func (to *tableOp) SetFamilies(map[string][]string) error {
// Doesn't make sense on this kind of RPC.
return errors.New("Cannot set families on admin operations.")
}