congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
co.cask.cdap.spi.data.table.field
Code IndexAdd Tabnine to your IDE (free)

How to use co.cask.cdap.spi.data.table.field

Best Java code snippets using co.cask.cdap.spi.data.table.field (Showing top 20 results out of 315)

origin: cdapio/cdap

public PostgresSqlStructuredTable(Connection connection, StructuredTableSchema tableSchema) {
 this.connection = connection;
 this.tableSchema = tableSchema;
 this.fieldValidator = new FieldValidator(tableSchema);
}
origin: cdapio/cdap

/**
 * @return the FieldType of INTEGER with the given name
 */
public static FieldType intType(String name) {
 return new FieldType(name, FieldType.Type.INTEGER);
}
origin: cdapio/cdap

/**
 * @return the type of the field
 */
public FieldType.Type getFieldType() {
 return fieldType.getType();
}
origin: cdapio/cdap

private Range createArtifactScanRange(NamespaceId namespace) {
 Field<String> stringField = Fields.stringField(StoreDefinition.ArtifactStore.ARTIFACT_NAMESPACE_FIELD,
                         namespace.getNamespace());
 return Range.singleton(Collections.singleton(stringField));
}
origin: cdapio/cdap

/**
 * Create a field with string value.
 *
 * @param name name of the field
 * @param value value of the field
 * @return a field with type string
 */
public static Field<String> stringField(String name, @Nullable String value) {
 return new Field<>(new FieldType(name, FieldType.Type.STRING), value);
}
origin: cdapio/cdap

private String combineWithEqualClause(String prefix, Collection<Field<?>> keys, String suffix) {
 StringJoiner joiner = new StringJoiner(" AND ", prefix, suffix + ";");
 for (Field<?> key : keys) {
  joiner.add(key.getName() + "=?");
 }
 return joiner.toString();
}
origin: cdapio/cdap

/**
 * Create a range with a begin and an end.
 *
 * @param begin the fields forming the beginning of the range
 * @param beginBound the match type for the begin fields
 * @param end the fields forming the end of the range
 * @param endBound the match type for the end fields
 * @return a range object
 */
public static Range create(Collection<Field<?>> begin, Bound beginBound, Collection<Field<?>> end, Bound endBound) {
 return new Range(begin, beginBound, end, endBound);
}
origin: cdapio/cdap

/**
 * @return the field name
 */
public String getName() {
 return fieldType.getName();
}
origin: cdapio/cdap

private Range createAppClassRange(NamespaceId namespace) {
 return Range.singleton(Collections.singleton(Fields.stringField(StoreDefinition.ArtifactStore.NAMESPACE_FIELD,
                                 namespace.getNamespace())));
}
origin: cdapio/cdap

/**
 * Create a field with float value.
 *
 * @param name name of the field
 * @param value value of the field
 * @return a field with type float
 */
public static Field<Float> floatField(String name, @Nullable Float value) {
 return new Field<>(new FieldType(name, FieldType.Type.FLOAT), value);
}
origin: cdapio/cdap

/**
 * @return the FieldType of DOUBLE with the given name
 */
public static FieldType doubleType(String name) {
 return new FieldType(name, FieldType.Type.DOUBLE);
}
origin: cdapio/cdap

/**
 * Creates a range that only matches one element. This range will read all elements which is equal to the
 * given keys.
 *
 * @param singleton the fields forming the singleton range
 * @return a range object
 */
public static Range singleton(Collection<Field<?>> singleton) {
 return new Range(singleton, Bound.INCLUSIVE, singleton, Bound.INCLUSIVE);
}
origin: cdapio/cdap

/**
 * Create a field with double value.
 *
 * @param name name of the field
 * @param value value of the field
 * @return a field with type double
 */
public static Field<Double> doubleField(String name, @Nullable Double value) {
 return new Field<>(new FieldType(name, FieldType.Type.DOUBLE), value);
}
origin: cdapio/cdap

/**
 * @return the FieldType of FLOAT with the given name
 */
public static FieldType floatType(String name) {
 return new FieldType(name, FieldType.Type.FLOAT);
}
origin: cdapio/cdap

/**
 * Create a field with integer value.
 *
 * @param name name of the field
 * @param value value of the field
 * @return a field with type integer
 */
public static Field<Integer> intField(String name, @Nullable Integer value) {
 return new Field<>(new FieldType(name, FieldType.Type.INTEGER), value);
}
origin: cdapio/cdap

/**
 * @return the FieldType of STRING with the given name
 */
public static FieldType stringType(String name) {
 return new FieldType(name, FieldType.Type.STRING);
}
origin: cdapio/cdap

/**
 * Create a field with long value.
 *
 * @param name name of the field
 * @param value value of the field
 * @return a field with type long
 */
public static Field<Long> longField(String name, @Nullable Long value) {
 return new Field<>(new FieldType(name, FieldType.Type.LONG), value);
}
origin: cdapio/cdap

/**
 * @return the FieldType of BYTES with the given name
 */
public static FieldType bytesType(String name) {
 return new FieldType(name, FieldType.Type.BYTES);
}
origin: cdapio/cdap

/**
 * Create a field with byte[] value.
 *
 * @param name name of the field
 * @param value value of the field
 * @return a field with type BYTES
 */
public static Field<byte[]> bytesField(String name, @Nullable byte[] value) {
 return new Field<>(new FieldType(name, FieldType.Type.BYTES), value);
}
origin: cdapio/cdap

/**
 * @return the FieldType of LONG with the given name
 */
public static FieldType longType(String name) {
 return new FieldType(name, FieldType.Type.LONG);
}
co.cask.cdap.spi.data.table.field

Most used classes

  • Fields
    Convenience methods to work on Field and FieldType.
  • Range
    Represents a range of fields. The range has two endpoints - begin and end, to represent the beginnin
  • Field
    Represents a column of a table, and its value.
  • FieldValidator
    A field validator class which can be used to validate the given field.
  • FieldTest
  • FieldType,
  • Range$Bound
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now