func NewBinaryComparator(comparable *ByteArrayComparable) *BinaryComparator {
	return &BinaryComparator{
		Comparable: comparable.toPB(),
	}
}
NewBinaryComparator is TODO
package filter
import (
	"errors"
	"github.com/tsuna/gohbase/pb"
	"google.golang.org/protobuf/proto"
)
const comparatorPath = "org.apache.hadoop.hbase.filter."
type BitComparatorBitwiseOp int32
func (o BitComparatorBitwiseOp) isValid() bool {
	return o >= 1 && o <= 3
}
const (
	BitComparatorAND BitComparatorBitwiseOp = 1
	BitComparatorOR  BitComparatorBitwiseOp = 2
	BitComparatorXOR BitComparatorBitwiseOp = 3
)
var _ Comparator = (*BinaryComparator)(nil)
var _ Comparator = (*LongComparator)(nil)
var _ Comparator = (*BinaryPrefixComparator)(nil)
var _ Comparator = (*BitComparator)(nil)
var _ Comparator = (*NullComparator)(nil)
var _ Comparator = (*RegexStringComparator)(nil)
var _ Comparator = (*SubstringComparator)(nil)
type Comparator interface {
	ConstructPBComparator() (*pb.Comparator, error)
}
type ByteArrayComparable pb.ByteArrayComparable
func NewByteArrayComparable(value []byte) *ByteArrayComparable {
	return &ByteArrayComparable{
		Value: value,
	}
}
func (b *ByteArrayComparable) toPB() *pb.ByteArrayComparable {
	return (*pb.ByteArrayComparable)(b)
}
type BinaryComparator pb.BinaryComparator