case 1: hash = (37 * hash) + START_KEY_CLOSED_FIELD_NUMBER; hash = (53 * hash) + getStartKeyClosed().hashCode(); break; case 2:
@Nonnull static StartPoint extract(@Nonnull RowRange rowRange) { switch (rowRange.getStartKeyCase()) { case STARTKEY_NOT_SET: return new StartPoint(ByteString.EMPTY, true); case START_KEY_CLOSED: return new StartPoint(rowRange.getStartKeyClosed(), true); case START_KEY_OPEN: if (rowRange.getStartKeyOpen().isEmpty()) { // Take care to normalize an open empty start key to be closed. return new StartPoint(ByteString.EMPTY, true); } else { return new StartPoint(rowRange.getStartKeyOpen(), false); } default: throw new IllegalArgumentException("Unknown startKeyCase: " + rowRange.getStartKeyCase()); } }
switch (startKeyCase_) { case 1: result = result && getStartKeyClosed().equals(other.getStartKeyClosed()); break; case 2:
case START_KEY_CLOSED: setStartKeyClosed(other.getStartKeyClosed()); break;
case 1: hash = (37 * hash) + START_KEY_CLOSED_FIELD_NUMBER; hash = (53 * hash) + getStartKeyClosed().hashCode(); break; case 2:
case 1: hash = (37 * hash) + START_KEY_CLOSED_FIELD_NUMBER; hash = (53 * hash) + getStartKeyClosed().hashCode(); break; case 2:
@Override public int compareTo(BigtableExtendedScanSplit o) { // If The table name of the two splits is the same then compare start row // otherwise compare based on table names int tableNameComparison = name.compareTo(o.name); return tableNameComparison != 0 ? tableNameComparison : Bytes.compareTo( scan.getRowSet().getRowRanges(0).getStartKeyClosed().toByteArray(), o.scan.getRowSet().getRowRanges(0).getStartKeyClosed().toByteArray()); }
@Nonnull static StartPoint extract(@Nonnull RowRange rowRange) { switch (rowRange.getStartKeyCase()) { case STARTKEY_NOT_SET: return new StartPoint(ByteString.EMPTY, true); case START_KEY_CLOSED: return new StartPoint(rowRange.getStartKeyClosed(), true); case START_KEY_OPEN: if (rowRange.getStartKeyOpen().isEmpty()) { // Take care to normalize an open empty start key to be closed. return new StartPoint(ByteString.EMPTY, true); } else { return new StartPoint(rowRange.getStartKeyOpen(), false); } default: throw new IllegalArgumentException("Unknown startKeyCase: " + rowRange.getStartKeyCase()); } }
switch (startKeyCase_) { case 1: result = result && getStartKeyClosed().equals(other.getStartKeyClosed()); break; case 2:
switch (startKeyCase_) { case 1: result = result && getStartKeyClosed() .equals(other.getStartKeyClosed()); break; case 2:
case START_KEY_CLOSED: startBound = BoundType.CLOSED; startKey = btRange.getStartKeyClosed(); break; case STARTKEY_NOT_SET:
case START_KEY_CLOSED: startBound = BoundType.CLOSED; startKey = btRange.getStartKeyClosed(); break; case STARTKEY_NOT_SET:
switch (other.getStartKeyCase()) { case START_KEY_CLOSED: { setStartKeyClosed(other.getStartKeyClosed()); break;
case START_KEY_CLOSED: setStartKeyClosed(other.getStartKeyClosed()); break;
StartKeyCase startKeyCase = rowRange.getStartKeyCase(); if ((startKeyCase == StartKeyCase.START_KEY_CLOSED && startKeyIsAlreadyRead(rowRange.getStartKeyClosed())) || (startKeyCase == StartKeyCase.START_KEY_OPEN && startKeyIsAlreadyRead(rowRange.getStartKeyOpen()))