@org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); case COLUMN_VALUES: return getColumnValues(); case TIMESTAMP: return getTimestamp(); case ATTRIBUTES: return getAttributes(); case DURABILITY: return getDurability(); case CELL_VISIBILITY: return getCellVisibility(); } throw new java.lang.IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); case COLUMN_VALUES: return getColumnValues(); case TIMESTAMP: return Long.valueOf(getTimestamp()); case ATTRIBUTES: return getAttributes(); case DURABILITY: return getDurability(); case CELL_VISIBILITY: return getCellVisibility(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); case COLUMN_VALUES: return getColumnValues(); case TIMESTAMP: return Long.valueOf(getTimestamp()); case ATTRIBUTES: return getAttributes(); case DURABILITY: return getDurability(); case CELL_VISIBILITY: return getCellVisibility(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); case COLUMN_VALUES: return getColumnValues(); case TIMESTAMP: return Long.valueOf(getTimestamp()); case WRITE_TO_WAL: return Boolean.valueOf(isWriteToWal()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); case COLUMN_VALUES: return getColumnValues(); case TIMESTAMP: return getTimestamp(); case ATTRIBUTES: return getAttributes(); case DURABILITY: return getDurability(); case CELL_VISIBILITY: return getCellVisibility(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case ROW: return getRow(); case COLUMN_VALUES: return getColumnValues(); case TIMESTAMP: return getTimestamp(); case ATTRIBUTES: return getAttributes(); case DURABILITY: return getDurability(); case CELL_VISIBILITY: return getCellVisibility(); } throw new IllegalStateException(); }
/** * Creates a {@link Put} (HBase) from a {@link TPut} (Thrift) * * @param in the <code>TPut</code> to convert * * @return converted <code>Put</code> */ public static Put putFromThrift(TPut in) { Put out; if (in.isSetTimestamp()) { out = new Put(in.getRow(), in.getTimestamp(), null); } else { out = new Put(in.getRow()); } out.setWriteToWAL(in.isWriteToWal()); for (TColumnValue columnValue : in.getColumnValues()) { if (columnValue.isSetTimestamp()) { out.add(columnValue.getFamily(), columnValue.getQualifier(), columnValue.getTimestamp(), columnValue.getValue()); } else { out.add(columnValue.getFamily(), columnValue.getQualifier(), columnValue.getValue()); } } return out; }