Tabnine Logo
ThriftServerRunner$HBaseHandler.getVerTs
Code IndexAdd Tabnine to your IDE (free)

How to use
getVerTs
method
in
org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler

Best Java code snippets using org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler.getVerTs (Showing top 5 results out of 315)

origin: com.aliyun.hbase/alihbase-thrift

@Override
public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column,
  long timestamp, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) throws IOError {
 byte [][] famAndQf = CellUtil.parseColumn(getBytes(column));
 if (famAndQf.length == 1) {
  return getVerTs(tableName, row, famAndQf[0], null, timestamp, numVersions, attributes);
 }
 if (famAndQf.length == 2) {
  return getVerTs(tableName, row, famAndQf[0], famAndQf[1], timestamp, numVersions,
   attributes);
 }
 throw new IllegalArgumentException("Invalid familyAndQualifier provided.");
}
origin: org.apache.hbase/hbase-thrift

@Override
public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column,
  long timestamp, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) throws IOError {
 byte [][] famAndQf = CellUtil.parseColumn(getBytes(column));
 if (famAndQf.length == 1) {
  return getVerTs(tableName, row, famAndQf[0], null, timestamp, numVersions, attributes);
 }
 if (famAndQf.length == 2) {
  return getVerTs(tableName, row, famAndQf[0], famAndQf[1], timestamp, numVersions,
   attributes);
 }
 throw new IllegalArgumentException("Invalid familyAndQualifier provided.");
}
origin: co.cask.hbase/hbase

@Deprecated
@Override
public List<TCell> getVerTs(ByteBuffer tableName,
                ByteBuffer row,
  ByteBuffer column,
  long timestamp,
  int numVersions,
  Map<ByteBuffer, ByteBuffer> attributes) throws IOError {
 byte [][] famAndQf = KeyValue.parseColumn(getBytes(column));
 if(famAndQf.length == 1) {
  return getVerTs(tableName, row, famAndQf[0], new byte[0], timestamp,
    numVersions, attributes);
 }
 return getVerTs(tableName, row, famAndQf[0], famAndQf[1], timestamp,
   numVersions, attributes);
}
origin: org.apache.hbase/hbase-thrift

assertEquals(2, handler.getVerTs(tableAname, rowAname, columnBname, time2,
 MAXVERSIONS, null).size());
assertEquals(1, handler.getVerTs(tableAname, rowAname, columnBname, time1,
 MAXVERSIONS, null).size());
int size = handler.getVerTs(tableAname, rowAname, columnBname, time1, MAXVERSIONS, null).size();
assertEquals(0, size);
size = handler.getVerTs(tableAname, rowAname, columnBname, time2, MAXVERSIONS, null).size();
assertEquals(1, size);
origin: com.aliyun.hbase/alihbase-thrift

assertEquals(2, handler.getVerTs(tableAname, rowAname, columnBname, time2,
 MAXVERSIONS, null).size());
assertEquals(1, handler.getVerTs(tableAname, rowAname, columnBname, time1,
 MAXVERSIONS, null).size());
int size = handler.getVerTs(tableAname, rowAname, columnBname, time1, MAXVERSIONS, null).size();
assertEquals(0, size);
size = handler.getVerTs(tableAname, rowAname, columnBname, time2, MAXVERSIONS, null).size();
assertEquals(1, size);
org.apache.hadoop.hbase.thriftThriftServerRunner$HBaseHandlergetVerTs

Javadoc

Note: this internal interface is slightly different from public APIs in regard to handling of the qualifier. Here we differ from the public Java API in that null != byte[0]. Rather, we respect qual == null as a request for the entire column family. The caller ( #getVerTs(ByteBuffer,ByteBuffer,ByteBuffer,long,int,Map)) interface IS consistent in that the column is parse like normal.

Popular methods of ThriftServerRunner$HBaseHandler

  • <init>
  • deleteAllRowTs
  • deleteAllTs
  • get
    Note: this internal interface is slightly different from public APIs in regard to handling of the qu
  • getRowWithColumnsTs
  • increment
  • mutateRowTs
  • mutateRowsTs
  • addScanner
    Assigns a unique ID to the scanner and adds the mapping to an internal hash-map.
  • atomicIncrement
  • getRowsWithColumnsTs
  • getScanner
    Returns the scanner associated with the specified ID.
  • getRowsWithColumnsTs,
  • getScanner,
  • getTable,
  • getVer,
  • removeScanner,
  • scannerGetList,
  • append,
  • checkAndPut,
  • closeTable

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now