Tabnine Logo
Struct.getLongArray
Code IndexAdd Tabnine to your IDE (free)

How to use
getLongArray
method
in
com.google.cloud.spanner.Struct

Best Java code snippets using com.google.cloud.spanner.Struct.getLongArray (Showing top 9 results out of 315)

origin: googleapis/google-cloud-java

@Override
public long[] getLongArray(int columnIndex) {
 return getCurrentRowAsStruct().getLongArray(columnIndex);
}
origin: googleapis/google-cloud-java

@Override
public long[] getLongArray(String columnName) {
 return getCurrentRowAsStruct().getLongArray(columnName);
}
origin: googleapis/google-cloud-java

@Test
public void writeInt64ArrayNoNulls() {
 write(baseInsert().set("Int64ArrayValue").toInt64Array(Arrays.asList(1L, 2L)).build());
 Struct row = readLastRow("Int64ArrayValue");
 assertThat(row.isNull(0)).isFalse();
 assertThat(row.getLongArray(0)).isEqualTo(new long[] {1, 2});
}
origin: googleapis/google-cloud-java

@Test
public void writeInt64Array() {
 write(baseInsert().set("Int64ArrayValue").toInt64Array(Arrays.asList(1L, 2L, null)).build());
 Struct row = readLastRow("Int64ArrayValue");
 assertThat(row.isNull(0)).isFalse();
 assertThat(row.getLongList(0)).containsExactly(1L, 2L, null).inOrder();
 expectedException.expect(NullPointerException.class);
 row.getLongArray(0);
}
origin: googleapis/google-cloud-java

 return Value.boolArray(value.getBooleanArray(fieldIndex));
case INT64:
 return Value.int64Array(value.getLongArray(fieldIndex));
case STRING:
 return Value.stringArray(value.getStringList(fieldIndex));
origin: com.google.cloud/google-cloud-spanner

@Override
public long[] getLongArray(int columnIndex) {
 return getCurrentRowAsStruct().getLongArray(columnIndex);
}
origin: com.google.cloud/google-cloud-spanner

@Override
public long[] getLongArray(String columnName) {
 return getCurrentRowAsStruct().getLongArray(columnName);
}
origin: GoogleCloudPlatform/DataflowTemplates

 return GSON.toJson(currentRow.getBooleanArray(columnName));
case INT64:
 return GSON.toJson(currentRow.getLongArray(columnName));
case FLOAT64:
 return GSON.toJson(currentRow.getDoubleArray(columnName));
origin: com.google.cloud/google-cloud-spanner

 return Value.boolArray(value.getBooleanArray(fieldIndex));
case INT64:
 return Value.int64Array(value.getLongArray(fieldIndex));
case STRING:
 return Value.stringArray(value.getStringList(fieldIndex));
com.google.cloud.spannerStructgetLongArray

Popular methods of Struct

  • getString
  • getLong
  • getColumnType
  • isNull
  • getBoolean
  • getBytes
  • getType
  • newBuilder
    Returns a builder for creating a non- NULL Struct instance.
  • getBooleanArray
  • getBooleanList
  • getBytesList
  • getColumnCount
  • getBytesList,
  • getColumnCount,
  • getDate,
  • getDateList,
  • getDouble,
  • getDoubleArray,
  • getDoubleList,
  • getLongList,
  • getStringList

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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