Java 类org.apache.hadoop.hbase.KeyValue.RawBytesComparator 实例源码

项目:ditb    文件:PrefixTreeCodec.java   
/**
 * Is this the correct handling of an illegal comparator?  How to prevent that from getting all
 * the way to this point.
 */
@Override
public EncodedSeeker createSeeker(KVComparator comparator, HFileBlockDecodingContext decodingCtx) {
  if (comparator instanceof RawBytesComparator){
    throw new IllegalArgumentException("comparator must be KeyValue.KeyComparator");
  } else if (comparator instanceof MetaComparator){
    throw new IllegalArgumentException("DataBlockEncoding.PREFIX_TREE not compatible with hbase:meta "
        +"table");
  }

  return new PrefixTreeSeeker(decodingCtx.getHFileContext().isIncludesMvcc());
}
项目:pbase    文件:PrefixTreeCodec.java   
/**
 * Is this the correct handling of an illegal comparator?  How to prevent that from getting all
 * the way to this point.
 */
@Override
public EncodedSeeker createSeeker(KVComparator comparator, HFileBlockDecodingContext decodingCtx) {
  if (comparator instanceof RawBytesComparator){
    throw new IllegalArgumentException("comparator must be KeyValue.KeyComparator");
  } else if (comparator instanceof MetaComparator){
    throw new IllegalArgumentException("DataBlockEncoding.PREFIX_TREE not compatible with hbase:meta "
        +"table");
  }

  return new PrefixTreeSeeker(decodingCtx.getHFileContext().isIncludesMvcc());
}
项目:HIndex    文件:PrefixTreeCodec.java   
/**
 * Is this the correct handling of an illegal comparator?  How to prevent that from getting all
 * the way to this point.
 */
@Override
public EncodedSeeker createSeeker(KVComparator comparator, HFileBlockDecodingContext decodingCtx) {
  if (comparator instanceof RawBytesComparator){
    throw new IllegalArgumentException("comparator must be KeyValue.KeyComparator");
  } else if (comparator instanceof MetaComparator){
    throw new IllegalArgumentException("DataBlockEncoding.PREFIX_TREE not compatible with hbase:meta "
        +"table");
  }

  return new PrefixTreeSeeker(decodingCtx.getHFileContext().isIncludesMvcc());
}
项目:PyroDB    文件:PrefixTreeCodec.java   
/**
 * Is this the correct handling of an illegal comparator?  How to prevent that from getting all
 * the way to this point.
 */
@Override
public EncodedSeeker createSeeker(KVComparator comparator, HFileBlockDecodingContext decodingCtx) {
  if (comparator instanceof RawBytesComparator){
    throw new IllegalArgumentException("comparator must be KeyValue.KeyComparator");
  } else if (comparator instanceof MetaComparator){
    throw new IllegalArgumentException("DataBlockEncoding.PREFIX_TREE not compatible with hbase:meta "
        +"table");
  }

  return new PrefixTreeSeeker(decodingCtx.getHFileContext().isIncludesMvcc());
}
项目:c5    文件:PrefixTreeCodec.java   
/**
 * Is this the correct handling of an illegal comparator?  How to prevent that from getting all
 * the way to this point.
 */
@Override
public EncodedSeeker createSeeker(KVComparator comparator, boolean includesMvccVersion) {
  if (comparator instanceof RawBytesComparator){
    throw new IllegalArgumentException("comparator must be KeyValue.KeyComparator");
  } else if (comparator instanceof MetaComparator){
    throw new IllegalArgumentException("DataBlockEncoding.PREFIX_TREE not compatible with hbase:meta "
        +"table");
  }

  return new PrefixTreeSeeker(includesMvccVersion);
}