@Test public void testFromPbWithNullEstimatedRowsAndBytes() { StandardTableDefinition.fromPb( TABLE_DEFINITION.toPb().setStreamingBuffer(new Streamingbuffer())); }
@Override Table toPb() { Table tablePb = super.toPb(); if (getNumRows() != null) { tablePb.setNumRows(BigInteger.valueOf(getNumRows())); } tablePb.setNumBytes(getNumBytes()); tablePb.setLocation(getLocation()); if (getStreamingBuffer() != null) { tablePb.setStreamingBuffer(getStreamingBuffer().toPb()); } if (getTimePartitioning() != null) { tablePb.setTimePartitioning(getTimePartitioning().toPb()); } if (getClustering() != null) { tablePb.setClustering(getClustering().toPb()); } return tablePb; }
@Override Table toPb() { Table tablePb = super.toPb(); if (numRows != null) { tablePb.setNumRows(BigInteger.valueOf(numRows)); } tablePb.setNumBytes(numBytes); tablePb.setLocation(location); if (streamingBuffer != null) { tablePb.setStreamingBuffer(streamingBuffer.toPb()); } return tablePb; }
@Override Table toPb() { Table tablePb = super.toPb(); if (numRows != null) { tablePb.setNumRows(BigInteger.valueOf(numRows)); } tablePb.setNumBytes(numBytes); tablePb.setLocation(location); if (streamingBuffer != null) { tablePb.setStreamingBuffer(streamingBuffer.toPb()); } if (timePartitioning != null) { tablePb.setTimePartitioning(timePartitioning.toPb()); } return tablePb; }
@Override Table toPb() { Table tablePb = super.toPb(); if (getNumRows() != null) { tablePb.setNumRows(BigInteger.valueOf(getNumRows())); } tablePb.setNumBytes(getNumBytes()); tablePb.setLocation(getLocation()); if (getStreamingBuffer() != null) { tablePb.setStreamingBuffer(getStreamingBuffer().toPb()); } if (getTimePartitioning() != null) { tablePb.setTimePartitioning(getTimePartitioning().toPb()); } if (getClustering() != null) { tablePb.setClustering(getClustering().toPb()); } return tablePb; }
new TableFieldSchema().setName("name").setType("STRING"), new TableFieldSchema().setName("number").setType("INTEGER")))) .setStreamingBuffer(new Streamingbuffer().setEstimatedBytes(BigInteger.valueOf(10)))); fakeDatasetService.insertAll(table, data, null);