id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
206444_64 | public static HCatSchema getTableSchemaWithPtnCols(Table table) throws IOException {
HCatSchema tableSchema = new HCatSchema(HCatUtil.getHCatFieldSchemaList(table.getCols()));
if (table.getPartitionKeys().size() != 0) {
// add partition keys to table schema
// NOTE : this assumes that we do not ever have pt... |
206444_65 | public static HCatSchema getTableSchemaWithPtnCols(Table table) throws IOException {
HCatSchema tableSchema = new HCatSchema(HCatUtil.getHCatFieldSchemaList(table.getCols()));
if (table.getPartitionKeys().size() != 0) {
// add partition keys to table schema
// NOTE : this assumes that we do not ever have pt... |
206444_66 | public IMetaStoreClient get(final HiveConf hiveConf) throws MetaException, IOException, LoginException {
final HiveClientCacheKey cacheKey = HiveClientCacheKey.fromHiveConf(hiveConf, getThreadId());
ICacheableMetaStoreClient cacheableHiveMetaStoreClient = null;
// the hmsc is not shared across threads. So the onl... |
206444_67 | public IMetaStoreClient get(final HiveConf hiveConf) throws MetaException, IOException, LoginException {
final HiveClientCacheKey cacheKey = HiveClientCacheKey.fromHiveConf(hiveConf, getThreadId());
ICacheableMetaStoreClient cacheableHiveMetaStoreClient = null;
// the hmsc is not shared across threads. So the onl... |
206444_68 | public IMetaStoreClient get(final HiveConf hiveConf) throws MetaException, IOException, LoginException {
final HiveClientCacheKey cacheKey = HiveClientCacheKey.fromHiveConf(hiveConf, getThreadId());
ICacheableMetaStoreClient cacheableHiveMetaStoreClient = null;
// the hmsc is not shared across threads. So the onl... |
206444_69 | public IMetaStoreClient get(final HiveConf hiveConf) throws MetaException, IOException, LoginException {
final HiveClientCacheKey cacheKey = HiveClientCacheKey.fromHiveConf(hiveConf, getThreadId());
ICacheableMetaStoreClient cacheableHiveMetaStoreClient = null;
// the hmsc is not shared across threads. So the onl... |
206444_70 | public IMetaStoreClient get(final HiveConf hiveConf) throws MetaException, IOException, LoginException {
final HiveClientCacheKey cacheKey = HiveClientCacheKey.fromHiveConf(hiveConf, getThreadId());
ICacheableMetaStoreClient cacheableHiveMetaStoreClient = null;
// the hmsc is not shared across threads. So the onl... |
206444_71 | public static boolean isAuthorizationEnabled(Configuration conf) {
if (!HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED)) {
return false;
}
// If the V2 api of authorizer in use, the session state getAuthorizer return null.
// Here we disable authorization if we use V2 api or the Defa... |
206444_72 | public static boolean isAuthorizationEnabled(Configuration conf) {
if (!HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED)) {
return false;
}
// If the V2 api of authorizer in use, the session state getAuthorizer return null.
// Here we disable authorization if we use V2 api or the Defa... |
206444_73 | public static boolean isAuthorizationEnabled(Configuration conf) {
if (!HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED)) {
return false;
}
// If the V2 api of authorizer in use, the session state getAuthorizer return null.
// Here we disable authorization if we use V2 api or the Defa... |
206444_74 | public static RunOptions fromCommandLine(CommandLine commandLine) {
String tableTypeText = commandLine.getOptionValue("tableType");
int defaultPoolSize = Runtime.getRuntime().availableProcessors();
if (defaultPoolSize < 1)
defaultPoolSize = 1;
int tablePoolSize = getIntOptionValue(commandLine, "tablePoolSiz... |
206444_75 | public static RunOptions fromCommandLine(CommandLine commandLine) {
String tableTypeText = commandLine.getOptionValue("tableType");
int defaultPoolSize = Runtime.getRuntime().availableProcessors();
if (defaultPoolSize < 1)
defaultPoolSize = 1;
int tablePoolSize = getIntOptionValue(commandLine, "tablePoolSiz... |
206444_76 | public static RunOptions fromCommandLine(CommandLine commandLine) {
String tableTypeText = commandLine.getOptionValue("tableType");
int defaultPoolSize = Runtime.getRuntime().availableProcessors();
if (defaultPoolSize < 1)
defaultPoolSize = 1;
int tablePoolSize = getIntOptionValue(commandLine, "tablePoolSiz... |
206444_77 | public static void main(String[] args) throws Exception {
Options cmdLineOptions = createCommandLineOptions();
CommandLineParser parser = new GnuParser();
CommandLine line;
try {
line = parser.parse(cmdLineOptions, args);
} catch (ParseException e) {
System.err.println("PreUpgradeTool: Parsing failed.... |
206444_78 | public static void main(String[] args) throws Exception {
Options cmdLineOptions = createCommandLineOptions();
CommandLineParser parser = new GnuParser();
CommandLine line;
try {
line = parser.parse(cmdLineOptions, args);
} catch (ParseException e) {
System.err.println("PreUpgradeTool: Parsing failed.... |
206444_79 | public static void main(String[] args) throws Exception {
Options cmdLineOptions = createCommandLineOptions();
CommandLineParser parser = new GnuParser();
CommandLine line;
try {
line = parser.parse(cmdLineOptions, args);
} catch (ParseException e) {
System.err.println("PreUpgradeTool: Parsing failed.... |
206444_80 | public static void main(String[] args) throws Exception {
Options cmdLineOptions = createCommandLineOptions();
CommandLineParser parser = new GnuParser();
CommandLine line;
try {
line = parser.parse(cmdLineOptions, args);
} catch (ParseException e) {
System.err.println("PreUpgradeTool: Parsing failed.... |
206444_81 | public static void main(String[] args) throws Exception {
Options cmdLineOptions = createCommandLineOptions();
CommandLineParser parser = new GnuParser();
CommandLine line;
try {
line = parser.parse(cmdLineOptions, args);
} catch (ParseException e) {
System.err.println("PreUpgradeTool: Parsing failed.... |
206444_82 | public static void main(String[] args) throws Exception {
Options cmdLineOptions = createCommandLineOptions();
CommandLineParser parser = new GnuParser();
CommandLine line;
try {
line = parser.parse(cmdLineOptions, args);
} catch (ParseException e) {
System.err.println("PreUpgradeTool: Parsing failed.... |
206444_83 | public T get() {
return threadLocalMap.computeIfAbsent(Thread.currentThread(), thread -> initialValue.get());
} |
206444_84 | public T get() {
return threadLocalMap.computeIfAbsent(Thread.currentThread(), thread -> initialValue.get());
} |
206444_85 | public T get() {
return threadLocalMap.computeIfAbsent(Thread.currentThread(), thread -> initialValue.get());
} |
206444_86 | @Override
public List<String> getColumnNames(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String query = JdbcStorageConfigManager.getOrigQueryToExecute(conf);
String me... |
206444_87 | @Override
public List<String> getColumnNames(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String query = JdbcStorageConfigManager.getOrigQueryToExecute(conf);
String me... |
206444_88 | @Override
public List<String> getColumnNames(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String query = JdbcStorageConfigManager.getOrigQueryToExecute(conf);
String me... |
206444_89 | @Override
public int getTotalNumberOfRecords(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String sql = JdbcStorageConfigManager.getQueryToExecute(conf);
String countQue... |
206444_90 | @Override
public int getTotalNumberOfRecords(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String sql = JdbcStorageConfigManager.getQueryToExecute(conf);
String countQue... |
206444_91 | @Override
public int getTotalNumberOfRecords(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String sql = JdbcStorageConfigManager.getQueryToExecute(conf);
String countQue... |
206444_92 | @Override
public int getTotalNumberOfRecords(Configuration conf) throws HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initializeDatabaseConnection(conf);
String sql = JdbcStorageConfigManager.getQueryToExecute(conf);
String countQue... |
206444_93 | @Override
public JdbcRecordIterator
getRecordIterator(Configuration conf, String partitionColumn, String lowerBound, String upperBound, int limit, int
offset) throws
HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initialize... |
206444_94 | @Override
public JdbcRecordIterator
getRecordIterator(Configuration conf, String partitionColumn, String lowerBound, String upperBound, int limit, int
offset) throws
HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initialize... |
206444_95 | @Override
public JdbcRecordIterator
getRecordIterator(Configuration conf, String partitionColumn, String lowerBound, String upperBound, int limit, int
offset) throws
HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initialize... |
206444_96 | @Override
public JdbcRecordIterator
getRecordIterator(Configuration conf, String partitionColumn, String lowerBound, String upperBound, int limit, int
offset) throws
HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initialize... |
206444_97 | @Override
public JdbcRecordIterator
getRecordIterator(Configuration conf, String partitionColumn, String lowerBound, String upperBound, int limit, int
offset) throws
HiveJdbcDatabaseAccessException {
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
initialize... |
206444_98 | @Override
public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException {
try {
String partitionColumn = job.get(Constants.JDBC_PARTITION_COLUMN);
int numPartitions = job.getInt(Constants.JDBC_NUM_PARTITIONS, -1);
String lowerBound = job.get(Constants.JDBC_LOW_BOUND);
String upperBound ... |
206444_99 | @Override
public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException {
try {
String partitionColumn = job.get(Constants.JDBC_PARTITION_COLUMN);
int numPartitions = job.getInt(Constants.JDBC_NUM_PARTITIONS, -1);
String lowerBound = job.get(Constants.JDBC_LOW_BOUND);
String upperBound ... |
206451_10 | public boolean deleteJob(String jobid, String nodeId) throws DatabaseException {
if (__log.isDebugEnabled())
__log.debug("deleteJob " + jobid + " on node " + nodeId);
Connection con = null;
PreparedStatement ps = null;
try {
con = getConnection();
ps = con.prepareStatement(DELETE... |
206452_10 | public boolean isBannedwordslisted(String str) {
return isBannedwordslisted(str, null, null);
} |
206452_11 | public static String extractHTML(String str) {
if (str == null) {
return "";
}
StringBuilder ret = new StringBuilder(str.length());
int start = 0;
int beginTag = str.indexOf('<');
int endTag = 0;
if (beginTag == -1) {
return str;
}
while (beginTag >= start) {
... |
206452_12 | public static String removeHTML(String str) {
return removeHTML(str, true);
} |
206452_13 | public static String truncateNicely(String str, int lower, int upper,
String appendToEnd) {
// strip markup from the string
String str2 = removeHTML(str, false);
boolean diff = (str2.length() < str.length());
// quickly adjust the upper if it is set lower than 'lower'
if (upper < lower) {
... |
206452_14 | public static String truncateNicely(String str, int lower, int upper,
String appendToEnd) {
// strip markup from the string
String str2 = removeHTML(str, false);
boolean diff = (str2.length() < str.length());
// quickly adjust the upper if it is set lower than 'lower'
if (upper < lower) {
... |
206452_15 | public static String cleanTextKey(String s) {
if (s == null || s.isEmpty()) {
return s;
}
// escape HTML
return StringEscapeUtils.escapeHtml4(cleanExpressions(s));
} |
206452_16 | public static String cleanTextArg(String s) {
if (s == null || s.isEmpty()) {
return s;
}
return StringEscapeUtils.escapeHtml4(s);
} |
206452_17 | private String getAbsoluteUrl(HttpServletRequest request) {
return getAbsoluteUrl(request.isSecure(),
request.getServerName(), request.getContextPath(),
request.getRequestURI(), request.getRequestURL().toString());
} |
206452_18 | private String getAbsoluteUrl(HttpServletRequest request) {
return getAbsoluteUrl(request.isSecure(),
request.getServerName(), request.getContextPath(),
request.getRequestURI(), request.getRequestURL().toString());
} |
206452_19 | private String getAbsoluteUrl(HttpServletRequest request) {
return getAbsoluteUrl(request.isSecure(),
request.getServerName(), request.getContextPath(),
request.getRequestURI(), request.getRequestURL().toString());
} |
206452_20 | private String getAbsoluteUrl(HttpServletRequest request) {
return getAbsoluteUrl(request.isSecure(),
request.getServerName(), request.getContextPath(),
request.getRequestURI(), request.getRequestURL().toString());
} |
206452_21 | protected static String removeTrailingSlash(String url) {
if (url.endsWith("/")) {
return url.substring(0, url.length() - 1);
}
return url;
} |
206452_22 | @Override
public Subscription fetchSubscription(String feedURL, Date lastModified)
throws FetcherException {
if(feedURL == null) {
throw new IllegalArgumentException("feed url cannot be null");
}
// we handle special weblogger planet integrated subscriptions which have
// feedU... |
206459_10 | public Schema addToSchema(Schema schema) {
validate(schema);
schema.addProp(LOGICAL_TYPE_PROP, name);
schema.setLogicalType(this);
return schema;
} |
206459_11 | public Schema addToSchema(Schema schema) {
validate(schema);
schema.addProp(LOGICAL_TYPE_PROP, name);
schema.setLogicalType(this);
return schema;
} |
206459_12 | protected static boolean isValidValue(Field f, Object value) {
if (value != null) {
return true;
}
Schema schema = f.schema();
Type type = schema.getType();
// If the type is null, any value is valid
if (type == Type.NULL) {
return true;
}
// If the type is a union that allows nulls, any value i... |
206459_13 | protected static boolean isValidValue(Field f, Object value) {
if (value != null) {
return true;
}
Schema schema = f.schema();
Type type = schema.getType();
// If the type is null, any value is valid
if (type == Type.NULL) {
return true;
}
// If the type is a union that allows nulls, any value i... |
206459_14 | protected static boolean isValidValue(Field f, Object value) {
if (value != null) {
return true;
}
Schema schema = f.schema();
Type type = schema.getType();
// If the type is null, any value is valid
if (type == Type.NULL) {
return true;
}
// If the type is a union that allows nulls, any value i... |
206459_15 | public static JsonNode toJsonNode(Object datum) {
if (datum == null) {
return null;
}
try {
TokenBuffer generator = new TokenBuffer(new ObjectMapper(), false);
toJson(datum, generator);
return new ObjectMapper().readTree(generator.asParser());
} catch (IOException e) {
throw new AvroRuntimeE... |
206459_16 | public static Object toObject(JsonNode jsonNode) {
return toObject(jsonNode, null);
} |
206459_17 | public static SpecificData get() {
return INSTANCE;
} |
206459_18 | public static SpecificData get() {
return INSTANCE;
} |
206459_19 | @Override
public boolean readBoolean() throws IOException {
// inlined, shorter version of ensureBounds
if (limit == pos) {
limit = source.tryReadRaw(buf, 0, buf.length);
pos = 0;
if (limit == 0) {
throw new EOFException();
}
}
int n = buf[pos++] & 0xff;
return n == 1;
} |
206459_20 | @Override
public int readInt() throws IOException {
ensureBounds(5); // won't throw index out of bounds
int len = 1;
int b = buf[pos] & 0xff;
int n = b & 0x7f;
if (b > 0x7f) {
b = buf[pos + len++] & 0xff;
n ^= (b & 0x7f) << 7;
if (b > 0x7f) {
b = buf[pos + len++] & 0xff;
n ^= (b & 0x7f... |
206459_21 | @Override
public long readLong() throws IOException {
ensureBounds(10);
int b = buf[pos++] & 0xff;
int n = b & 0x7f;
long l;
if (b > 0x7f) {
b = buf[pos++] & 0xff;
n ^= (b & 0x7f) << 7;
if (b > 0x7f) {
b = buf[pos++] & 0xff;
n ^= (b & 0x7f) << 14;
if (b > 0x7f) {
b = buf[... |
206459_22 | @Override
public float readFloat() throws IOException {
ensureBounds(4);
int len = 1;
int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16)
| ((buf[pos + len++] & 0xff) << 24);
if ((pos + 4) > limit) {
throw new EOFException();
}
pos += 4;
return Float.... |
206459_23 | @Override
public double readDouble() throws IOException {
ensureBounds(8);
int len = 1;
int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16)
| ((buf[pos + len++] & 0xff) << 24);
int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos +... |
206459_24 | @Override
public ByteBuffer readBytes(ByteBuffer old) throws IOException {
int length = readInt();
final ByteBuffer result;
if (old != null && length <= old.capacity()) {
result = old;
((Buffer) result).clear();
} else {
result = ByteBuffer.allocate(length);
}
doReadBytes(result.array(), result.... |
206459_25 | @Override
public Utf8 readString(Utf8 old) throws IOException {
long length = readLong();
if (length > MAX_ARRAY_SIZE) {
throw new UnsupportedOperationException("Cannot read strings longer than " + MAX_ARRAY_SIZE + " bytes");
}
if (length < 0L) {
throw new AvroRuntimeException("Malformed data. Length is... |
206459_26 | @Override
public void readFixed(byte[] bytes, int start, int length) throws IOException {
doReadBytes(bytes, start, length);
} |
206459_27 | @Override
public int readEnum() throws IOException {
return readInt();
} |
206459_28 | protected BinaryDecoder() {
} |
206459_29 | @Override
public int readInt() throws IOException {
ensureBounds(5); // won't throw index out of bounds
int len = 1;
int b = buf[pos] & 0xff;
int n = b & 0x7f;
if (b > 0x7f) {
b = buf[pos + len++] & 0xff;
n ^= (b & 0x7f) << 7;
if (b > 0x7f) {
b = buf[pos + len++] & 0xff;
n ^= (b & 0x7f... |
206459_30 | @Override
public long readLong() throws IOException {
ensureBounds(10);
int b = buf[pos++] & 0xff;
int n = b & 0x7f;
long l;
if (b > 0x7f) {
b = buf[pos++] & 0xff;
n ^= (b & 0x7f) << 7;
if (b > 0x7f) {
b = buf[pos++] & 0xff;
n ^= (b & 0x7f) << 14;
if (b > 0x7f) {
b = buf[... |
206459_31 | @Override
public int readInt() throws IOException {
ensureBounds(5); // won't throw index out of bounds
int len = 1;
int b = buf[pos] & 0xff;
int n = b & 0x7f;
if (b > 0x7f) {
b = buf[pos + len++] & 0xff;
n ^= (b & 0x7f) << 7;
if (b > 0x7f) {
b = buf[pos + len++] & 0xff;
n ^= (b & 0x7f... |
206459_32 | @Override
public long readLong() throws IOException {
ensureBounds(10);
int b = buf[pos++] & 0xff;
int n = b & 0x7f;
long l;
if (b > 0x7f) {
b = buf[pos++] & 0xff;
n ^= (b & 0x7f) << 7;
if (b > 0x7f) {
b = buf[pos++] & 0xff;
n ^= (b & 0x7f) << 14;
if (b > 0x7f) {
b = buf[... |
206459_33 | public static int skipLong(final byte[] bytes, int start) {
while ((bytes[start++] & 0x80) != 0) {
}
return start;
} |
206459_34 | public static void encode(Encoder e, Schema s, JsonNode n) throws IOException {
switch (s.getType()) {
case RECORD:
for (Field f : s.getFields()) {
String name = f.name();
JsonNode v = n.get(name);
if (v == null) {
v = Accessor.defaultValue(f);
}
if (v == null) {
th... |
206459_35 | protected Object createSchemaDefaultValue(Type type, Field field, Schema fieldSchema) {
Object defaultValue;
if (defaultGenerated) {
defaultValue = getOrCreateDefaultValue(type, field);
if (defaultValue != null) {
return deepCopy(fieldSchema, defaultValue);
}
// if we can't get the default val... |
206459_36 | @Override
public boolean equals(Object o) {
if (o == this)
return true;
if (!(o instanceof Protocol))
return false;
Protocol that = (Protocol) o;
return this.name.equals(that.name) && this.namespace.equals(that.namespace) && this.types.equals(that.types)
&& this.messages.equals(that.messages) && t... |
206459_37 | @Override
public String toString() {
return toString(false);
} |
206459_38 | @Deprecated
public static Schema parse(File file) throws IOException {
return new Parser().parse(file);
} |
206459_39 | @Deprecated
public static Schema createRecord(List<Field> fields) {
Schema result = createRecord(null, null, null, false);
result.setFields(fields);
return result;
} |
206459_40 | public boolean isUnion() {
return this instanceof UnionSchema;
} |
206459_41 | public boolean isNullable() {
if (!isUnion()) {
return getType().equals(Schema.Type.NULL);
}
for (Schema schema : getTypes()) {
if (schema.isNullable()) {
return true;
}
}
return false;
} |
206459_42 | @Deprecated
public static Schema parse(File file) throws IOException {
return new Parser().parse(file);
} |
206459_43 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_44 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_45 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_46 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_47 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_48 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_49 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_50 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_51 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_52 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_53 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_54 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_55 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_56 | public static Schema create(Type type) {
switch (type) {
case STRING:
return new StringSchema();
case BYTES:
return new BytesSchema();
case INT:
return new IntSchema();
case LONG:
return new LongSchema();
case FLOAT:
return new FloatSchema();
case DOUBLE:
return new DoubleSchema();... |
206459_57 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
206459_58 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
206459_59 | public void write(D datum, Encoder out) throws IOException {
Objects.requireNonNull(out, "Encoder cannot be null");
write(root, datum, out);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.