Package com.google.cloud.bigquery
Class BigtableColumnFamily.Builder
- java.lang.Object
-
- com.google.cloud.bigquery.BigtableColumnFamily.Builder
-
- Enclosing class:
- BigtableColumnFamily
public abstract static class BigtableColumnFamily.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract BigtableColumnFamily
build()
abstract BigtableColumnFamily.Builder
setColumns(List<BigtableColumn> columns)
Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs.abstract BigtableColumnFamily.Builder
setEncoding(String encoding)
The encoding of the values when the type is not STRING.abstract BigtableColumnFamily.Builder
setFamilyID(String familyID)
Identifier of the column family.abstract BigtableColumnFamily.Builder
setOnlyReadLatest(Boolean onlyReadLatest)
If true, only the latest version of values are exposed for all columns in this column family.abstract BigtableColumnFamily.Builder
setType(String type)
The type to convert the value in cells of this column family.
-
-
-
Method Detail
-
setFamilyID
public abstract BigtableColumnFamily.Builder setFamilyID(String familyID)
Identifier of the column family.
-
setColumns
public abstract BigtableColumnFamily.Builder setColumns(List<BigtableColumn> columns)
Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
-
setEncoding
public abstract BigtableColumnFamily.Builder setEncoding(String encoding)
The encoding of the values when the type is not STRING.Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions.
This can be overridden for a specific column by listing that column in 'columns' and specifying an encoding for it.
-
setOnlyReadLatest
public abstract BigtableColumnFamily.Builder setOnlyReadLatest(Boolean onlyReadLatest)
If true, only the latest version of values are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in 'columns' and specifying a different setting for that column.
-
setType
public abstract BigtableColumnFamily.Builder setType(String type)
The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value.Following BigQuery types are allowed (case-sensitive): BYTES STRING INTEGER FLOAT BOOLEAN.
The default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it.
-
build
public abstract BigtableColumnFamily build()
-
-