@Override public void setTimestamp(byte[] ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(byte[] ts) throws IOException { PrivateCellUtil.setTimestamp(this.cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { // The incoming cell is supposed to be ExtendedCell type. PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(byte[] ts) throws IOException { // The incoming cell is supposed to be ExtendedCell type. PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { PrivateCellUtil.setTimestamp(this.cell, ts); }
/** * Sets the given timestamp to the cell. * @param cell * @param ts * @throws IOException when the passed cell is not of type {@link ExtendedCell} * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. */ @Deprecated public static void setTimestamp(Cell cell, long ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); }
/** * Sets the given timestamp to the cell. * @param cell * @param ts buffer containing the timestamp value * @param tsOffset offset to the new timestamp * @throws IOException when the passed cell is not of type {@link ExtendedCell} * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. */ @Deprecated public static void setTimestamp(Cell cell, byte[] ts, int tsOffset) throws IOException { PrivateCellUtil.setTimestamp(cell, Bytes.toLong(ts, tsOffset)); }
/** * Sets the given timestamp to the cell iff current timestamp is * {@link HConstants#LATEST_TIMESTAMP}. * @param cell * @param ts buffer containing the timestamp value * @return True if cell timestamp is modified. * @throws IOException when the passed cell is not of type {@link ExtendedCell} */ public static boolean updateLatestStamp(Cell cell, byte[] ts) throws IOException { if (cell.getTimestamp() == HConstants.LATEST_TIMESTAMP) { setTimestamp(cell, ts); return true; } return false; }
/** * Sets the given timestamp to the cell iff current timestamp is * {@link HConstants#LATEST_TIMESTAMP}. * @param cell * @param ts * @return True if cell timestamp is modified. * @throws IOException when the passed cell is not of type {@link ExtendedCell} */ public static boolean updateLatestStamp(Cell cell, long ts) throws IOException { if (cell.getTimestamp() == HConstants.LATEST_TIMESTAMP) { setTimestamp(cell, ts); return true; } return false; }
void updateDeleteLatestVersionTimestamp(Cell cell, Get get, int count, byte[] byteNow) throws IOException { List<Cell> result = get(get, false); if (result.size() < count) { // Nothing to delete PrivateCellUtil.updateLatestStamp(cell, byteNow); return; } if (result.size() > count) { throw new RuntimeException("Unexpected size: " + result.size()); } Cell getCell = result.get(count - 1); PrivateCellUtil.setTimestamp(cell, getCell.getTimestamp()); }
PrivateCellUtil.setTimestamp(cell, getCell.getTimestamp());
@Override public void setTimestamp(long ts) throws IOException { // The incoming cell is supposed to be ExtendedCell type. PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { // The incoming cell is supposed to be ExtendedCell type. PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(byte[] ts) throws IOException { // The incoming cell is supposed to be ExtendedCell type. PrivateCellUtil.setTimestamp(cell, ts); }
@Override public void setTimestamp(long ts) throws IOException { PrivateCellUtil.setTimestamp(this.cell, ts); }
/** * Sets the given timestamp to the cell. * @param cell * @param ts * @throws IOException when the passed cell is not of type {@link ExtendedCell} * @deprecated As of HBase-2.0. Will be removed in HBase-3.0 */ @Deprecated public static void setTimestamp(Cell cell, long ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); }
/** * Sets the given timestamp to the cell. * @param cell * @param ts buffer containing the timestamp value * @param tsOffset offset to the new timestamp * @throws IOException when the passed cell is not of type {@link ExtendedCell} * @deprecated As of HBase-2.0. Will be removed in HBase-3.0 */ @Deprecated public static void setTimestamp(Cell cell, byte[] ts, int tsOffset) throws IOException { PrivateCellUtil.setTimestamp(cell, Bytes.toLong(ts, tsOffset)); }