@Deprecated public RyaStatementBuilder setValue(final byte[] value) { ryaStatement.setValue(value); return this; }
@Deprecated public RyaStatementBuilder setValue(final byte[] value) { ryaStatement.setValue(value); return this; }
public RyaStatementBuilder setMetadata(final StatementMetadata metadata) { ryaStatement.setValue(metadata.toBytes()); return this; }
public RyaStatementBuilder setMetadata(final StatementMetadata metadata) { ryaStatement.setValue(metadata.toBytes()); return this; }
key.getTimestamp(), key.getColumnVisibilityData().toArray(), next.getValue().get())); if (next.getValue() != null) { statement.setValue(next.getValue().get());
key.getTimestamp(), key.getColumnVisibilityData().toArray(), next.getValue().get())); if (next.getValue() != null) { statement.setValue(next.getValue().get());
/** * Loads a RyaStatementWritable by reading data from an input stream. * Creates a new RyaStatement and assigns it to this RyaStatementWritable. * @param dataInput An stream containing serialized statement data. */ @Override public void readFields(DataInput dataInput) throws IOException { byte[] row = read(dataInput); byte[] columnFamily = read(dataInput); byte[] columnQualifier = read(dataInput); byte[] columnVisibility = read(dataInput); byte[] value = read(dataInput); boolean b = dataInput.readBoolean(); Long timestamp = null; if (b) { timestamp = dataInput.readLong(); } try { ryaStatement = ryaContext.deserializeTriple(RdfCloudTripleStoreConstants.TABLE_LAYOUT.SPO, new TripleRow(row, columnFamily, columnQualifier)); ryaStatement.setColumnVisibility(columnVisibility); ryaStatement.setValue(value); ryaStatement.setTimestamp(timestamp); } catch (TripleRowResolverException e) { throw new IOException(e); } } }
/** * Loads a RyaStatementWritable by reading data from an input stream. * Creates a new RyaStatement and assigns it to this RyaStatementWritable. * @param dataInput An stream containing serialized statement data. */ @Override public void readFields(DataInput dataInput) throws IOException { byte[] row = read(dataInput); byte[] columnFamily = read(dataInput); byte[] columnQualifier = read(dataInput); byte[] columnVisibility = read(dataInput); byte[] value = read(dataInput); boolean b = dataInput.readBoolean(); Long timestamp = null; if (b) { timestamp = dataInput.readLong(); } try { ryaStatement = ryaContext.deserializeTriple(RdfCloudTripleStoreConstants.TABLE_LAYOUT.SPO, new TripleRow(row, columnFamily, columnQualifier)); ryaStatement.setColumnVisibility(columnVisibility); ryaStatement.setValue(value); ryaStatement.setTimestamp(timestamp); } catch (TripleRowResolverException e) { throw new IOException(e); } } }
@Override public RyaStatement next() throws RyaDAOException { if (!hasNext()) { return null; } try { Map.Entry<Key, Value> next = dataIterator.next(); Key key = next.getKey(); RyaStatement statement = context.deserializeTriple(tableLayout, new TripleRow(key.getRowData().toArray(), key.getColumnFamilyData().toArray(), key.getColumnQualifierData().toArray(), key.getTimestamp(), key.getColumnVisibilityData().toArray(), next.getValue().get())); if (next.getValue() != null) { statement.setValue(next.getValue().get()); } maxResults--; return statement; } catch (TripleRowResolverException e) { throw new RyaDAOException(e); } }
@Override public RyaStatement next() throws RyaDAOException { if (!hasNext()) { return null; } try { Map.Entry<Key, Value> next = dataIterator.next(); Key key = next.getKey(); RyaStatement statement = context.deserializeTriple(tableLayout, new TripleRow(key.getRowData().toArray(), key.getColumnFamilyData().toArray(), key.getColumnQualifierData().toArray(), key.getTimestamp(), key.getColumnVisibilityData().toArray(), next.getValue().get())); if (next.getValue() != null) { statement.setValue(next.getValue().get()); } maxResults--; return statement; } catch (TripleRowResolverException e) { throw new RyaDAOException(e); } }
if (hasNextValue){ length = input.readInt(); statement.setValue(input.readBytes(length));
if (hasNextValue){ length = input.readInt(); statement.setValue(input.readBytes(length));