Codota Logo
Struct.getLongArray
Code IndexAdd Codota 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)

  • Common ways to obtain Struct
private void myMethod () {
Struct s =
  • Codota IconResultSet resultSet;resultSet.getCurrentRowAsStruct()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now